I'm trying to set variable 1 to the actor ID of party member x, where x is the value of variable 4.
Here's my code.
But it doesn't seem to work, it instead always sets the value to 0. How do I fix it?
Here's my code.
JavaScript:
$gameVariables.setValue(1,$gameParty.members()[$gameVariables.value(4)]._actorID)