How to alter the amount of times a stat can increase/decrease

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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,455
Reaction score
1,297
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:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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,455
Reaction score
1,297
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.
 
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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,455
Reaction score
1,297
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
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Parameter changes are permanent.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
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.
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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!
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
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
31,355
Reaction score
7,668
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top