Conditions are used to selectively run actions. More...
Public Types | |
enum | LastEvaluationValue { None , True , False } |
Public Member Functions | |
bool | IsTrue (Transform interactor) |
Indicates whether this Condition is true. | |
Public Attributes | |
string[] | luaConditions = new string[0] |
Conditional expressions in Lua code. | |
QuestCondition[] | questConditions = new QuestCondition[0] |
Quest conditions. | |
string[] | acceptedTags = new string[0] |
The accepted tags. | |
GameObject[] | acceptedGameObjects = new GameObject[0] |
The accepted game objects. | |
int | luaWizardIndex = -1 |
LastEvaluationValue | lastEvaluationValue = LastEvaluationValue.None |
Conditions are used to selectively run actions.
A condition is made of any number of Lua conditions, quest conditions, accepted tags, and accepted game objects. In order for the Condition to be true, all subconditions must be true.
|
inline |
Indicates whether this Condition is true.
GameObject [] PixelCrushers.DialogueSystem.Condition.acceptedGameObjects = new GameObject[0] |
The accepted game objects.
The Condition is true only if the interactor is in the list of accepted game objects, or if the list is empty.
string [] PixelCrushers.DialogueSystem.Condition.acceptedTags = new string[0] |
The accepted tags.
The Condition is true only if the interactor's tag is in the list of accepted tags, or if the list is empty.
LastEvaluationValue PixelCrushers.DialogueSystem.Condition.lastEvaluationValue = LastEvaluationValue.None |
string [] PixelCrushers.DialogueSystem.Condition.luaConditions = new string[0] |
Conditional expressions in Lua code.
The Condition is true only if all Lua conditions evaluate to true
.
[Lua code:] Variable["Gold"] > 50
int PixelCrushers.DialogueSystem.Condition.luaWizardIndex = -1 |
QuestCondition [] PixelCrushers.DialogueSystem.Condition.questConditions = new QuestCondition[0] |
Quest conditions.
The Condition is true only if all quest conditions are true.