How to increase a variable with a skill in battle

Joined
Feb 19, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello everyone.

First off I want to apologize if this post is in the wrong section!

I am very new to this whole field and it is my first time making a game. What I am currently trying to do is make a skill that
increase a variable's value every time the skill is used. After a certain value is reached, the variable will grant the character
that used the original skill with a new skill. I believe this may be achievable in the formula section of the skill. Problem is
I don't know how to formulate it correctly.

A different example of what I am going for: Harold uses the skill called Fire Ball in battle. Each time Fire Ball is used a
variable goes up a certain value. After the desired value is reached, the variable will unlock a new skill for Harold to
use, like Fire Storm or something.

Any help would be appreciated - Joey
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,124
Reaction score
10,634
First Language
Czech
Primarily Uses
RMMV
Make the skill call a common event? Can be done via the skill tab.
 

Rubescen

Veteran
Veteran
Joined
Jan 4, 2016
Messages
148
Reaction score
150
First Language
English
Primarily Uses
RMMV
I don't want to discourage you from using javascript in the damage formula box to do this, but it's probably simpler to achieve this with a common event.

Set up a common event which increases the variable associated with the skill. Each time the skill is used have the common event trigger (under effects tab 4). You can also include a conditional in the common event that checks for when the variable reaches a certain amount and grants the skill.

upload_2019-2-18_21-35-32.png
 
Joined
Feb 19, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thank you ever so much, Rubescen, your simple solution was exactly what I was looking for and it worked perfectly! Have a good day my friend!

This post can officially be considered solved.
 

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

Latest Threads

Latest Profile Posts

We are truly intellectuals.
Without using violence without weapons
Our group has as many as 1.3 million people and more than 1 hundred thousand talks.
We gathered in an hour, more than 4.5 Half a hundred thousand



I got a Sword.
I got an Axe.
I got two Swords.
Nothing to see here, just walking with my dog.
I haven’t worked on my game in a while. Tomorrow might be the day.
*squeals* :kaoblush:


I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!

Forum statistics

Threads
104,463
Messages
1,006,477
Members
135,971
Latest member
Akasheee
Top