Difference between revisions of "Cross Script Variables"

93 bytes added ,  17:41, 23 December 2010
→‎The Quest Script: put notes into thread on begin and end
imported>Bruneauinfo
(Removed Discussion note)
imported>Bruneauinfo
(→‎The Quest Script: put notes into thread on begin and end)
short ShortVar ; integer values can be stored and retrieved
 
begin GameMode ; begin block is not required
 
; you don't have to put anything in here
; instead you will set the values of these variables from outside scripts
 
end ; if begin block is not used the 'end' is not required either.
end
 
</pre>
 
*You do not need to start the quest! The values within the quest can be written to and read from even if it is never started. And anyway it saves on CPU cycles.
 
 
=== Storing a Value ===
Anonymous user