View source for Dialogues/ScriptInstructions
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
Return to Dialogues/ScriptInstructions.
You do not have permission to edit this page, for the following reason:
The action you have requested is limited to users in the group: Users.
You can view and copy the source of this page.
Return to Dialogues/ScriptInstructions.
Dialogue fragments can execute script instructions upon being reached.
An instruct is a single line of text in the following format:
Type: Expression
where Type is one of the following:
If the Type: part of the condition is omitted, it is assumed to be Call:.
For function call instructions, Expression must be the name of a function in the level script which takes no arguments.
The function will be called, that's it.
For set instructions, Expression must be of the format:
VariableName = SubExpression
where VariableName is the name of a global variable (e.g. SomeState.bSomeValue) and SubExpression is a mathematical or logical expression.
Some examples of valid set instructions are:
Set: SomeState.bSomeValue = true // Set value to true Set: SomeState.bSomeValue = ! SomeState.bSomeOtherValue // Set value to the opposite of SomeState.bSomeOtherValue Set: SomeState.iSomeNumber = SomeState.iSomeNumber + 1 // Increment some number by 1