Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
7 bytes added ,  10:53, 24 December 2007
→‎Activator Disadvantages: Moved set Working to top to stop infinite looping
imported>Haama
(→‎Activator Script: Moved setting Working to top to stop infinite loops)
imported>Haama
(→‎Activator Disadvantages: Moved set Working to top to stop infinite looping)
end</pre>
Set Working to 0 when you wish to keep the script from running.
* These solutions work hand in hand. When the script should be running, and Working is 1, set Working to 1 at the endbeginning of every frame to keep it loaded for the next frame. When it's 0, don't set any variables and the activator will be unloaded, preventing the script from errantly running. Combining them looks like this:
<pre>short Working
...
begin GameMode
if Working
set Working to 1▼
 
if (Choosing == 0)
set Working to 0
...
endif
▲ set Working to 1
endif
end</pre>
Anonymous user

Navigation menu