Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
Hey everyone, as you know in RPG Maker everytime someone uses a skill that either increases/decreases a target's stats, the maximum amount of increases/decreases is two. How can I alter this to perhaps change it from two repeated stat gains/losses? Thanks :)

-JAD
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,456
Reaction score
1,300
First Language
Broken English.
Primarily Uses
N/A
For a single actor: $game_actors[id].add_param(pid, value)

For the party: $game_party.members.each { |actor| actor.add_param(pid, value)


where pid can be: 0=MHP, 1=MMP, 2=ATK, 3=DEF, 4=MAT, 5=MDF, 6=AGI, 7=LUK
 
Last edited by a moderator:

Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
Thank you Kanax :)

But the method you are using, what exactly will it do?
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,456
Reaction score
1,300
First Language
Broken English.
Primarily Uses
N/A
Your issue was that the max amount of increases/decreases is two, right? If you call that script call you can set the increase/decrease as you like.

single actor: $game_actors[1].add_param(1, 400) Actor 1 will have a MMP increase by 400

single actor: $game_actors[1].add_param(2, -300) Actor 1 will have a ATK decrease by 300

Unless I misunderstood your question.
 
 

Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
Ok then yes perfect! If I call these scripts at any point in the game would it save for the rest of the game? Or would I have to keep calling it?
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,456
Reaction score
1,300
First Language
Broken English.
Primarily Uses
N/A
That I don't know :p Since you know the nature of my game, you might guess that I'm completely clueless when it comes to skills and parameters :p
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
Are you perhaps talking about the buff/debuff level? Only that is limited to two times, direct parameter changes can be done as often as you want and are (as said above) permanent.
 

Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
Are you perhaps talking about the buff/debuff level? Only that is limited to two times, direct parameter changes can be done as often as you want and are (as said above) permanent.
Yes there we go! I couldn't figure out the direct name. I'm talking specifically about the buff/debuffs!
 

Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
@Kanax

Thank you :)

I didn't know what the correct terminology was, I was referring more so about the buffs and debuffs
 

Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
192
First Language
English
Primarily Uses
RMMV
Ok I found it, it was in the script "Game_Battler". Somewhere near the middle it allows you to change the max for buffs and debuffs

Thank you everyone for your input  :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
JAD94, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


please use multiquote if you want to answer several people at once, do not make a post for each answer.
 

Latest Threads

Latest Posts

Latest Profile Posts

A game review, Eloquent Countenance by RachelDrawsThis.
SF_People3_8 added!
index.php

I'm wondering if it's possible to get the font used for the title in RPG Maker MZ's splash screen, because it's a neat looking font. I wanna use it for like, a title screen or something.
I think it's by time I make use of this feature in the forums. I'm never one to share profile updates or anything the sort, but hey, you gotta start somewhere! I think I'll use this place primarily to post maps actually, so here, have a goblin cave!

PqleoRp.png

Inspired largely by Wynncraft's Aseado Leaf cave
Does anyone know if Yanfly's Ace scripts are still free for use in both commercial and noncommercial projects? Can't find much except for the wordpress Terms of Use, but not sure if it's not outdated.

Forum statistics

Threads
118,714
Messages
1,118,123
Members
155,859
Latest member
zBashed
Top