mob
player
proc
test()
var/x1 = 5
//...
x1 = 6
world << "[x1]"
Problem description: I have a variable x1 of a function test() with an initial value of 5. Somewhere in my code I want to make that variable have a value of 6, permanently everytime the function it is called. But the above code keeps printing 5. How can I fix its scope?
Thanks