Buff/debuff IDs for scripts

Status
Not open for further replies.

abluescarab

Villager
Member
Joined
Jun 2, 2014
Messages
11
Reaction score
3
First Language
English
Primarily Uses
Hello, everyone.


I'm new to RPG Maker VX Ace (bought in in the Humble Weekly Bundle). I've just started writing my own script to generate and apply a random status effect.


In the GameBattler class, there's a function to add buffs and debuffs (add_buff, add_debuff) that asks for a param_id. Where can I find the different IDs for buffs and debuffs?


I realize I could probably do most of this without scripting, but I want to do it with scripting.


Thanks.  :)
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
You have this in Game_BattlerBase

  def mhp;  param(0);   end               # MHP  Maximum Hit Points  def mmp;  param(1);   end               # MMP  Maximum Magic Points  def atk;  param(2);   end               # ATK  ATtacK power  def def;  param(3);   end               # DEF  DEFense power  def mat;  param(4);   end               # MAT  Magic ATtack power  def mdf;  param(5);   end               # MDF  Magic DeFense power  def agi;  param(6);   end               # AGI  AGIlity  def luk;  param(7);   end               # LUK  LUcKThere you can see which ids are used for which param.

So for example def would have the param_id: 3.
 

abluescarab

Villager
Member
Joined
Jun 2, 2014
Messages
11
Reaction score
3
First Language
English
Primarily Uses
You have this in Game_BattlerBase

  def mhp;  param(0);   end               # MHP  Maximum Hit Points  def mmp;  param(1);   end               # MMP  Maximum Magic Points  def atk;  param(2);   end               # ATK  ATtacK power  def def;  param(3);   end               # DEF  DEFense power  def mat;  param(4);   end               # MAT  Magic ATtack power  def mdf;  param(5);   end               # MDF  Magic DeFense power  def agi;  param(6);   end               # AGI  AGIlity  def luk;  param(7);   end               # LUK  LUcKThere you can see which ids are used for which param.So for example def would have the param_id: 3.
That's what those mean? Thanks a lot!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Is this all you need?
 

abluescarab

Villager
Member
Joined
Jun 2, 2014
Messages
11
Reaction score
3
First Language
English
Primarily Uses
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Is this all you need?
Sorry, I went searching but didn't know what forum to post to. Yes, it's all I needed.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top