Hello. I'm using many of Yanfly's plugins, the key ones in this topic being the Core, Battle Engine, and all 3 Action Battle Sequence plugins. For my basic attacks, this is the code I'm using:
This is very straight-forward. The attacker moves to the enemy, swings, damages the enemy, then moves back with the enemy blinking to signify a hit.
The trickery comes when using RPG Maker's built-in Attack Times + flag. I created a state which allowed the user to attack twice, achieving this by having the state provide Attack Times + 1. However, upon testing it, the player attacks 3 times in total. This is 2 additional times instead of just 1 additional time.
Setting Attack Times to + 0 of course ends up with no additional attacks.
So, I'm in this weird situation where I can have one attack or three attacks, but not two. Is there anything I could do to get around this which doesn't involve the player invoking a completely different Attack skill?
Code:
<Enemy or Actor Select>
<scope change rule: all-enemy>
a.isStateAffected(58)
</scope change rule>
<scope change rule: all-enemy>
a.isStateAffected(151)
</scope change rule>
<setup action>
display action
move user: target, FRONT
</setup action>
<target action>
wait: 5
MOTION SWING: user
attack animation: target
wait: 15
</target action>
<finish action>
enemy effect: targets, blink
action effect
clear battle log
move user: HOME
face user: FORWARD
</finish action>
This is very straight-forward. The attacker moves to the enemy, swings, damages the enemy, then moves back with the enemy blinking to signify a hit.
The trickery comes when using RPG Maker's built-in Attack Times + flag. I created a state which allowed the user to attack twice, achieving this by having the state provide Attack Times + 1. However, upon testing it, the player attacks 3 times in total. This is 2 additional times instead of just 1 additional time.
Setting Attack Times to + 0 of course ends up with no additional attacks.
So, I'm in this weird situation where I can have one attack or three attacks, but not two. Is there anything I could do to get around this which doesn't involve the player invoking a completely different Attack skill?