I want to make a variable, that will belong to a player. Not a global variable.
I have standart classes lua-script. And I want to make button on the map, that can be usable only by 1 class (Other classes can't use it).
I've tried to put something like this
<...> if (sample.classes.class[id]==6) then varname=1 <...>
But it's not local variable and when someone changes class, nobody can use button.
So, how can make a local variable and what should I put in trigger_if?