IF True() THEN RESPONSE #100 SetTokenGlobal("DEBUGTEST","LOCALS","DEBUGTEST") DisplayString(Myself,"DEBUGTEST: <DEBUGTEST>") Continue() END IF True() THEN RESPONSE #100 IncrementGlobal("DEBUGTEST","LOCALS",1) END
This script will display
DEBUGTEST: 0
DEBUGTEST: 1
DEBUGTEST: 2
...
in the message window. So instead of using a lot of CLUAConsole:GetGlobal(...) you can write a script that displays all your GLOBALs.
335 SetTokenGlobal(S:GLOBAL*,S:Area*,S:Token*)
also allows you to use the value of a variable in dialogue string.
edit: Looking at SimDing0´s scripting guide I´ve seen that it´s allready mentioned there. So it´s nothing really new but maybe there are a few who didn´t know.