ConditionId
Bases: IntEnum
This enum class provides the integer values used to reference the conditions in the game. Used in every condition to indicate which type of condition it is
Examples
Source code in AoE2ScenarioParser/datasets/conditions.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
Attributes¶
ACCUMULATE_ATTRIBUTE = 8
class-attribute
instance-attribute
¶
8
Attributes for the accumulate_attribute condition are:
- quantity
- attribute
- source_player
- inverted
AI_SIGNAL = 12
class-attribute
instance-attribute
¶
12
Attributes for the ai_signal condition are:
- ai_signal
- inverted
AI_SIGNAL_MULTIPLAYER = 30
class-attribute
instance-attribute
¶
30
Attributes for the ai_signal_multiplayer condition are:
- ai_signal
- inverted
Version notice:
This condition was added in: 1.40
AND = 57
class-attribute
instance-attribute
¶
57
The AND condition does not have any attributes
Version notice:
This condition was added in: 1.46
BRING_OBJECT_TO_AREA = 1
class-attribute
instance-attribute
¶
1
Attributes for the bring_object_to_area condition are:
- unit_object
- area_x1
- area_y1
- area_x2
- area_y2
- inverted
BRING_OBJECT_TO_OBJECT = 2
class-attribute
instance-attribute
¶
2
Attributes for the bring_object_to_object condition are:
- unit_object
- next_object
- inverted
BUILDING_IS_TRADING = 54
class-attribute
instance-attribute
¶
54
Attributes for the building_is_trading condition are:
- unit_object
- inverted
Version notice:
This condition was added in: 1.46
CAPTURE_OBJECT = 7
class-attribute
instance-attribute
¶
7
Attributes for the capture_object condition are:
- unit_object
- source_player
- inverted
CHANCE = 20
class-attribute
instance-attribute
¶
20
Attributes for the chance condition are:
- quantity
DESTROY_OBJECT = 6
class-attribute
instance-attribute
¶
6
Attributes for the destroy_object condition are:
- unit_object
- inverted
DIFFICULTY_LEVEL = 19
class-attribute
instance-attribute
¶
19
Attributes for the difficulty_level condition are:
- condition_type
- quantity
- inverted
DIPLOMACY_STATE = 24
class-attribute
instance-attribute
¶
24
Attributes for the diplomacy_state condition are:
- quantity
- source_player
- inverted
- target_player
DISPLAY_TIMER_TRIGGERED = 55
class-attribute
instance-attribute
¶
55
Attributes for the display_timer_triggered condition are:
- timer_id
- inverted
Version notice:
This condition was added in: 1.46
NONE = 0
class-attribute
instance-attribute
¶
0
Attributes for the none condition are:
... It's called none... What parameters do you think it has?! ❤
OBJECTS_IN_AREA = 5
class-attribute
instance-attribute
¶
5
Attributes for the object_in_area condition are:
- quantity
- object_list
- source_player
- area_x1
- area_y1
- area_x2
- area_y2
- object_group
- object_type
- object_state
- inverted
- include_changeable_weapon_objects
OBJECT_HAS_ACTION = 28
class-attribute
instance-attribute
¶
28
Attributes for the object_has_action condition are:
- unit_object
- next_object
- inverted
- unit_ai_action
Version notice:
This condition was added in: 1.40
OBJECT_HAS_TARGET = 14
class-attribute
instance-attribute
¶
14
Attributes for the object_has_target condition are:
- unit_object
- next_object
- object_list
- object_group
- object_type
- inverted
OBJECT_HP = 23
class-attribute
instance-attribute
¶
23
Attributes for the object_hp condition are:
- quantity
- unit_object
- inverted
- comparison
OBJECT_NOT_VISIBLE = 16
class-attribute
instance-attribute
¶
16
Attributes for the object_not_visible condition are:
- unit_object
OBJECT_SELECTED = 11
class-attribute
instance-attribute
¶
11
Attributes for the object_selected condition are:
- unit_object
- inverted
OBJECT_SELECTED_MULTIPLAYER = 26
class-attribute
instance-attribute
¶
26
Attributes for the object_selected_multiplayer condition are:
- unit_object
- source_player
- inverted
Version notice:
This condition was added in: 1.40
OBJECT_VISIBLE = 15
class-attribute
instance-attribute
¶
15
Attributes for the object_visible condition are:
- unit_object
OBJECT_VISIBLE_MULTIPLAYER = 27
class-attribute
instance-attribute
¶
27
Attributes for the object_visible_multiplayer condition are:
- unit_object
- source_player
- inverted
Version notice:
This condition was added in: 1.40
OR = 29
class-attribute
instance-attribute
¶
29
The OR condition does not have any attributes
Version notice:
This condition was added in: 1.40
OWN_FEWER_OBJECTS = 4
class-attribute
instance-attribute
¶
4
Attributes for the own_fewer_objects condition are:
- quantity
- object_list
- source_player
- area_x1
- area_y1
- area_x2
- area_y2
- object_group
- object_type
- include_changeable_weapon_objects
OWN_OBJECTS = 3
class-attribute
instance-attribute
¶
3
Attributes for the own_objects condition are:
- quantity
- object_list
- source_player
- object_group
- object_type
- include_changeable_weapon_objects
PLAYER_DEFEATED = 13
class-attribute
instance-attribute
¶
13
Attributes for the player_defeated condition are:
- source_player
- inverted
RESEARCHING_TECH = 17
class-attribute
instance-attribute
¶
17
Attributes for the researching_tech condition are:
- source_player
- technology
- inverted
RESEARCH_TECHNOLOGY = 9
class-attribute
instance-attribute
¶
9
Attributes for the research_technology condition are:
- source_player
- technology
- inverted
SCRIPT_CALL = 25
class-attribute
instance-attribute
¶
25
Attributes for the script_call condition are:
- xs_function
Version notice:
This condition was added in: 1.40
TECHNOLOGY_STATE = 21
class-attribute
instance-attribute
¶
21
Attributes for the technology_state condition are:
- quantity
- source_player
- technology
- inverted
TIMER = 10
class-attribute
instance-attribute
¶
10
Attributes for the timer condition are:
- timer
- inverted
UNITS_GARRISONED = 18
class-attribute
instance-attribute
¶
18
Attributes for the units_garrisoned condition are:
- quantity
- unit_object
- inverted
VARIABLE_VALUE = 22
class-attribute
instance-attribute
¶
22
Attributes for the variable_value condition are:
- quantity
- inverted
- variable
- comparison
VICTORY_TIMER = 56
class-attribute
instance-attribute
¶
56
Attributes for the victory_timer condition are:
- quantity
- source_player
- inverted
- comparison
- victory_timer_type
Version notice:
This condition was added in: 1.46