- Joined
- Nov 16, 2016
- Messages
- 324
- Reaction score
- 75
- First Language
- English
Hi everyone,
I'm trying to do some basic tests with a state that is applied in the menu onto an actor. Using YEP's Buffs & States core, I'm trying to get this state to remove itself after a certain amount of battles.
This is what I have written inside the notebox:
This doesn't work - the state remains on the actor affected by the state. Probably for obvious reasons.
1) I don't temporary created inside a state using YEP's plugin remain constant outside of battle if the state is still applied.
2) I'm very sketchy on how to remove the state from the actor affected without using an actor slot. I'm almost certain I've used "$gameActors.actor(this._actorId).removeState(57)" incorrectly here.
Anyway, thanks for any light anyone can shed on this!
I'm trying to do some basic tests with a state that is applied in the menu onto an actor. Using YEP's Buffs & States core, I'm trying to get this state to remove itself after a certain amount of battles.
This is what I have written inside the notebox:
Code:
<Custom Battle Effect>
var battleCount = battleCount || 0;
battleCount + 1;
</Custom Battle Effect>
<Custom Victory Effect>
if (battleCount > 2) {
$gameActors.actor(this._actorId).removeState(57);
}
</Custom Victory Effect>
<Custom Escape Effect>
if (battleCount > 2) {
$gameActors.actor(this._actorId).removeState(57);
}
</Custom Escape Effect>
1) I don't temporary created inside a state using YEP's plugin remain constant outside of battle if the state is still applied.
2) I'm very sketchy on how to remove the state from the actor affected without using an actor slot. I'm almost certain I've used "$gameActors.actor(this._actorId).removeState(57)" incorrectly here.
Anyway, thanks for any light anyone can shed on this!

