If I am not wrong, calling a function from callfunc or callsub causes to start a new scope.[quote]
".@" - A scope variable.
They are unique to the character, script and scope. Each script
execution has its own scope that ends when the script ends.
[color=#ff0000][b]Calling a function with callsub/callfunc starts a new scope,
returning from the function ends it.[/b][/color] When a scope ends, its
variables are converted to values ('return .@var;' returns a
value, not a reference).[/quote]
This post has been edited by
Dastgir
on May 28, 2014 5:45