- Joined
- Oct 12, 2016
- Messages
- 6
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Hello,
I've been trying to system in which a state will be added as soon as another wears off from walking so many steps outside of battle. I'm trying to use Yanfly's Buffs and States core to do this using the <Custom Leave Effect> script call.
So far, I've been trying to use $gameActors.actor(actorId).addState(n); to add the state, but I have no clue what to enter in the actorId spot that would select the actor that the new state needs to be applied to.. It works if I enter a static number, like 1 or 2, but that's not ideal.
I've been trying to system in which a state will be added as soon as another wears off from walking so many steps outside of battle. I'm trying to use Yanfly's Buffs and States core to do this using the <Custom Leave Effect> script call.
So far, I've been trying to use $gameActors.actor(actorId).addState(n); to add the state, but I have no clue what to enter in the actorId spot that would select the actor that the new state needs to be applied to.. It works if I enter a static number, like 1 or 2, but that's not ideal.

