Difference between revisions of "Result scripts"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>JOG
Line 8: Line 8:
*They may not [[declaring variables|declare variables]]   
*They may not [[declaring variables|declare variables]]   
*They may not use [[begin|begin/end blocks]]   
*They may not use [[begin|begin/end blocks]]   
*Dialogue results can not use the implied reference to access local variables in the actor's local script.
    
    



Revision as of 15:48, 13 June 2006

Result scripts are script fragments that are run a single time when a specific event occurs. There are two types of result scripts:

  • Dialogue results are run when an NPC speaks the associated info. Dialogue results are considered reference scripts.
  • Quest stage results are run when the quest stage is set, AND the stage item passes the associated conditions. Quest stage results are considered non-reference scripts.


Result scripts have some limitations compared to named scripts:

  • They may not declare variables
  • They may not use begin/end blocks
  • Dialogue results can not use the implied reference to access local variables in the actor's local script.


Otherwise, result scripts can use all the normal script commands and functions.

See Also

Named scripts