Bases: _DataSetIntEnums
This enum class provides the integer values used to reference the operations in the game. Used in a lot of effects
like 'Modify Attribute' to control whether an attribute is set, added to, multiplied or divided by a value.
Examples
Source code in AoE2ScenarioParser/datasets/trigger_lists/operation.py
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | class Operation(_DataSetIntEnums):
"""
This enum class provides the integer values used to reference the operations in the game. Used in a lot of effects
like 'Modify Attribute' to control whether an attribute is set, added to, multiplied or divided by a value.
**Examples**
"""
SET = 1
ADD = 2
SUBTRACT = 3
MULTIPLY = 4
DIVIDE = 5
|
Attributes
SET = 1
class-attribute
instance-attribute
Value:
1
ADD = 2
class-attribute
instance-attribute
Value:
2
SUBTRACT = 3
class-attribute
instance-attribute
Value:
3
MULTIPLY = 4
class-attribute
instance-attribute
Value:
4
DIVIDE = 5
class-attribute
instance-attribute
Value:
5