Difference between revisions of "Cross Script Variables"

Jump to navigation Jump to search
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)
Line 31: Line 31:
  short ShortVar ; integer values can be stored and retrieved
  short ShortVar ; integer values can be stored and retrieved


  begin GameMode
  begin GameMode ; begin block is not required


  ; you don't have to put anything in here
  ; you don't have to put anything in here
Line 38: Line 38:
  ; instead you will set the values of these variables from outside scripts   
  ; instead you will set the values of these variables from outside scripts   


  end
  end ; if begin block is not used the 'end' is not required either.


</pre>
</pre>
Line 60: Line 60:


*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.
*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 ===
=== Storing a Value ===
Anonymous user

Navigation menu