I was writing some scripts and got strange failures.
Testing revealed that the .@ variables (local scope) were losing their values when menu or input commands were used.
I am guessing that to execute menu or input, the script engine stops execution. Upon getting an answer from the client it uses a new scope to continue execution. I expect all the commands that get input from the client are going to kill all the .@ variables.
Is this a bug that needs to be fixed ?
Perhaps it is a strange feature that I do not understand ?
Just changing to using NPC or player storage is gong to be a problem, as anything created will live forever.
Such variables cannot be destroyed again (At least I have not found any way to do that).
A few of scripts do not have player invocation, nor a NPC. Those are probably the only ones that are working well because they cannot use the menu or input commands.