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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,647
Reaction score
15,742
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,647
Reaction score
15,742
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.

Latest Threads

Latest Posts

Latest Profile Posts

Anyone here ever confronted a never-ending loading screen? Took me 3 hours to realize the problem was the font format :yswt:
Ah, the problems a noob runs into...
WOOHOO!! FIXED A MAJOR SHOP PROBLEM I HAD FOR MONTHS, WHAT A WAY TO END MY STAY-CATION!
44 viewers at the same time!! :p That must be a personal record! ;)

1643393895196.png


I tried to make a face portrait.
it's the first ever time I try something like this, hope it came out decently even if it was my first.

Forum statistics

Threads
118,799
Messages
1,118,777
Members
155,972
Latest member
keqi
Top