Hi everyone!
I'm moderate user of RPG Maker and I wanted to ask a question. While working on a game I wanted to add variables to skills and I realized I have no idea how to do this. Is it possible to add variables to the skills box?
it depends on what you want to use the variables for.
If the variable is to be added to the skill's damage formula - that's easy, you can use most script commands (including the variable array) in the damage formula. There is a special topic how to use the damage formula on this forum, just search for it.
If you want to use the variables for special checks or randomisation, you'll best have the skill call a common event and use that event for the checks and options.
For more complex manipulations, you'll need scripts - there are several scripts out there that add effects or conditions to skills, usually controlled by notes but sometimes adapting variables as well.
Sorry about that. I should have added more details to that.
Okay so I'm trying to add a formula to a skill that will add 1 every time the actor uses it. Now every time the actor uses the skill one is added to a Variable. The Variable it's self isn't anything important. Just a affinity system I'm working on.
Add a feature "call common event" to the skill. In that common event, you add one to the variable of your choice.
If several skills should affect the same variable, they need to call the same event.
If skills should affect different variables, then you need different common events for them.
If a skill needs a common event for something else, put a call common event at the end of the regular event called by the skill, NOT in the skill features itself - each skill can only call one common event, it will ignore the others.
Ahhh. Some of the simplist things seem so complicated until you do it. Thank you Good Sir and/or Madam. We can now close this tread.
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.