Hah ok I see. Never used it (and with these issues probably good reason :D)
There are forks of Puzzlescript online. I think there are some that may have variables.