Skill that grows in strength each turn

Hi,


Using RPG Maker VX Ace, I'm trying to set up an enemy to have a particular skill and I'm not sure how to pull this off.  Hopefully someone here can show me how this is done!  🙂


Here is what the skill should do:


- Turn 1: Physical attack


- Turn 2: Physical attack, but slightly more damaging than Turn 1


- Turn 3: Physical attack, but slightly more damaging than Turn 2


- Turn 4: Physical attack, but slightly more damaging than turn 3


- Turn 5: The sequence ends with the enemy suffering from the Confusion state


I imagine this has something to do with setting up a State, but I'm now sure how to create a skill that lasts several turns or how to have the damage dealt be exponentially greater with each turn.


I greatly appreciate any help on this!
Couldn't you do this by creating 4 skills, each one more powerful than the other, and have the enemy use that version of the skill at the appropriate spot in the turn pattern? As in:


Turn 1: Use attack


Turn 2: Use whatever skill you put the more powerful attack in.


Turn 3: Use whatever skill is the next attack in the sequence.


So on.


Then, on turn 5, have them use a skill that targets self only and adds confusion with 100% chance, certain hit.
You'll need a custom attack formula, a variable, and a common event.


Lets say your default attack formula is


a.atk * 4 - b.def * 2.




We're gonna do this instead:


((a.atk + v[15])* 4) - (b.def * 2)


v[15] means you're taking variable 15 and adding it to the users attack, then multiplying that by 4. You're going to call a common event, too. That common event will add a set amount to variable 15, or whatever variable you decide to use. So, if you add 2 each turn, it'll do this:


Turn 1: a.atk + 0
Turn 2: a.atk + 2
Turn 3: a.atk + 4
Turn 4: a.atk + 6


You're also going to use a conditional branch in the common event to see what the variables current value is. Reason for this is to track what turn it's on, since you're increasing the value by a set amount per turn.


So, if the game knows that the variables value is 6, then it MUST be turn 4. If it's 0, it MUST be turn 1. If the variable would be equal to 8, in this instance, that would indicate that it's turn 5, and it would then add the confusion state.
You can do the checking and modification of the variable in the DF itself, as long as it fits the box...
Thank you for the responses!  I'll be sure to give these a try.  🙂

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-grows-in-strength-each-turn.55374/