A skill that varies based on a variable

The title says it all. I'm trying to implement skills that change it's damage and effects depending on a variable. I tried implement this by using common events, but when using it the skill has a pause before preforming common event, so it's not really ideal, although it works. I tried to use java script and visustella's battle core, but it had zero change.
The title says it all
you would have to give more details

I'm trying to implement skills that change it's damage and effects depending on a variable
does it use entirely different formulas based on the variable? is the variable just a factor of in formula? what effects are you trying to do?

I tried to use java script and visustella's battle core, but it had zero change.
you would have to tell us what exactly you want and show us exactly what you did for us to say what you did wrong
you would have to give more details


does it use entirely different formulas based on the variable? is the variable just a factor of in formula? what effects are you trying to do?


you would have to tell us what exactly you want and show us exactly what you did for us to say what you did wrong
OK, so basically I'm trying to implement a mechanic that allows to boost moves. To activate it, you need to use a special skill. This skill simply uses up 1 MP and increases a variable by one point.

Then, when you use a skill, it runs a common event and nothing else. (no damage, no formulas, nothing.) It just checks the value in a variable. After that, it selects one of the four versions of that skill, which actually have formulas, animations, and other effects.
Spoiler: screenshot
Знімок екрана (503).png
In case of this skill, using more boost points allows you to use the skill multiple times in a single turn. However, if 0 points are used, the skill won't work at all. Just in case, this system IS working, it just has a slight delay when using it. I'm just wondering is there more refined way to implement what I'm trying to do.

I mentioned that "I tried to use JavaScript and VisuStella's battle core" because I was testing out the note tag for the skill. I wanted to see if there is a way to trigger a common event before the damage calculation, hoping it would eliminate any delay. Unfortunately, it didn’t change anything. From what i understand, when using this skill it tries to preform a nonexistent formula, and only THEN preforms the common event and actual move. Engine treats those two skills as two different ones, which is why there is a delay. So, is there any way to make it more straightforward for the engine, with or without using plugins?
I'm just wondering is there more refined way to implement what I'm trying to do.
im fairly certain you can pull it off with visustella action sequences, but im not familiar with that version enough to be able to give concrete suggestions on how. It would be my go-to for setting this up though if i were you. you should be able to set up the skill to run its action animation and effect within a loop based on the loop variable.

I wanted to see if there is a way to trigger a common event before the damage calculation, hoping it would eliminate any delay. Unfortunately, it didn’t change anything. From what i understand, when using this skill it tries to preform a nonexistent formula, and only THEN preforms the common event and actual move.
theres 2 issues there. yes, by default the common events of skills execute some time after the damage execution, but the other thing is that the engine *only* looks to run common events at specific times. using a script call to reserve a CE earlier wouldnt cause it to be executed earlier without changing that part of the engine.

you might be able to use a post-apply effect notetag and the engine's script call for forcing actions to force the skill a few times. Forcing the action worked with the equivalent setup using yanfly's battle core plugin where the current skill was interrupted for the second.
im fairly certain you can pull it off with visustella action sequences, but im not familiar with that version enough to be able to give concrete suggestions on how. It would be my go-to for setting this up though if i were you. you should be able to set up the skill to run its action animation and effect within a loop based on the loop variable.


theres 2 issues there. yes, by default the common events of skills execute some time after the damage execution, but the other thing is that the engine *only* looks to run common events at specific times. using a script call to reserve a CE earlier wouldnt cause it to be executed earlier without changing that part of the engine.

you might be able to use a post-apply effect notetag and the engine's script call for forcing actions to force the skill a few times. Forcing the action worked with the equivalent setup using yanfly's battle core plugin where the current skill was interrupted for the second.
Hello! Sorry for replying so lately!
You were spot on! Using Visustella Action Sequences really solved the delay problem. It took me a bit to understand how to set up the skills the way I wanted, but it definitely paid off! Thank you so much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/a-skill-that-varies-based-on-a-variable.175276/