Difference between revisions of "Result scripts"
Jump to navigation
Jump to search
imported>JOG m |
|||
(One intermediate revision by the same user not shown) | |||
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 variables in the actor's local script. | |||
Latest revision as of 16:19, 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 variables in the actor's local script.
Otherwise, result scripts can use all the normal script commands and functions.