Good evening RPGM Community!
I am attempting to get the following Javascript to work imbedded within state 29 of my game using the YEP_BuffsandStatesCore plugin:
The end state would be if state 29 is removed from any of the actors listed above; it sets their assigned control variable to "0", but currently, the script is not working.
Assistance is appreciated; thanks!
I am attempting to get the following Javascript to work imbedded within state 29 of my game using the YEP_BuffsandStatesCore plugin:
JavaScript:
<Custom Remove Effect>
if (user.actorId() === 9) {
condition = $gameVariable.value(4996)==0;
} else if (user.actorId() === 50) {
condition = $gameVariable.value(4988)==0;
} else if (user.actorId() === 63) {
condition = $gameVariable.value(4936)==0;
}
</Custom Remove Effect>
The end state would be if state 29 is removed from any of the actors listed above; it sets their assigned control variable to "0", but currently, the script is not working.
Assistance is appreciated; thanks!