Lunawolfcomics

The Omega
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
193
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,302
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
193
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,302
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
193
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,302
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
37,996
Reaction score
10,554
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
193
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
193
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
193
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
37,996
Reaction score
10,554
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 Profile Posts

Oh error that I cannot pin point and that does not consistently occur. You have caused me to start from... the beginning.
gCcZIwO.gif

Expressions! Curse GIFs color limitation.
Collecting Stream thumbnails, don't mind me. :kaopride:



now you can smash up cars on the street lol...
finally got the right prompt for stable diffusion
1679983618086.png

Forum statistics

Threads
129,900
Messages
1,206,098
Members
171,083
Latest member
Maxell
Top