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,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
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,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
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,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
35,860
Reaction score
9,501
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
35,860
Reaction score
9,501
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

Kickstarter successful!! I'm gonna have a Hot GameDev Summer in the trenches!
Me and my friend got into one of our usual discussions after I reccomended him a game, and I remember the last time we had a discussion like that, he disabled his FA account. This time, I found myself constantly checking my friends account hoping it wouldn't happen again. ...But it didn't.

The thing is... I just can't lie about my feelings, sometimes. :(
COMBAT:

Finally showing combat in my game. The lighting system I'm currently using doesn't transfer over into combat, but I am hoping to find a new one soon... or an update for the one I'm using. The plan is to make combat less bright, though. You'll want to click the video link below and visit YT for audio.
Huge thanks to D757 Gaming for his stream, impressions and review of my game, please check him out!
Thank you to everyone who participated in the 3rd quarter annual Drifty jam! I'm always so impressed with the games people make! This time our winner dominated both categories!
jamWinners2.png

Forum statistics

Threads
122,042
Messages
1,146,096
Members
160,310
Latest member
imthemudman
Top