This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "Cross Script Variables"

Jump to navigation Jump to search
356 bytes removed ,  09:27, 24 December 2010
imported>Bruneauinfo
(Got rid of quote requirement statements and quotes.)
imported>Bruneauinfo
Line 17: Line 17:
=== The Quest Script ===
=== The Quest Script ===


The quest script acts as a database. Unfortunately Oblivion doesn't provide the powerful database features you would find in an SQL database service. Still, it does provide the quest script where the most basic database functionality can be achieved - a command syntax for reading and writing to its variables from external scripts.
The quest script acts as a very basic database. The next two scripts will demonstrate the command syntax for reading and writing to a quest scripts variables from external scripts.


The script:
The script:
Line 34: Line 34:


  ; you don't have to put anything in here
  ; you don't have to put anything in here
  ; in fact you probably shouldn't. nothing is required here.
   
; if you set the value of a variable here it will be locked in
; 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 ; if begin block is not used the 'end' is not required either.  


Anonymous user

Navigation menu