- Joined
- Jun 18, 2013
- Messages
- 235
- Reaction score
- 72
- First Language
- English
- Primarily Uses
so im not sure if this is the best method for doing this, but it seems to ALMOST work. im using Yanfly's Buffs and States Core and yanflys STB scripts
Buffs and States Core
Standard Turn Battle
what ive done is add in a custom skill for the player character:
when the skill is used it damages the user, and adds a state to said character that provides a double damage boost.
this state lasts for 3 turns, and upon expiring at the end of its last turn, (using the buffs and states core) i attempted to add in a special "Explosion" attack that damages all enemies. without taking up the users turn since it happens after they did their attack, but before the next user attacks.
the code in the note block:
<Custom Remove Effect>
var skill = 12;
var target = -1;
BattleManager.queueForceAction(user, skill, target);
</Custom Remove Effect>
everything works perfectly fine on the skills initial use, the player takes damage, deals double damage for three turns, and after the third turn they deal an explosive damage to ALL opponents before the opponents attack back. however, if the player uses the skill again AFTER this (on the next turn after the state is removed and the skill used) then it gets stuck in an infinite loop. the player takes damage, the state is applied, but then the state is perpetually at 4 turns remaining and never expires.
for the life of me i have no clue why the state gets caught in a loop and stops ticking down its turns.
EDIT: ok so using this ability seems to break the turn counter for all states. battlers and enemies are still able to fight it out no problem, but all states stop counting down after the custom remove skill is used.
Buffs and States Core
Standard Turn Battle
what ive done is add in a custom skill for the player character:
when the skill is used it damages the user, and adds a state to said character that provides a double damage boost.
this state lasts for 3 turns, and upon expiring at the end of its last turn, (using the buffs and states core) i attempted to add in a special "Explosion" attack that damages all enemies. without taking up the users turn since it happens after they did their attack, but before the next user attacks.
the code in the note block:
<Custom Remove Effect>
var skill = 12;
var target = -1;
BattleManager.queueForceAction(user, skill, target);
</Custom Remove Effect>
everything works perfectly fine on the skills initial use, the player takes damage, deals double damage for three turns, and after the third turn they deal an explosive damage to ALL opponents before the opponents attack back. however, if the player uses the skill again AFTER this (on the next turn after the state is removed and the skill used) then it gets stuck in an infinite loop. the player takes damage, the state is applied, but then the state is perpetually at 4 turns remaining and never expires.
for the life of me i have no clue why the state gets caught in a loop and stops ticking down its turns.
EDIT: ok so using this ability seems to break the turn counter for all states. battlers and enemies are still able to fight it out no problem, but all states stop counting down after the custom remove skill is used.