ConditionConditionalEffect ​
Inherits: ConditionalEffect < CompositeEffect < Effect < DatabaseResource < Resource
Applies child effects when a list of Conditions is met, for the target or for the originator. Every check of the Conditions system can decide here (has a tag, is a class, is at a level, carries an item, a variable ...) without a dedicated effect type for it.
Description ​
The Conditions see the checked entity as their "argument entity", so a condition set to "Argument Entity" checks the target (or the originator, see check_on) and "Target of Argument" checks what that entity is aiming at.
Properties ​
CheckOn | check_on | CheckOn.TARGET |
Logic | logic | Logic.ALL |
Array[Condition] | conditions | [] |
Methods ​
String | get_editor_description() |
Enumerations ​
enum CheckOn ​
The options of check on: target, originator.
- TARGET =
0 - ORIGINATOR =
1
enum Logic ​
The options of logic: all, any.
- ALL =
0 - ANY =
1
Property descriptions ​
Condition Settings
CheckOn check_on = CheckOn.TARGET ​
Whose state the Conditions are asked about
Logic logic = Logic.ALL ​
All: every Condition must be met. Any: one is enough
Array[Condition] conditions = [] ​
The Conditions to check. Empty = always met
Method descriptions ​
String get_editor_description() ​
A short text for the effect editor that says what the effect does.