setactorvar[<sprite id>].<gamevar1> <gamevar2>
Sets the value of the actor-in-question's <gamevar1> to the gamevar, <gamevar2>. <gamevar1> must be defined as a per-actor-variable for this to work. See setactor.