Is this correct syntax for setting a value?

What is wrong with this? I keep getting the error, "Invalid left-hand in assignment." I am trying to set variable 76 to the ID of the 1st actor in the party.


$gameVariables.setValue(76) =


$gameParty.actor(0).id
gameVariables.setValue(76,gameParty.actor(0).id)
It says gameVariables isn't defined.
lol sorry my mistake i forgot $


$gameVariables.setValue(76,gameParty.actor(0).id)
gameParty is not defined.
$gameVariables.setValue(76,$gameParty.members()[0].actorId())
Thanks :3
your welcome


i should check your ' gameParty.actor(0).id ' 


before i give answer  😛

Original thread: https://forums.rpgmakerweb.com/threads/is-this-correct-syntax-for-setting-a-value.59985/