Help with simple script call..

hey guys..

I'm doing a conditional check using a script call..

($gameActors.actor(X).isStateAffected(Y))

this works just fine.. however.. im trying to make the value X equal to the value of a variable

($gameActors.actor($gameVariables.value(4)).isStateAffected(12))

doesnt work..

what am i doing wrong??

thanks!
dave
@Bionic687 Hmm what’s the context on setting that variable? Your script call for variable values is correct.
I tested your command out and it works just fine. How are you populating variable 4?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-simple-script-call.99448/