- Joined
- Nov 18, 2018
- Messages
- 13
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMMV
I have a small problem with the skills I'm creating.
Currently I force battler 0 to do an action when a state ends using Yanfly's Buffstates plugins.
<Custom Remove Effect>
$gameParty.members()[0].forceAction(46, 1);
BattleManager.forceAction($gameParty.members()[0]);
</Custom Remove Effect>
My problem is, is that actor will not be battler 0 throughout the game. She will be moved around, which will cause these states to fail to force the attack.
Is there a way for it to check for Actor ID two, and which position she is in? And then insert that battler number into this code? I imagine I would have to create a variable to find her battle position and then place that var where the "0"'s are. I do not know how to do that properly.
Thank you!
Currently I force battler 0 to do an action when a state ends using Yanfly's Buffstates plugins.
<Custom Remove Effect>
$gameParty.members()[0].forceAction(46, 1);
BattleManager.forceAction($gameParty.members()[0]);
</Custom Remove Effect>
My problem is, is that actor will not be battler 0 throughout the game. She will be moved around, which will cause these states to fail to force the attack.
Is there a way for it to check for Actor ID two, and which position she is in? And then insert that battler number into this code? I imagine I would have to create a variable to find her battle position and then place that var where the "0"'s are. I do not know how to do that properly.
Thank you!

