diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..c6c7dfc7 --- /dev/null +++ b/404.html @@ -0,0 +1,2057 @@ + + + +
+ + + + + + + + + + + + + + +AoE2DEScenario
+
+
+¶
+ Bases: AoE2Scenario
Used to represent a scenario with version >= 1.36 (DE). It is the main class that is exposed to the user of the API.
+ +AoE2ScenarioParser/scenarios/aoe2_de_scenario.py
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 |
|
map_manager: MapManagerDE
+
+
+ property
+
+
+¶MapManagerDE
+
+ The map manager of the scenario
+message_manager: MessageManager
+
+
+ property
+
+
+¶MessageManager
+
+ option_manager: OptionManager
+
+
+ property
+
+
+¶OptionManager
+
+ player_manager: PlayerManager
+
+
+ property
+
+
+¶PlayerManager
+
+ The player manager of the scenario
+trigger_manager: TriggerManagerDE
+
+
+ property
+
+
+¶TriggerManagerDE
+
+ The trigger manager of the scenario
+unit_manager: UnitManagerDE
+
+
+ property
+
+
+¶UnitManagerDE
+
+ The unit manager of the scenario
+xs_manager: XsManagerDE
+
+
+ property
+
+
+¶XsManagerDE
+
+ The XS manager of the scenario
+def from_file(...)
+
+
+ classmethod
+
+
+¶Creates and returns an instance of the AoE2DEScenario class from the given scenario file
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
path |
+
+ str
+ |
+
+
+
+ The path to the scenario file to create the object from + |
+ + required + | +
game_version |
+
+ str
+ |
+
+
+
+ The version of the game to create the object for + |
+
+ 'DE'
+ |
+
name |
+
+ str
+ |
+
+
+
+ The name given to this scenario (defaults to the filename without extension) + |
+
+ ''
+ |
+
Returns:
+Type | +Description | +
---|---|
+ S
+ |
+
+
+
+ An instance of the AoE2DEScenario class which is the object representation of the given scenario file + |
+
AoE2ScenarioParser/scenarios/aoe2_de_scenario.py
53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 |
|
Func: TypeVar = TypeVar('Func', bound='Callable[[Any], Any]')
+
+
+ module-attribute
+
+
+¶TypeVar
+ TypeVar('Func', bound='Callable[[Any], Any]')
A type variable (generic) that represents a function
+S: TypeVar = TypeVar('S', bound='AoE2Scenario')
+
+
+ module-attribute
+
+
+¶TypeVar
+ TypeVar('S', bound='AoE2Scenario')
A type variable (generic) that represents an instance of the AoE2Scenario class or any of its
+subclasses (e.g. AoE2DEScenario
)
AoE2Scenario
+
+
+¶All scenario objects are derived from this class
+ +AoE2ScenarioParser/scenarios/aoe2_scenario.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 +519 +520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556 +557 +558 +559 +560 +561 +562 +563 +564 +565 +566 +567 +568 +569 |
|
actions: ScenarioActions = ScenarioActions(self.uuid)
+
+
+ instance-attribute
+
+
+¶ScenarioActions
+ ScenarioActions(self.uuid)
game_version: str = game_version
+
+
+ instance-attribute
+
+
+¶str
+ game_version
map_manager: MapManager
+
+
+ property
+
+
+¶MapManager
+
+ The map manager of the scenario
+message_manager: MessageManager
+
+
+ property
+
+
+¶MessageManager
+
+ The message manager of the scenario
+name: str = name
+
+
+ instance-attribute
+
+
+¶str
+ name
new: ObjectFactory = ObjectFactory(self.uuid)
+
+
+ instance-attribute
+
+
+¶ObjectFactory
+ ObjectFactory(self.uuid)
player_manager: PlayerManager
+
+
+ property
+
+
+¶PlayerManager
+
+ The player manager of the scenario
+scenario_version: str = scenario_version
+
+
+ instance-attribute
+
+
+¶str
+ scenario_version
scenario_version_tuple: tuple[int, ...]
+
+
+ property
+
+
+¶tuple[int, ...]
+
+ sections: Dict[str, AoE2FileSection] = {}
+
+
+ instance-attribute
+
+
+¶Dict[str, AoE2FileSection]
+ {}
source_location: str = source_location
+
+
+ instance-attribute
+
+
+¶str
+ source_location
structure: Dict = {}
+
+
+ instance-attribute
+
+
+¶Dict
+ {}
trigger_manager: TriggerManager
+
+
+ property
+
+
+¶TriggerManager
+
+ The trigger manager of the scenario
+unit_manager: UnitManager
+
+
+ property
+
+
+¶UnitManager
+
+ The unit manager of the scenario
+uuid: UUID = uuid4()
+
+
+ instance-attribute
+
+
+¶UUID
+ uuid4()
variant: ScenarioVariant
+
+
+ property
+ writable
+
+
+¶ScenarioVariant
+
+ def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
game_version |
+
+ str
+ |
+ - | ++ required + | +
scenario_version |
+
+ str
+ |
+ - | ++ required + | +
source_location |
+
+ str
+ |
+ - | ++ required + | +
name |
+
+ str
+ |
+ - | ++ required + | +
variant |
+
+ ScenarioVariant | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/scenarios/aoe2_scenario.py
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 |
|
def commit(...)
+
+¶Commit the changes to the retriever backend made within the managers.
+ + + + + +AoE2ScenarioParser/scenarios/aoe2_scenario.py
300 +301 +302 |
|
def from_file(...)
+
+
+ classmethod
+
+
+¶Creates and returns an instance of the AoE2Scenario class from the given scenario file
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
path |
+
+ str
+ |
+
+
+
+ The path to the scenario file to create the object from + |
+ + required + | +
game_version |
+
+ str
+ |
+
+
+
+ The version of the game to create the object for + |
+ + required + | +
name |
+
+ str
+ |
+
+
+
+ The name given to this scenario (defaults to the filename without extension) + |
+
+ ''
+ |
+
Returns:
+Type | +Description | +
---|---|
+ S
+ |
+
+
+
+ An instance of the AoE2Scenario class (or any of its subclasses) which is the object representation of +the given scenario file + |
+
AoE2ScenarioParser/scenarios/aoe2_scenario.py
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 |
|
def get_scenario(...)
+
+
+ staticmethod
+
+
+¶Get scenario through a UUID, a related object or the name of a scenario.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
uuid |
+
+ UUID
+ |
+
+
+
+ The UUID of the scenario + |
+
+ None
+ |
+
obj |
+
+ 'AoE2Object'
+ |
+
+
+
+ An object related to a scenario + |
+
+ None
+ |
+
name |
+
+ str
+ |
+
+
+
+ The name of a scenario + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ S
+ |
+
+
+
+ The scenario based on the given identifier, or |
+
AoE2ScenarioParser/scenarios/aoe2_scenario.py
183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 +195 +196 +197 +198 +199 +200 |
|
def on_write(...)
+
+¶Register a function to be called on write (intended to be used as a decorator)
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
func |
+
+ Func
+ |
+ - | ++ required + | +
AoE2ScenarioParser/scenarios/aoe2_scenario.py
74 +75 +76 +77 |
|
def remove_store_reference(...)
+
+¶This function is DEPRECATED. No replacement is necessary as the store now uses weak references. +You can safely remove the call to this function.
+--- Legacy docstring ---
+Removes the reference to this scenario object from the scenario store. Useful (~a must) when reading many +scenarios in a row without needing earlier ones. Python likes to take up a lot of memory. +Removing all references to an object will cause the memory to be cleared up.
+ + +When using this function it's important to remove all other references to the scenario.
+So if save it in a dict or list, remove it from it.
+If you have variables referencing this scenario that you won't need anymore (and won't overwrite) delete
+them using: del varname
.
AoE2ScenarioParser/scenarios/aoe2_scenario.py
279 +280 +281 +282 +283 +284 +285 +286 +287 +288 +289 +290 +291 +292 +293 +294 +295 +296 +297 +298 |
|
def write_error_file(...)
+
+¶Outputs the contents of the entire scenario file in a readable format. An example of the format is given below::
+1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 |
|
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
filename |
+
+ str
+ |
+
+
+
+ The filename to write the error file to + |
+
+ 'error_file.txt'
+ |
+
trail_generator |
+
+ IncrementalGenerator
+ |
+
+
+
+ Write all the bytes remaining in this generator as a trail + |
+
+ None
+ |
+
AoE2ScenarioParser/scenarios/aoe2_scenario.py
369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 |
|
def write_to_file(...)
+
+¶Writes the scenario to a new file with the given filename
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
filename |
+
+ str
+ |
+
+
+
+ The location to write the file to + |
+ + required + | +
skip_reconstruction |
+
+ bool
+ |
+
+
+
+ If reconstruction should be skipped. If true, this will ignore all changes made +using the managers (For example all changes made using trigger_manager). + |
+
+ False
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ if the setting DISABLE_ERROR_ON_OVERWRITING_SOURCE is not disabled and the source filename is +the same as the filename being written to + |
+
AoE2ScenarioParser/scenarios/aoe2_scenario.py
308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 |
|
MapManager
+
+
+¶
+ Bases: AoE2Object
Manager of everything map related.
+This class does not include the logic for DE specific features.
+For those see: MapManagerDE
AoE2ScenarioParser/objects/managers/map_manager.py
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 |
|
terrain: List[TerrainTile]
+
+
+ property
+ writable
+
+
+¶List[TerrainTile]
+
+ def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
map_width |
+
+ int
+ |
+ - | ++ required + | +
map_height |
+
+ int
+ |
+ - | ++ required + | +
terrain |
+
+ List[TerrainTile]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/map_manager.py
32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 |
|
def get_square_1d(...)
+
+¶Get a square of tiles from the map
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x1 |
+
+ int
+ |
+
+
+
+ The x1 coordinate of the square + |
+ + required + | +
y1 |
+
+ int
+ |
+
+
+
+ The y1 coordinate of the square + |
+ + required + | +
x2 |
+
+ int
+ |
+
+
+
+ The x2 coordinate of the square + |
+ + required + | +
y2 |
+
+ int
+ |
+
+
+
+ The y2 coordinate of the square + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ List[TerrainTile]
+ |
+
+
+
+ 1D list of terrain tiles based on given coordinates + |
+
AoE2ScenarioParser/objects/managers/map_manager.py
158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 |
|
def get_square_2d(...)
+
+¶Get a square of tiles from the map
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x1 |
+
+ int
+ |
+
+
+
+ The x1 coordinate of the square + |
+ + required + | +
y1 |
+
+ int
+ |
+
+
+
+ The y1 coordinate of the square + |
+ + required + | +
x2 |
+
+ int
+ |
+
+
+
+ The x2 coordinate of the square + |
+ + required + | +
y2 |
+
+ int
+ |
+
+
+
+ The y2 coordinate of the square + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ List[List[TerrainTile]]
+ |
+
+
+
+ 2D list of lists with terrain tiles based on given coordinates + |
+
AoE2ScenarioParser/objects/managers/map_manager.py
176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 |
|
def get_tile(...)
+
+¶Get a tile on the map based on xy coordinates or using the index (i
)
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+
+
+
+ The x coordinate of the wanted tile (used together with y) + |
+
+ None
+ |
+
y |
+
+ int
+ |
+
+
+
+ The y coordinate of the wanted tile (used together with x) + |
+
+ None
+ |
+
i |
+
+ int
+ |
+
+
+
+ The index of the wanted tile + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If parameters ( |
+
+ ValueError
+ |
+
+
+
+ If the index requested is outside the index range of the terrain tiles + |
+
Returns:
+Type | +Description | +
---|---|
+ TerrainTile
+ |
+
+
+
+ The requested tile + |
+
AoE2ScenarioParser/objects/managers/map_manager.py
115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 |
|
def get_tile_safe(...)
+
+¶Get a tile on the map based on xy coordinates or using the index (i
).
+If the index is outside the map, None
is returned instead of an error
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+
+
+
+ The x coordinate of the wanted tile (used together with y) + |
+
+ None
+ |
+
y |
+
+ int
+ |
+
+
+
+ The y coordinate of the wanted tile (used together with x) + |
+
+ None
+ |
+
i |
+
+ int
+ |
+
+
+
+ The index of the wanted tile + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ TerrainTile | None
+ |
+
+
+
+ The requested tile or |
+
AoE2ScenarioParser/objects/managers/map_manager.py
140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 |
|
def set_elevation(...)
+
+¶Sets elevation like the in-game elevation mechanics. Can set a hill (or single point) to a certain height and +all tiles around it are adjusted accordingly.
+If you find that the in-game mechanics work differently than this function please report it.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
elevation |
+
+ int
+ |
+
+
+
+ The elevation to create at the coordinates + |
+ + required + | +
x1 |
+
+ int
+ |
+
+
+
+ The x coordinate of the west corner + |
+ + required + | +
y1 |
+
+ int
+ |
+
+
+
+ The y coordinate of the west corner + |
+ + required + | +
x2 |
+
+ int | None
+ |
+
+
+
+ The x coordinate of the east corner + |
+
+ None
+ |
+
y2 |
+
+ int | None
+ |
+
+
+
+ The y coordinate of the east corner + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/managers/map_manager.py
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 |
|
MapManagerDE
+
+
+¶
+ Bases: MapManager
Manager of all DE map related features
+ +AoE2ScenarioParser/objects/managers/de/map_manager_de.py
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 |
|
map_color_mood: str = map_color_mood
+
+
+ instance-attribute
+
+
+¶str
+ map_color_mood
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
map_color_mood |
+
+ str
+ |
+ - | ++ required + | +
collide_and_correct |
+
+ bool
+ |
+ - | ++ required + | +
villager_force_drop |
+
+ bool
+ |
+ - | ++ required + | +
map_width |
+
+ int
+ |
+ - | ++ required + | +
map_height |
+
+ int
+ |
+ - | ++ required + | +
terrain |
+
+ List[TerrainTile]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/de/map_manager_de.py
24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 |
|
TerrainTile
+
+
+¶
+ Bases: AoE2Object
AoE2ScenarioParser/objects/data_objects/terrain_tile.py
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 |
|
elevation: int = elevation
+
+
+ instance-attribute
+
+
+¶int
+ elevation
i: int
+
+
+ property
+
+
+¶int
+
+ The index of this tile on the map
+layer: int = layer
+
+
+ instance-attribute
+
+
+¶int
+ layer
terrain_id: int = terrain_id
+
+
+ instance-attribute
+
+
+¶int
+ terrain_id
x: int
+
+
+ property
+
+
+¶int
+
+ The X coordinate of this tile on the map
+xy: Tuple[int, int]
+
+
+ property
+
+
+¶Tuple[int, int]
+
+ The X,Y coordinate of this tile on the map
+ + +Returns:
+Type | +Description | +
---|---|
+ Tuple[int, int]
+ |
+
+
+
+ A tuple containing two integers representing the XY coordinates + |
+
y: int
+
+
+ property
+
+
+¶int
+
+ The Y coordinate of this tile on the map
+def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
terrain_id |
+
+ int
+ |
+ - | +
+ GRASS_1
+ |
+
elevation |
+
+ int
+ |
+ - | +
+ 0
+ |
+
layer |
+
+ int
+ |
+ - | +
+ -1
+ |
+
_index |
+
+ int
+ |
+ - | +
+ -1
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/terrain_tile.py
22 +23 +24 +25 +26 +27 +28 +29 +30 |
|
MessageManager
+
+
+¶
+ Bases: AoE2Object
Manager of the everything message tab related.
+ +AoE2ScenarioParser/objects/managers/message_manager.py
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 |
|
hints: str = hints
+
+
+ instance-attribute
+
+
+¶str
+ hints
hints_string_table_id: int = hints_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ hints_string_table_id
history: str = history
+
+
+ instance-attribute
+
+
+¶str
+ history
history_string_table_id: int = history_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ history_string_table_id
instructions: str = instructions
+
+
+ instance-attribute
+
+
+¶str
+ instructions
instructions_string_table_id: int = instructions_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ instructions_string_table_id
loss: str = loss
+
+
+ instance-attribute
+
+
+¶str
+ loss
loss_string_table_id: int = loss_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ loss_string_table_id
scouts: str = scouts
+
+
+ instance-attribute
+
+
+¶str
+ scouts
scouts_string_table_id: int = scouts_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ scouts_string_table_id
victory: str = victory
+
+
+ instance-attribute
+
+
+¶str
+ victory
victory_string_table_id: int = victory_string_table_id
+
+
+ instance-attribute
+
+
+¶int
+ victory_string_table_id
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
instructions |
+
+ str
+ |
+ - | ++ required + | +
hints |
+
+ str
+ |
+ - | ++ required + | +
victory |
+
+ str
+ |
+ - | ++ required + | +
loss |
+
+ str
+ |
+ - | ++ required + | +
history |
+
+ str
+ |
+ - | ++ required + | +
scouts |
+
+ str
+ |
+ - | ++ required + | +
instructions_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
hints_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
victory_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
loss_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
history_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
scouts_string_table_id |
+
+ int
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/message_manager.py
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 |
|
Player
+
+
+¶
+ Bases: AoE2Object
A class for handling all player information.
+ +AoE2ScenarioParser/objects/data_objects/player/player.py
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 |
|
active
+
+
+ property
+
+
+¶Read-only value if this player is active or not
+allied_victory: Optional[bool] = bool(allied_victory) if allied_victory is not None else None
+
+
+ instance-attribute
+
+
+¶Optional[bool]
+ bool(allied_victory) if allied_victory is not None else None
architecture_set: int | Civilization = dataset_or_value(Civilization, architecture_set)
+
+
+ instance-attribute
+
+
+¶int | Civilization
+ dataset_or_value(Civilization, architecture_set)
base_priority: Optional[int] = base_priority
+
+
+ instance-attribute
+
+
+¶Optional[int]
+ base_priority
civilization: int | Civilization = dataset_or_value(Civilization, civilization)
+
+
+ instance-attribute
+
+
+¶int | Civilization
+ dataset_or_value(Civilization, civilization)
color: int = color
+
+
+ instance-attribute
+
+
+¶int
+ color
diplomacy: Optional[List[int]] = diplomacy
+
+
+ instance-attribute
+
+
+¶Optional[List[int]]
+ diplomacy
disabled_buildings: Optional[List[int]] = disabled_buildings
+
+
+ instance-attribute
+
+
+¶Optional[List[int]]
+ disabled_buildings
disabled_techs: Optional[List[int]] = disabled_techs
+
+
+ instance-attribute
+
+
+¶Optional[List[int]]
+ disabled_techs
disabled_units: Optional[List[int]] = disabled_units
+
+
+ instance-attribute
+
+
+¶Optional[List[int]]
+ disabled_units
food: int = food
+
+
+ instance-attribute
+
+
+¶int
+ food
gold: int = gold
+
+
+ instance-attribute
+
+
+¶int
+ gold
human: bool = human
+
+
+ instance-attribute
+
+
+¶bool
+ human
initial_player_view_x: Optional[int] = initial_player_view_x
+
+
+ instance-attribute
+
+
+¶Optional[int]
+ initial_player_view_x
initial_player_view_y: Optional[int] = initial_player_view_y
+
+
+ instance-attribute
+
+
+¶Optional[int]
+ initial_player_view_y
lock_civ: bool = bool(lock_civ)
+
+
+ instance-attribute
+
+
+¶bool
+ bool(lock_civ)
lock_personality: bool = bool(lock_personality)
+
+
+ instance-attribute
+
+
+¶bool
+ bool(lock_personality)
player_id
+
+
+ property
+
+
+¶Read-only value of the player ID
+population_cap: Optional[int] = population_cap
+
+
+ instance-attribute
+
+
+¶Optional[int]
+ population_cap
starting_age: int = dataset_or_value(StartingAge, starting_age)
+
+
+ instance-attribute
+
+
+¶int
+ dataset_or_value(StartingAge, starting_age)
stone: int = stone
+
+
+ instance-attribute
+
+
+¶int
+ stone
string_table_name_id: Optional[int] = string_table_name_id
+
+
+ instance-attribute
+
+
+¶Optional[int]
+ string_table_name_id
tribe_name: Optional[str] = tribe_name
+
+
+ instance-attribute
+
+
+¶Optional[str]
+ tribe_name
wood: int = wood
+
+
+ instance-attribute
+
+
+¶int
+ wood
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
player_id |
+
+ int
+ |
+ - | ++ required + | +
starting_age |
+
+ int
+ |
+ - | ++ required + | +
lock_civ |
+
+ int
+ |
+ - | ++ required + | +
lock_personality |
+
+ int
+ |
+ - | ++ required + | +
food |
+
+ int
+ |
+ - | ++ required + | +
wood |
+
+ int
+ |
+ - | ++ required + | +
gold |
+
+ int
+ |
+ - | ++ required + | +
stone |
+
+ int
+ |
+ - | ++ required + | +
color |
+
+ int
+ |
+ - | ++ required + | +
active |
+
+ bool
+ |
+ - | ++ required + | +
human |
+
+ bool
+ |
+ - | ++ required + | +
civilization |
+
+ int
+ |
+ - | ++ required + | +
architecture_set |
+
+ int
+ |
+ - | ++ required + | +
population_cap |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
diplomacy |
+
+ Optional[List[int]]
+ |
+ - | +
+ None
+ |
+
initial_camera_x |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
initial_camera_y |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
allied_victory |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
disabled_techs |
+
+ Optional[List[int]]
+ |
+ - | +
+ None
+ |
+
disabled_buildings |
+
+ Optional[List[int]]
+ |
+ - | +
+ None
+ |
+
disabled_units |
+
+ Optional[List[int]]
+ |
+ - | +
+ None
+ |
+
tribe_name |
+
+ Optional[str]
+ |
+ - | +
+ None
+ |
+
base_priority |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
string_table_name_id |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
initial_player_view_x |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
initial_player_view_y |
+
+ Optional[int]
+ |
+ - | +
+ None
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/player/player.py
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 |
|
def set_player_diplomacy(...)
+
+¶Set the diplomacy of this player to other players.
+ + +This does NOT set the other player's diplomacy to this player to the same diplomacy
+Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
players |
+
+ PlayerId | int | List[PlayerId | int]
+ |
+
+
+
+ The player(s) to change + |
+ + required + | +
diplomacy |
+
+ DiplomacyState
+ |
+
+
+
+ The diplomacy setting to set the player to + |
+ + required + | +
AoE2ScenarioParser/objects/data_objects/player/player.py
140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 |
|
PlayerManager
+
+
+¶
+ Bases: AoE2Object
Manager of everything player related.
+ +AoE2ScenarioParser/objects/managers/player_manager.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 |
|
active_players: int
+
+
+ property
+ writable
+
+
+¶int
+
+ The amount of players that are active within the scenario
+players: List[Player]
+
+
+ property
+ writable
+
+
+¶List[Player]
+
+ Returns all player objects
+def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
_player_count |
+
+ int
+ |
+ - | ++ required + | +
_tribe_names |
+
+ List[str]
+ |
+ - | ++ required + | +
_string_table_player_names |
+
+ List[int]
+ |
+ - | ++ required + | +
_metadata |
+
+ List[PlayerMetaData]
+ |
+ - | ++ required + | +
_lock_civilizations |
+
+ List[int]
+ |
+ - | ++ required + | +
_lock_personalities |
+
+ List[int]
+ |
+ - | ++ required + | +
_resources |
+
+ List[PlayerResources]
+ |
+ - | ++ required + | +
_diplomacy |
+
+ List[PlayerDiplomacy]
+ |
+ - | ++ required + | +
_allied_victories |
+
+ List[int]
+ |
+ - | ++ required + | +
_starting_ages |
+
+ List[int]
+ |
+ - | ++ required + | +
_base_priorities |
+
+ List[int]
+ |
+ - | ++ required + | +
_pop_caps |
+
+ List[int]
+ |
+ - | ++ required + | +
_initial_player_views |
+
+ List[PlayerInitialView]
+ |
+ - | ++ required + | +
_player_data_4 |
+
+ List[PlayerDataFour]
+ |
+ - | ++ required + | +
_player_data_3 |
+
+ List[PlayerDataThree]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/player_manager.py
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 |
|
def set_default_starting_resources(...)
+
+¶Sets the default starting resources for all players
+ + +This does not take the current selected civ of this player into account. For example, a player with the
+Chinese civ selected will still be set to 200 food. Generally speaking, it's recommended to not use this for
+competitive, normal play. You can select low
resources in the lobby menu to get 'normal' resources for
+every civ.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
players |
+
+ List[PlayerId]
+ |
+
+
+
+ A list of players, defaults to all players (incl GAIA) when left out + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/managers/player_manager.py
156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 |
|
def set_diplomacy_teams(...)
+
+¶Sets all players in list allied with all others in the same list.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
*args |
+
+ List[PlayerId | int]
+ |
+
+
+
+ List(s) with player IDs that'll be set to the given diplomacy value + |
+
+ ()
+ |
+
diplomacy |
+
+ DiplomacyState
+ |
+
+
+
+ The diplomacy to set the teams to. Defaults to ally. + |
+
+ ALLY
+ |
+
Examples:
+To set diplomacy like a 4v4 in ranked. Two teams of 4 with alternating IDs.
+1 |
|
AoE2ScenarioParser/objects/managers/player_manager.py
177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 +195 |
|
To change these settings, import the module: from AoE2ScenarioParser import settings
.
+Then you can change the settings like: settings.RAISE_ERROR_ON_WARNING = True
If you import the values directly like: from ... import RAISE_ERROR_ON_WARNING
+(not written out because it wouldn't work), change the value would overwrite the reference and not the value which
+means the change wouldn't transfer to the settings
module.
NOTIFY_UNKNOWN_BYTES = True
+
+
+ module-attribute
+
+
+¶True
Show a notification of extra bytes being available at the end of the file, so you can notify the maintainer
+PRINT_STATUS_UPDATES = True
+
+
+ module-attribute
+
+
+¶True
If status updates of what is being read and written should be printed to console
+ALLOW_OVERWRITING_SOURCE = False
+
+
+ module-attribute
+
+
+¶False
Disable the error being raised when overwriting source scenario
+ALLOW_DIRTY_RETRIEVER_OVERWRITE = False
+
+
+ module-attribute
+
+
+¶False
If it is allowed to overwrite a retriever that is dirty (it has been changed manually)
+SHOW_VARIANT_WARNINGS = True
+
+
+ module-attribute
+
+
+¶True
If warnings about incorrect variants should be shown or not
+MAIN_CHARSET = 'utf-8'
+
+
+ module-attribute
+
+
+¶'utf-8'
The charset used to decode the text in the scenario. If it fails, will try the settings.FALLBACK_CHARSET
+FALLBACK_CHARSET = 'latin-1'
+
+
+ module-attribute
+
+
+¶'latin-1'
The charset used to decode the text in the scenario when the settings.MAIN_CHARSET fails
+AoE2ScenarioParser/objects/support/area.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 +519 +520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556 +557 +558 +559 +560 +561 +562 +563 +564 +565 +566 +567 +568 +569 +570 +571 +572 +573 +574 +575 +576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588 +589 +590 +591 +592 +593 +594 +595 +596 +597 +598 +599 +600 +601 +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 +613 +614 +615 +616 +617 +618 +619 +620 +621 +622 +623 +624 +625 +626 +627 +628 +629 +630 +631 +632 +633 +634 +635 +636 +637 +638 +639 +640 +641 +642 +643 +644 +645 +646 +647 +648 +649 +650 +651 +652 +653 +654 +655 +656 +657 +658 +659 +660 +661 +662 +663 +664 +665 +666 +667 +668 +669 +670 +671 +672 +673 +674 +675 +676 +677 +678 +679 +680 +681 +682 +683 +684 +685 +686 +687 +688 +689 +690 +691 +692 +693 +694 +695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 +714 +715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 +726 +727 +728 +729 +730 +731 +732 +733 +734 +735 +736 +737 +738 +739 +740 +741 +742 +743 +744 +745 +746 +747 +748 +749 +750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764 +765 +766 +767 +768 +769 +770 +771 +772 +773 +774 +775 +776 +777 +778 +779 +780 +781 +782 +783 +784 +785 +786 +787 +788 +789 +790 +791 +792 +793 +794 +795 +796 +797 +798 +799 +800 +801 +802 +803 +804 +805 +806 +807 +808 +809 +810 +811 +812 +813 +814 +815 +816 +817 +818 +819 +820 +821 +822 +823 +824 +825 +826 +827 +828 +829 +830 +831 +832 +833 +834 +835 +836 +837 +838 +839 +840 +841 +842 +843 +844 +845 +846 +847 +848 +849 +850 +851 +852 +853 +854 +855 +856 +857 +858 +859 +860 +861 +862 +863 +864 +865 +866 +867 +868 +869 +870 +871 +872 +873 +874 +875 +876 +877 +878 +879 +880 +881 +882 +883 +884 +885 +886 +887 +888 |
|
axis: str = ''
+
+
+ instance-attribute
+
+
+¶str
+ ''
block_size_x: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
block_size_y: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
corner_size_x: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
corner_size_y: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
gap_size_x: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
gap_size_y: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
inverted: bool = False
+
+
+ instance-attribute
+
+
+¶bool
+ False
line_width_x: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
line_width_y: int = 1
+
+
+ instance-attribute
+
+
+¶int
+ 1
maximum_coordinate: int
+
+
+ property
+
+
+¶int
+
+ The maximum coordinate for the X or Y axis (like how 0 is the minimum)
+state: AreaState = AreaState.FULL
+
+
+ instance-attribute
+
+
+¶AreaState
+ AreaState.FULL
uuid: UUID = uuid
+
+
+ instance-attribute
+
+
+¶UUID
+ uuid
def __init__(...)
+
+¶Object to easily select an area on the map. Uses method chaining for ease of use.
+Please note: Setting a uuid
will always overwrite the map_size
attribute, even if it's not None
.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
map_size |
+
+ int
+ |
+
+
+
+ The size of the map this area object will handle + |
+
+ None
+ |
+
uuid |
+
+ UUID
+ |
+
+
+
+ The UUID of the scenario this area belongs to + |
+
+ None
+ |
+
x1 |
+
+ int
+ |
+
+
+
+ The X location of the left corner + |
+
+ None
+ |
+
y1 |
+
+ int
+ |
+
+
+
+ The Y location of the left corner + |
+
+ None
+ |
+
x2 |
+
+ int
+ |
+
+
+
+ The X location of the right corner + |
+
+ None
+ |
+
y2 |
+
+ int
+ |
+
+
+
+ The Y location of the right corner + |
+
+ None
+ |
+
corner1 |
+
+ Tile
+ |
+
+
+
+ The location of the left corner + |
+
+ None
+ |
+
corner2 |
+
+ Tile
+ |
+
+
+
+ The location of the right corner + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/support/area.py
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 |
|
def __repr__(...)
+
+¶AoE2ScenarioParser/objects/support/area.py
887 +888 |
|
def along_axis(...)
+
+¶Sets the axis. Can be either "x" or "y".
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
axis |
+
+ str
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
461 +462 +463 +464 |
|
def associate_scenario(...)
+
+¶Associate area with scenario. Saves scenario UUID in this area object.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
scenario |
+
+ AoE2Scenario
+ |
+
+
+
+ The scenario to associate with + |
+ + required + | +
AoE2ScenarioParser/objects/support/area.py
215 +216 +217 +218 +219 +220 +221 +222 |
|
def attr(...)
+
+¶Sets the attribute to the given value. AreaAttr or str can be used as key
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
key |
+
+ str | AreaAttr
+ |
+ - | ++ required + | +
value |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 |
|
def attrs(...)
+
+¶Sets multiple attributes to the corresponding values.
+ + +Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ This area object + |
+
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
y1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
x2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
y2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
gap_size |
+
+ int
+ |
+ - | +
+ None
+ |
+
gap_size_x |
+
+ int
+ |
+ - | +
+ None
+ |
+
gap_size_y |
+
+ int
+ |
+ - | +
+ None
+ |
+
line_width |
+
+ int
+ |
+ - | +
+ None
+ |
+
line_width_x |
+
+ int
+ |
+ - | +
+ None
+ |
+
line_width_y |
+
+ int
+ |
+ - | +
+ None
+ |
+
axis |
+
+ str
+ |
+ - | +
+ None
+ |
+
corner_size |
+
+ int
+ |
+ - | +
+ None
+ |
+
corner_size_x |
+
+ int
+ |
+ - | +
+ None
+ |
+
corner_size_y |
+
+ int
+ |
+ - | +
+ None
+ |
+
block_size |
+
+ int
+ |
+ - | +
+ None
+ |
+
block_size_x |
+
+ int
+ |
+ - | +
+ None
+ |
+
block_size_y |
+
+ int
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/area.py
479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 |
|
def center(...)
+
+¶Moves the selection center to a given position. When the given center forces the selection of the edge of the +map the off-map tiles will not be returned. When moving the selection back into the map the tiles will be +returned again.
+If you want to limit moving the center without changing the selection box size, use: center_bounded
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+ - | ++ required + | +
y |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
574 +575 +576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588 |
|
def center_bounded(...)
+
+¶Moves the selection center to a given position on the map. This function makes sure it cannot go over the edge +of the map. The selection will be forced against the edge of the map and the selection will not be decreased in +size.
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+ - | ++ required + | +
y |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
590 +591 +592 +593 +594 +595 +596 +597 +598 +599 +600 +601 +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 |
|
def copy(...)
+
+¶Copy this instance of an Area. Useful for when you want to do multiple extractions (to_...) from the same source +with small tweaks.
+Examples:
+1 +2 +3 +4 +5 +6 |
|
Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ A copy of this Area object + |
+
AoE2ScenarioParser/objects/support/area.py
738 +739 +740 +741 +742 +743 +744 +745 +746 +747 +748 +749 +750 +751 +752 +753 +754 +755 |
|
def expand(...)
+
+¶Expands the selection from all sides
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
666 +667 +668 +669 +670 +671 +672 |
|
def expand_x1(...)
+
+¶Expands the selection from the first corner on the X axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
674 +675 +676 +677 |
|
def expand_x2(...)
+
+¶Expands the selection from the second corner on the X axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
684 +685 +686 +687 |
|
def expand_y1(...)
+
+¶Expands the selection from the first corner on the Y axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
679 +680 +681 +682 |
|
def expand_y2(...)
+
+¶Expands the selection from the second corner on the Y axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
689 +690 +691 +692 |
|
def from_tiles(...)
+
+
+ classmethod
+
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
corner1 |
+
+ Tile
+ |
+ - | ++ required + | +
corner2 |
+
+ Tile
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/area.py
128 +129 +130 |
|
def from_uuid(...)
+
+
+ classmethod
+
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
uuid |
+
+ UUID
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
124 +125 +126 |
|
def get_center(...)
+
+¶Get center of current selection
+ + + + + +AoE2ScenarioParser/objects/support/area.py
334 +335 +336 |
|
def get_center_int(...)
+
+¶Get center of current selection, coords can only be integers. If even length, the value is ceiled
+ + + + + +AoE2ScenarioParser/objects/support/area.py
338 +339 +340 |
|
def get_dimensions(...)
+
+¶Returns the lengths of the x & y side of the selection (in that order).
+ + + + + +AoE2ScenarioParser/objects/support/area.py
358 +359 +360 |
|
def get_height(...)
+
+¶Returns the length of the y side of the selection.
+ + + + + +AoE2ScenarioParser/objects/support/area.py
354 +355 +356 |
|
def get_range_x(...)
+
+¶Returns a range object for the x coordinates.
+ + + + + +AoE2ScenarioParser/objects/support/area.py
342 +343 +344 |
|
def get_range_y(...)
+
+¶Returns a range object for the y coordinates.
+ + + + + +AoE2ScenarioParser/objects/support/area.py
346 +347 +348 |
|
def get_raw_selection(...)
+
+¶Get the four values of the selection (even if they are outside the map) as: ((x1, y1), (x2, y2))
+ + + + + +AoE2ScenarioParser/objects/support/area.py
330 +331 +332 |
|
def get_selection(...)
+
+¶Get the four values of the selection as: ((x1, y1), (x2, y2))
+ + + + + +AoE2ScenarioParser/objects/support/area.py
326 +327 +328 |
|
def get_width(...)
+
+¶Returns the length of the x side of the selection.
+ + + + + +AoE2ScenarioParser/objects/support/area.py
350 +351 +352 |
|
def height(...)
+
+¶Sets the height (y-axis) of the selection. Shrinks/Expands both sides equally. +If the expansion hits the edge of the map, it'll expand on the other side.
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
552 +553 +554 +555 +556 +557 +558 +559 +560 +561 |
|
def invert(...)
+
+¶Inverts the inverted boolean. Causes the to_coords
to return the inverted selection. This function is
+especially useful for the grid state. It's not as useful for the edge which would be the same as shrinking the
+selection. When used with the fill state an empty set is returned.
Please note: This inverts the INTERNAL selection. Tiles OUTSIDE the selection will NOT be returned.
+ + + + + +AoE2ScenarioParser/objects/support/area.py
450 +451 +452 +453 +454 +455 +456 +457 +458 +459 |
|
def is_within_bounds(...)
+
+¶Check if the current selection is within the map
+ + + + + +AoE2ScenarioParser/objects/support/area.py
727 +728 +729 +730 +731 +732 +733 +734 |
|
def is_within_selection(...)
+
+¶If a given (x,y) location is within the selection.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+
+
+
+ The X coordinate + |
+
+ -1
+ |
+
y |
+
+ int
+ |
+
+
+
+ The Y coordinate + |
+
+ -1
+ |
+
tile |
+
+ Tile
+ |
+
+
+
+ A Tile object, replacing the x & y coordinates + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ bool
+ |
+
+
+
+
|
+
AoE2ScenarioParser/objects/support/area.py
696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 +714 +715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 |
|
def move(...)
+
+¶Moves the selection area in a given direction relative to its current position
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
offset_x |
+
+ int
+ |
+ - | +
+ 0
+ |
+
offset_y |
+
+ int
+ |
+ - | +
+ 0
+ |
+
AoE2ScenarioParser/objects/support/area.py
511 +512 +513 +514 +515 +516 +517 |
|
def move_to(...)
+
+¶Moves the selection area to the given coordinate by placing the given corner of this area on the coordinate.
+For center placement, use .center(...)
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
corner |
+
+ Literal['west', 'north', 'east', 'south']
+ |
+ - | ++ required + | +
x |
+
+ int
+ |
+ - | ++ required + | +
y |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
519 +520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 |
|
def select(...)
+
+¶Sets the selection to the given coordinates
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x1 |
+
+ int
+ |
+ - | ++ required + | +
y1 |
+
+ int
+ |
+ - | ++ required + | +
x2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
y2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/area.py
619 +620 +621 +622 +623 +624 +625 |
|
def select_centered(...)
+
+¶Sets the selection to the given coordinates
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x |
+
+ int
+ |
+ - | ++ required + | +
y |
+
+ int
+ |
+ - | ++ required + | +
dx |
+
+ int
+ |
+ - | +
+ 1
+ |
+
dy |
+
+ int
+ |
+ - | +
+ 1
+ |
+
AoE2ScenarioParser/objects/support/area.py
627 +628 +629 +630 +631 +632 +633 +634 +635 +636 |
|
def select_entire_map(...)
+
+¶Sets the selection to the entire map
+ + + + + +AoE2ScenarioParser/objects/support/area.py
614 +615 +616 +617 |
|
def shrink(...)
+
+¶Shrinks the selection from all sides
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
638 +639 +640 +641 +642 +643 +644 |
|
def shrink_x1(...)
+
+¶Shrinks the selection from the first corner on the X axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
646 +647 +648 +649 |
|
def shrink_x2(...)
+
+¶Shrinks the selection from the second corner on the X axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
656 +657 +658 +659 |
|
def shrink_y1(...)
+
+¶Shrinks the selection from the first corner on the Y axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
651 +652 +653 +654 |
|
def shrink_y2(...)
+
+¶Shrinks the selection from the second corner on the Y axis by n
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
661 +662 +663 +664 |
|
def size(...)
+
+¶Sets the selection to a size around the center. If center is (4,4) with a size of 3 the selection will become
+((3,3), (5,5))
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 |
|
def to_chunks(...)
+
+¶Converts the selection to a list of OrderedSets with Tile NamedTuples with (x, y) coordinates. +The separation between chunks is based on if they're connected to each other. +So the tiles must share an edge (i.e. they should be non-diagonal).
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
as_terrain |
+
+ bool
+ |
+
+
+
+ If the returning coordinates should be Tile objects or Terrain Tiles. If |
+
+ False
+ |
+
Returns:
+Type | +Description | +
---|---|
+ List[OrderedSet[Tile | 'TerrainTile']]
+ |
+
+
+
+ A list of OrderedSets of Tiles ((x, y) named tuple) of the selection. + |
+
AoE2ScenarioParser/objects/support/area.py
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 +298 +299 +300 +301 +302 +303 +304 |
|
def to_coords(...)
+
+¶Converts the selection to an OrderedSet of (x, y) coordinates
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
as_terrain |
+
+ bool
+ |
+
+
+
+ If the returning coordinates should be Tile objects or Terrain Tiles. If |
+
+ False
+ |
+
Returns:
+Type | +Description | +
---|---|
+ OrderedSet[Tile | 'TerrainTile']
+ |
+
+
+
+ An OrderedSet of Tiles ((x, y) named tuple) of the selection. + |
+
Examples:
+The selection: ((3,3), (5,5))
would result in an OrderedSet with a length of 9::
1 +2 +3 +4 +5 |
|
AoE2ScenarioParser/objects/support/area.py
244 +245 +246 +247 +248 +249 +250 +251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 |
|
def to_dict(...)
+
+¶Converts the 2 corners of the selection to area keys for use in effects etc. +This can be used by adding double stars (**) before this function.
+ + +The selection: ((3,3), (5,5))
would result in a dict that looks like:
+ {'area_x1': 3, 'area_y1': 3, 'area_x2': 5, 'area_y2': 5}
+Then do: **area.to_dict()
in a function that accepts area tiles
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
prefix |
+
+ str
+ |
+
+
+
+ The prefix of the string before 'x1' (e.g. prefix="coord_" will result in: "coord_x1" as key) + |
+
+ 'area_'
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Dict[str, int]
+ |
+
+
+
+ A dict with area_x1, area_y1, area_x2, area_y2 as keys and their respective values (if prefix is unchanged). + |
+
AoE2ScenarioParser/objects/support/area.py
306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 |
|
def use_full(...)
+
+¶Sets the area object to use the entire selection
+ + + + + +AoE2ScenarioParser/objects/support/area.py
364 +365 +366 +367 |
|
def use_only_corners(...)
+
+¶Sets the area object to only use the corners pattern within the selection.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
corner_size |
+
+ int
+ |
+
+
+
+ The size along both the x and y-axis of the corner areas + |
+
+ None
+ |
+
corner_size_x |
+
+ int
+ |
+
+
+
+ The size along the x-axis of the corner areas + |
+
+ None
+ |
+
corner_size_y |
+
+ int
+ |
+
+
+
+ The size along the y-axis of the corner areas + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ This area object + |
+
AoE2ScenarioParser/objects/support/area.py
385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 |
|
def use_only_edge(...)
+
+¶Sets the area object to only use the edge of the selection
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
line_width |
+
+ int
+ |
+
+
+
+ The width of the x & y edge line + |
+
+ None
+ |
+
line_width_x |
+
+ int
+ |
+
+
+
+ The width of the x edge line + |
+
+ None
+ |
+
line_width_y |
+
+ int
+ |
+
+
+
+ The width of the y edge line + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ This area object + |
+
AoE2ScenarioParser/objects/support/area.py
369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 |
|
def use_pattern_grid(...)
+
+¶Sets the area object to use a grid pattern within the selection.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
block_size |
+
+ int
+ |
+
+
+
+ The size of the gaps between lines + |
+
+ None
+ |
+
gap_size |
+
+ int
+ |
+
+
+
+ The width of the grid lines + |
+
+ None
+ |
+
block_size_x |
+
+ int
+ |
+
+
+
+ The size of the x gaps between lines + |
+
+ None
+ |
+
block_size_y |
+
+ int
+ |
+
+
+
+ The size of the y gaps between lines + |
+
+ None
+ |
+
gap_size_x |
+
+ int
+ |
+
+
+
+ The width of the x grid lines + |
+
+ None
+ |
+
gap_size_y |
+
+ int
+ |
+
+
+
+ The width of the y grid lines + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ This area object + |
+
AoE2ScenarioParser/objects/support/area.py
401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 |
|
def use_pattern_lines(...)
+
+¶Sets the area object to use a lines pattern within the selection.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
axis |
+
+ str
+ |
+
+
+
+ The axis the lines should follow. Can either be "x" or "y" + |
+
+ None
+ |
+
gap_size |
+
+ int
+ |
+
+
+
+ The size of the gaps between lines + |
+
+ None
+ |
+
line_width |
+
+ int
+ |
+
+
+
+ The width of the x & y lines + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Area
+ |
+
+
+
+ This area object + |
+
AoE2ScenarioParser/objects/support/area.py
430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 |
|
def width(...)
+
+¶Sets the width (x-axis) of the selection. Shrinks/Expands both sides equally. +If the expansion hits the edge of the map, it'll expand on the other side.
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
n |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/area.py
563 +564 +565 +566 +567 +568 +569 +570 +571 +572 |
|
+ Bases: Enum
Enum to show the supported attributes that can be edited using Area.attr(k, v)
AoE2ScenarioParser/objects/support/area.py
36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 |
|
AXIS = 'axis'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'axis'
BLOCK_SIZE = 'block_size'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'block_size'
BLOCK_SIZE_X = 'block_size_x'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'block_size_x'
BLOCK_SIZE_Y = 'block_size_y'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'block_size_y'
CORNER_SIZE = 'corner_size'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'corner_size'
CORNER_SIZE_X = 'corner_size_x'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'corner_size_x'
CORNER_SIZE_Y = 'corner_size_y'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'corner_size_y'
GAP_SIZE = 'gap_size'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'gap_size'
GAP_SIZE_X = 'gap_size_x'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'gap_size_x'
GAP_SIZE_Y = 'gap_size_y'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'gap_size_y'
LINE_WIDTH = 'line_width'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'line_width'
LINE_WIDTH_X = 'line_width_x'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'line_width_x'
LINE_WIDTH_Y = 'line_width_y'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'line_width_y'
X1 = 'x1'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'x1'
X2 = 'x2'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'x2'
Y1 = 'y1'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'y1'
Y2 = 'y2'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'y2'
+ Bases: Enum
Enum to show the state of the Area object
+ +AoE2ScenarioParser/objects/support/area.py
22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 |
|
CORNERS = 4
+
+
+ class-attribute
+ instance-attribute
+
+
+¶4
EDGE = 1
+
+
+ class-attribute
+ instance-attribute
+
+
+¶1
FULL = 0
+
+
+ class-attribute
+ instance-attribute
+
+
+¶0
GRID = 2
+
+
+ class-attribute
+ instance-attribute
+
+
+¶2
LINES = 3
+
+
+ class-attribute
+ instance-attribute
+
+
+¶3
def unchunkables(...)
+
+
+ staticmethod
+
+
+¶Returns the states that cannot be split into chunks
+ + + + +AoE2ScenarioParser/objects/support/area.py
30 +31 +32 +33 |
|
Condition
+
+
+¶
+ Bases: AoE2Object
, TriggerComponent
Object for handling a condition.
+ +AoE2ScenarioParser/objects/data_objects/condition.py
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 |
|
ai_signal: int = ai_signal
+
+
+ instance-attribute
+
+
+¶int
+ ai_signal
area_x1: int = area_x1
+
+
+ instance-attribute
+
+
+¶int
+ area_x1
area_x2: int = area_x2
+
+
+ instance-attribute
+
+
+¶int
+ area_x2
area_y1: int = area_y1
+
+
+ instance-attribute
+
+
+¶int
+ area_y1
area_y2: int = area_y2
+
+
+ instance-attribute
+
+
+¶int
+ area_y2
attribute: int = attribute
+
+
+ instance-attribute
+
+
+¶int
+ attribute
comparison: int = comparison
+
+
+ instance-attribute
+
+
+¶int
+ comparison
condition_type: int = condition_type
+
+
+ instance-attribute
+
+
+¶int
+ condition_type
hidden_attribute = 'condition_type'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'condition_type'
include_changeable_weapon_objects: int = include_changeable_weapon_objects
+
+
+ instance-attribute
+
+
+¶int
+ include_changeable_weapon_objects
inverted: int = inverted
+
+
+ instance-attribute
+
+
+¶int
+ inverted
next_object: int = next_object
+
+
+ instance-attribute
+
+
+¶int
+ next_object
object_group: int = object_group
+
+
+ instance-attribute
+
+
+¶int
+ object_group
object_list: int = object_list
+
+
+ instance-attribute
+
+
+¶int
+ object_list
object_state: int = object_state
+
+
+ instance-attribute
+
+
+¶int
+ object_state
object_type: int = object_type
+
+
+ instance-attribute
+
+
+¶int
+ object_type
quantity: int = quantity
+
+
+ instance-attribute
+
+
+¶int
+ quantity
source_player: int = source_player
+
+
+ instance-attribute
+
+
+¶int
+ source_player
target_player: int = target_player
+
+
+ instance-attribute
+
+
+¶int
+ target_player
technology: int = technology
+
+
+ instance-attribute
+
+
+¶int
+ technology
timer: int = timer
+
+
+ instance-attribute
+
+
+¶int
+ timer
timer_id: int = timer_id
+
+
+ instance-attribute
+
+
+¶int
+ timer_id
unit_ai_action: int = unit_ai_action
+
+
+ instance-attribute
+
+
+¶int
+ unit_ai_action
unit_object: int = unit_object
+
+
+ instance-attribute
+
+
+¶int
+ unit_object
variable: int = variable
+
+
+ instance-attribute
+
+
+¶int
+ variable
victory_timer_type: int = victory_timer_type
+
+
+ instance-attribute
+
+
+¶int
+ victory_timer_type
xs_function: str = xs_function
+
+
+ instance-attribute
+
+
+¶str
+ xs_function
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
condition_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
attribute |
+
+ int
+ |
+ - | +
+ None
+ |
+
unit_object |
+
+ int
+ |
+ - | +
+ None
+ |
+
next_object |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | IntEnum
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | IntEnum
+ |
+ - | +
+ None
+ |
+
timer |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
ai_signal |
+
+ int
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int
+ |
+ - | +
+ None
+ |
+
comparison |
+
+ int
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | IntEnum
+ |
+ - | +
+ None
+ |
+
unit_ai_action |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_state |
+
+ int
+ |
+ - | +
+ None
+ |
+
timer_id |
+
+ int
+ |
+ - | +
+ None
+ |
+
victory_timer_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
include_changeable_weapon_objects |
+
+ int
+ |
+ - | +
+ None
+ |
+
xs_function |
+
+ str
+ |
+ - | +
+ None
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/condition.py
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 |
|
def __str__(...)
+
+¶AoE2ScenarioParser/objects/data_objects/condition.py
156 +157 |
|
def get_content_as_string(...)
+
+¶Create a human-readable string showcasing all content of this condition.
+This is also the function that is called when doing: print(condition)
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
include_condition_definition |
+
+ bool
+ |
+
+
+
+ If the condition meta-data should be added by this function + |
+
+ False
+ |
+
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/data_objects/condition.py
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 |
|
NewConditionSupport
+
+
+¶AoE2ScenarioParser/objects/support/new_condition.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 |
|
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_ref |
+ + ? + | +- | ++ required + | +
AoE2ScenarioParser/objects/support/new_condition.py
8 +9 |
|
def accumulate_attribute(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
attribute |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 |
|
def ai_signal(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
ai_signal |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
201 +202 +203 +204 +205 +206 +207 +208 +209 +210 |
|
def ai_signal_multiplayer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
ai_signal |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
429 +430 +431 +432 +433 +434 +435 +436 +437 +438 |
|
def and_(...)
+
+¶AoE2ScenarioParser/objects/support/new_condition.py
440 +441 +442 +443 +444 +445 |
|
def bring_object_to_area(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 |
|
def bring_object_to_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
next_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 |
|
def building_is_trading(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
447 +448 +449 +450 +451 +452 +453 +454 +455 +456 |
|
def capture_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 |
|
def chance(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
297 +298 +299 +300 +301 +302 +303 +304 |
|
def destroy_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
127 +128 +129 +130 +131 +132 +133 +134 +135 +136 |
|
def difficulty_level(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
286 +287 +288 +289 +290 +291 +292 +293 +294 +295 |
|
def diplomacy_state(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 |
|
def display_timer_triggered(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
timer_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
458 +459 +460 +461 +462 +463 +464 +465 +466 +467 |
|
def none(...)
+
+¶AoE2ScenarioParser/objects/support/new_condition.py
11 +12 +13 +14 +15 +16 |
|
def object_has_action(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
next_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
unit_ai_action |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 |
|
def object_has_target(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
next_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
223 +224 +225 +226 +227 +228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 +239 +240 |
|
def object_hp(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
comparison |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 |
|
def object_not_visible(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
251 +252 +253 +254 +255 +256 +257 +258 |
|
def object_selected(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
190 +191 +192 +193 +194 +195 +196 +197 +198 +199 |
|
def object_selected_multiplayer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 |
|
def object_visible(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
242 +243 +244 +245 +246 +247 +248 +249 |
|
def object_visible_multiplayer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 |
|
def objects_in_area(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_state |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
include_changeable_weapon_objects |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
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 |
|
def or_(...)
+
+¶AoE2ScenarioParser/objects/support/new_condition.py
422 +423 +424 +425 +426 +427 |
|
def own_fewer_objects(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
include_changeable_weapon_objects |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
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 |
|
def own_objects(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
include_changeable_weapon_objects |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 |
|
def player_defeated(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
212 +213 +214 +215 +216 +217 +218 +219 +220 +221 |
|
def research_technology(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 |
|
def researching_tech(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 |
|
def script_call(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
xs_function |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
366 +367 +368 +369 +370 +371 +372 +373 |
|
def technology_state(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 |
|
def timer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
timer |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
179 +180 +181 +182 +183 +184 +185 +186 +187 +188 |
|
def units_garrisoned(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
unit_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
273 +274 +275 +276 +277 +278 +279 +280 +281 +282 +283 +284 |
|
def variable_value(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
comparison |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 |
|
def victory_timer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
inverted |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
comparison |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
victory_timer_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_condition.py
469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 |
|
Effect
+
+
+¶
+ Bases: AoE2Object
, TriggerComponent
Object for handling an effect.
+ +AoE2ScenarioParser/objects/data_objects/effect.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 |
|
action_type: int = action_type
+
+
+ instance-attribute
+
+
+¶int
+ action_type
ai_script_goal: int = ai_script_goal
+
+
+ instance-attribute
+
+
+¶int
+ ai_script_goal
ai_signal_value: int = ai_signal_value
+
+
+ instance-attribute
+
+
+¶int
+ ai_signal_value
area_x1: int = area_x1
+
+
+ instance-attribute
+
+
+¶int
+ area_x1
area_x2: int = area_x2
+
+
+ instance-attribute
+
+
+¶int
+ area_x2
area_y1: int = area_y1
+
+
+ instance-attribute
+
+
+¶int
+ area_y1
area_y2: int = area_y2
+
+
+ instance-attribute
+
+
+¶int
+ area_y2
armour_attack_class
+
+
+ property
+ writable
+
+
+¶Helper property for handling the armour_attack related values
+armour_attack_quantity
+
+
+ property
+ writable
+
+
+¶Helper property for handling the armour_attack related values
+attack_stance: int = attack_stance
+
+
+ instance-attribute
+
+
+¶int
+ attack_stance
button_location: int = button_location
+
+
+ instance-attribute
+
+
+¶int
+ button_location
color_mood: int = color_mood
+
+
+ instance-attribute
+
+
+¶int
+ color_mood
diplomacy: int = diplomacy
+
+
+ instance-attribute
+
+
+¶int
+ diplomacy
display_time: int = display_time
+
+
+ instance-attribute
+
+
+¶int
+ display_time
effect_type
+
+
+ property
+ writable
+
+
+¶The type of the effect (EffectId dataset)
+enabled: int = enabled
+
+
+ instance-attribute
+
+
+¶int
+ enabled
facet: int = facet
+
+
+ instance-attribute
+
+
+¶int
+ facet
flash_object: int = flash_object
+
+
+ instance-attribute
+
+
+¶int
+ flash_object
food: int = food
+
+
+ instance-attribute
+
+
+¶int
+ food
force_research_technology: int = force_research_technology
+
+
+ instance-attribute
+
+
+¶int
+ force_research_technology
gold: int = gold
+
+
+ instance-attribute
+
+
+¶int
+ gold
hidden_attribute = 'effect_type'
+
+
+ class-attribute
+ instance-attribute
+
+
+¶'effect_type'
instruction_panel_position: int = instruction_panel_position
+
+
+ instance-attribute
+
+
+¶int
+ instruction_panel_position
item_id
+
+
+ property
+ writable
+
+
+¶Get the currently selected item_id based on other attributes
+legacy_location_object_reference: int
+
+
+ property
+
+
+¶int
+
+ Getter for legacy object_reference location. Always returns -1
.
location_object_reference: int = location_object_reference
+
+
+ instance-attribute
+
+
+¶int
+ location_object_reference
location_x: int = location_x
+
+
+ instance-attribute
+
+
+¶int
+ location_x
location_y: int = location_y
+
+
+ instance-attribute
+
+
+¶int
+ location_y
message: str = message
+
+
+ instance-attribute
+
+
+¶str
+ message
object_group: int = object_group
+
+
+ instance-attribute
+
+
+¶int
+ object_group
object_list_unit_id: int = object_list_unit_id
+
+
+ instance-attribute
+
+
+¶int
+ object_list_unit_id
object_list_unit_id_2: int = object_list_unit_id_2
+
+
+ instance-attribute
+
+
+¶int
+ object_list_unit_id_2
object_state: int = object_state
+
+
+ instance-attribute
+
+
+¶int
+ object_state
object_type: int = object_type
+
+
+ instance-attribute
+
+
+¶int
+ object_type
operation: int = operation
+
+
+ instance-attribute
+
+
+¶int
+ operation
play_sound: int = play_sound
+
+
+ instance-attribute
+
+
+¶int
+ play_sound
player_color
+
+
+ property
+ writable
+
+
+¶Get the player color attribute
+quantity: int
+
+
+ property
+ writable
+
+
+¶int
+
+ Getter for quantity, even if it is combined with armour_attack_quantity
and armour_attack_class
reset_timer: int = reset_timer
+
+
+ instance-attribute
+
+
+¶int
+ reset_timer
resource_1: int = resource_1
+
+
+ instance-attribute
+
+
+¶int
+ resource_1
resource_1_quantity: int = resource_1_quantity
+
+
+ instance-attribute
+
+
+¶int
+ resource_1_quantity
resource_2: int = resource_2
+
+
+ instance-attribute
+
+
+¶int
+ resource_2
resource_2_quantity: int = resource_2_quantity
+
+
+ instance-attribute
+
+
+¶int
+ resource_2_quantity
resource_3: int = resource_3
+
+
+ instance-attribute
+
+
+¶int
+ resource_3
resource_3_quantity: int = resource_3_quantity
+
+
+ instance-attribute
+
+
+¶int
+ resource_3_quantity
scroll: int = scroll
+
+
+ instance-attribute
+
+
+¶int
+ scroll
selected_object_ids: List[int]
+
+
+ property
+ writable
+
+
+¶List[int]
+
+ Get the current selected objects
+sound_name: str = sound_name
+
+
+ instance-attribute
+
+
+¶str
+ sound_name
source_player: int = source_player
+
+
+ instance-attribute
+
+
+¶int
+ source_player
stone: int = stone
+
+
+ instance-attribute
+
+
+¶int
+ stone
string_id: int = string_id
+
+
+ instance-attribute
+
+
+¶int
+ string_id
target_player: int = target_player
+
+
+ instance-attribute
+
+
+¶int
+ target_player
technology: int = technology
+
+
+ instance-attribute
+
+
+¶int
+ technology
time_unit: int = time_unit
+
+
+ instance-attribute
+
+
+¶int
+ time_unit
timer: int = timer
+
+
+ instance-attribute
+
+
+¶int
+ timer
tribute_list: int = tribute_list
+
+
+ instance-attribute
+
+
+¶int
+ tribute_list
trigger_id: int = trigger_id
+
+
+ instance-attribute
+
+
+¶int
+ trigger_id
unused_string_1: str = unused_string_1
+
+
+ instance-attribute
+
+
+¶str
+ unused_string_1
unused_string_2: str = unused_string_2
+
+
+ instance-attribute
+
+
+¶str
+ unused_string_2
variable: int = variable
+
+
+ instance-attribute
+
+
+¶int
+ variable
visibility_state: int = visibility_state
+
+
+ instance-attribute
+
+
+¶int
+ visibility_state
wood: int = wood
+
+
+ instance-attribute
+
+
+¶int
+ wood
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
effect_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
ai_script_goal |
+
+ int
+ |
+ - | +
+ None
+ |
+
armour_attack_quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
tribute_list |
+
+ int
+ |
+ - | +
+ None
+ |
+
diplomacy |
+
+ int
+ |
+ - | +
+ None
+ |
+
legacy_location_object_reference |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int
+ |
+ - | +
+ None
+ |
+
display_time |
+
+ int
+ |
+ - | +
+ None
+ |
+
trigger_id |
+
+ int
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int
+ |
+ - | +
+ None
+ |
+
location_object_reference |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
instruction_panel_position |
+
+ int
+ |
+ - | +
+ None
+ |
+
attack_stance |
+
+ int
+ |
+ - | +
+ None
+ |
+
time_unit |
+
+ int
+ |
+ - | +
+ None
+ |
+
enabled |
+
+ int
+ |
+ - | +
+ None
+ |
+
food |
+
+ int
+ |
+ - | +
+ None
+ |
+
wood |
+
+ int
+ |
+ - | +
+ None
+ |
+
stone |
+
+ int
+ |
+ - | +
+ None
+ |
+
gold |
+
+ int
+ |
+ - | +
+ None
+ |
+
item_id |
+
+ int
+ |
+ - | +
+ None
+ |
+
flash_object |
+
+ int
+ |
+ - | +
+ None
+ |
+
force_research_technology |
+
+ int
+ |
+ - | +
+ None
+ |
+
visibility_state |
+
+ int
+ |
+ - | +
+ None
+ |
+
scroll |
+
+ int
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
button_location |
+
+ int
+ |
+ - | +
+ None
+ |
+
ai_signal_value |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_attributes |
+
+ int
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int
+ |
+ - | +
+ None
+ |
+
timer |
+
+ int
+ |
+ - | +
+ None
+ |
+
facet |
+
+ int
+ |
+ - | +
+ None
+ |
+
play_sound |
+
+ int
+ |
+ - | +
+ None
+ |
+
player_color |
+
+ int
+ |
+ - | +
+ None
+ |
+
color_mood |
+
+ int
+ |
+ - | +
+ None
+ |
+
reset_timer |
+
+ int
+ |
+ - | +
+ None
+ |
+
object_state |
+
+ int
+ |
+ - | +
+ None
+ |
+
action_type |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_1 |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_1_quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_2 |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_2_quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_3 |
+
+ int
+ |
+ - | +
+ None
+ |
+
resource_3_quantity |
+
+ int
+ |
+ - | +
+ None
+ |
+
message |
+
+ str
+ |
+ - | +
+ None
+ |
+
sound_name |
+
+ str
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ List[int]
+ |
+ - | +
+ None
+ |
+
unused_string_1 |
+
+ str
+ |
+ - | +
+ None
+ |
+
unused_string_2 |
+
+ str
+ |
+ - | +
+ None
+ |
+
_variable_ref |
+
+ int
+ |
+ - | +
+ None
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/effect.py
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 |
|
def __str__(...)
+
+¶AoE2ScenarioParser/objects/data_objects/effect.py
489 +490 |
|
def get_content_as_string(...)
+
+¶Create a human-readable string showcasing all content of this effect.
+This is also the function that is called when doing: print(effect)
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
include_effect_definition |
+
+ bool
+ |
+
+
+
+ If the effect meta-data should be added by this function + |
+
+ False
+ |
+
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/data_objects/effect.py
393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 |
|
NewEffectSupport
+
+
+¶AoE2ScenarioParser/objects/support/new_effect.py
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 + 298 + 299 + 300 + 301 + 302 + 303 + 304 + 305 + 306 + 307 + 308 + 309 + 310 + 311 + 312 + 313 + 314 + 315 + 316 + 317 + 318 + 319 + 320 + 321 + 322 + 323 + 324 + 325 + 326 + 327 + 328 + 329 + 330 + 331 + 332 + 333 + 334 + 335 + 336 + 337 + 338 + 339 + 340 + 341 + 342 + 343 + 344 + 345 + 346 + 347 + 348 + 349 + 350 + 351 + 352 + 353 + 354 + 355 + 356 + 357 + 358 + 359 + 360 + 361 + 362 + 363 + 364 + 365 + 366 + 367 + 368 + 369 + 370 + 371 + 372 + 373 + 374 + 375 + 376 + 377 + 378 + 379 + 380 + 381 + 382 + 383 + 384 + 385 + 386 + 387 + 388 + 389 + 390 + 391 + 392 + 393 + 394 + 395 + 396 + 397 + 398 + 399 + 400 + 401 + 402 + 403 + 404 + 405 + 406 + 407 + 408 + 409 + 410 + 411 + 412 + 413 + 414 + 415 + 416 + 417 + 418 + 419 + 420 + 421 + 422 + 423 + 424 + 425 + 426 + 427 + 428 + 429 + 430 + 431 + 432 + 433 + 434 + 435 + 436 + 437 + 438 + 439 + 440 + 441 + 442 + 443 + 444 + 445 + 446 + 447 + 448 + 449 + 450 + 451 + 452 + 453 + 454 + 455 + 456 + 457 + 458 + 459 + 460 + 461 + 462 + 463 + 464 + 465 + 466 + 467 + 468 + 469 + 470 + 471 + 472 + 473 + 474 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 482 + 483 + 484 + 485 + 486 + 487 + 488 + 489 + 490 + 491 + 492 + 493 + 494 + 495 + 496 + 497 + 498 + 499 + 500 + 501 + 502 + 503 + 504 + 505 + 506 + 507 + 508 + 509 + 510 + 511 + 512 + 513 + 514 + 515 + 516 + 517 + 518 + 519 + 520 + 521 + 522 + 523 + 524 + 525 + 526 + 527 + 528 + 529 + 530 + 531 + 532 + 533 + 534 + 535 + 536 + 537 + 538 + 539 + 540 + 541 + 542 + 543 + 544 + 545 + 546 + 547 + 548 + 549 + 550 + 551 + 552 + 553 + 554 + 555 + 556 + 557 + 558 + 559 + 560 + 561 + 562 + 563 + 564 + 565 + 566 + 567 + 568 + 569 + 570 + 571 + 572 + 573 + 574 + 575 + 576 + 577 + 578 + 579 + 580 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 + 605 + 606 + 607 + 608 + 609 + 610 + 611 + 612 + 613 + 614 + 615 + 616 + 617 + 618 + 619 + 620 + 621 + 622 + 623 + 624 + 625 + 626 + 627 + 628 + 629 + 630 + 631 + 632 + 633 + 634 + 635 + 636 + 637 + 638 + 639 + 640 + 641 + 642 + 643 + 644 + 645 + 646 + 647 + 648 + 649 + 650 + 651 + 652 + 653 + 654 + 655 + 656 + 657 + 658 + 659 + 660 + 661 + 662 + 663 + 664 + 665 + 666 + 667 + 668 + 669 + 670 + 671 + 672 + 673 + 674 + 675 + 676 + 677 + 678 + 679 + 680 + 681 + 682 + 683 + 684 + 685 + 686 + 687 + 688 + 689 + 690 + 691 + 692 + 693 + 694 + 695 + 696 + 697 + 698 + 699 + 700 + 701 + 702 + 703 + 704 + 705 + 706 + 707 + 708 + 709 + 710 + 711 + 712 + 713 + 714 + 715 + 716 + 717 + 718 + 719 + 720 + 721 + 722 + 723 + 724 + 725 + 726 + 727 + 728 + 729 + 730 + 731 + 732 + 733 + 734 + 735 + 736 + 737 + 738 + 739 + 740 + 741 + 742 + 743 + 744 + 745 + 746 + 747 + 748 + 749 + 750 + 751 + 752 + 753 + 754 + 755 + 756 + 757 + 758 + 759 + 760 + 761 + 762 + 763 + 764 + 765 + 766 + 767 + 768 + 769 + 770 + 771 + 772 + 773 + 774 + 775 + 776 + 777 + 778 + 779 + 780 + 781 + 782 + 783 + 784 + 785 + 786 + 787 + 788 + 789 + 790 + 791 + 792 + 793 + 794 + 795 + 796 + 797 + 798 + 799 + 800 + 801 + 802 + 803 + 804 + 805 + 806 + 807 + 808 + 809 + 810 + 811 + 812 + 813 + 814 + 815 + 816 + 817 + 818 + 819 + 820 + 821 + 822 + 823 + 824 + 825 + 826 + 827 + 828 + 829 + 830 + 831 + 832 + 833 + 834 + 835 + 836 + 837 + 838 + 839 + 840 + 841 + 842 + 843 + 844 + 845 + 846 + 847 + 848 + 849 + 850 + 851 + 852 + 853 + 854 + 855 + 856 + 857 + 858 + 859 + 860 + 861 + 862 + 863 + 864 + 865 + 866 + 867 + 868 + 869 + 870 + 871 + 872 + 873 + 874 + 875 + 876 + 877 + 878 + 879 + 880 + 881 + 882 + 883 + 884 + 885 + 886 + 887 + 888 + 889 + 890 + 891 + 892 + 893 + 894 + 895 + 896 + 897 + 898 + 899 + 900 + 901 + 902 + 903 + 904 + 905 + 906 + 907 + 908 + 909 + 910 + 911 + 912 + 913 + 914 + 915 + 916 + 917 + 918 + 919 + 920 + 921 + 922 + 923 + 924 + 925 + 926 + 927 + 928 + 929 + 930 + 931 + 932 + 933 + 934 + 935 + 936 + 937 + 938 + 939 + 940 + 941 + 942 + 943 + 944 + 945 + 946 + 947 + 948 + 949 + 950 + 951 + 952 + 953 + 954 + 955 + 956 + 957 + 958 + 959 + 960 + 961 + 962 + 963 + 964 + 965 + 966 + 967 + 968 + 969 + 970 + 971 + 972 + 973 + 974 + 975 + 976 + 977 + 978 + 979 + 980 + 981 + 982 + 983 + 984 + 985 + 986 + 987 + 988 + 989 + 990 + 991 + 992 + 993 + 994 + 995 + 996 + 997 + 998 + 999 +1000 +1001 +1002 +1003 +1004 +1005 +1006 +1007 +1008 +1009 +1010 +1011 +1012 +1013 +1014 +1015 +1016 +1017 +1018 +1019 +1020 +1021 +1022 +1023 +1024 +1025 +1026 +1027 +1028 +1029 +1030 +1031 +1032 +1033 +1034 +1035 +1036 +1037 +1038 +1039 +1040 +1041 +1042 +1043 +1044 +1045 +1046 +1047 +1048 +1049 +1050 +1051 +1052 +1053 +1054 +1055 +1056 +1057 +1058 +1059 +1060 +1061 +1062 +1063 +1064 +1065 +1066 +1067 +1068 +1069 +1070 +1071 +1072 +1073 +1074 +1075 +1076 +1077 +1078 +1079 +1080 +1081 +1082 +1083 +1084 +1085 +1086 +1087 +1088 +1089 +1090 +1091 +1092 +1093 +1094 +1095 +1096 +1097 +1098 +1099 +1100 +1101 +1102 +1103 +1104 +1105 +1106 +1107 +1108 +1109 +1110 +1111 +1112 +1113 +1114 +1115 +1116 +1117 +1118 +1119 +1120 +1121 +1122 +1123 +1124 +1125 +1126 +1127 +1128 +1129 +1130 +1131 +1132 +1133 +1134 +1135 +1136 +1137 +1138 +1139 +1140 +1141 +1142 +1143 +1144 +1145 +1146 +1147 +1148 +1149 +1150 +1151 +1152 +1153 +1154 +1155 +1156 +1157 +1158 +1159 +1160 +1161 +1162 +1163 +1164 +1165 +1166 +1167 +1168 +1169 +1170 +1171 +1172 +1173 +1174 +1175 +1176 +1177 +1178 +1179 +1180 +1181 +1182 +1183 +1184 +1185 +1186 +1187 +1188 +1189 +1190 +1191 +1192 +1193 +1194 +1195 +1196 +1197 +1198 +1199 +1200 +1201 +1202 +1203 +1204 +1205 +1206 +1207 +1208 +1209 +1210 +1211 +1212 +1213 +1214 +1215 +1216 +1217 +1218 +1219 +1220 +1221 +1222 +1223 +1224 +1225 +1226 +1227 +1228 +1229 +1230 +1231 +1232 +1233 +1234 +1235 +1236 +1237 +1238 +1239 +1240 +1241 +1242 +1243 +1244 +1245 +1246 +1247 +1248 +1249 +1250 +1251 +1252 +1253 +1254 +1255 +1256 +1257 +1258 +1259 +1260 +1261 +1262 +1263 +1264 +1265 +1266 +1267 +1268 +1269 +1270 +1271 +1272 +1273 +1274 +1275 +1276 +1277 +1278 +1279 +1280 +1281 +1282 +1283 +1284 +1285 +1286 +1287 +1288 +1289 +1290 +1291 +1292 +1293 +1294 +1295 +1296 +1297 +1298 +1299 +1300 +1301 +1302 +1303 +1304 +1305 +1306 +1307 +1308 +1309 +1310 +1311 +1312 +1313 +1314 +1315 +1316 +1317 +1318 +1319 +1320 +1321 +1322 +1323 +1324 +1325 +1326 +1327 +1328 +1329 +1330 +1331 +1332 +1333 +1334 +1335 +1336 +1337 +1338 +1339 +1340 +1341 +1342 +1343 +1344 +1345 +1346 +1347 +1348 +1349 +1350 +1351 +1352 +1353 +1354 +1355 +1356 +1357 +1358 +1359 +1360 +1361 +1362 +1363 +1364 +1365 +1366 +1367 +1368 +1369 +1370 +1371 +1372 +1373 +1374 +1375 +1376 +1377 +1378 +1379 +1380 +1381 +1382 +1383 +1384 +1385 +1386 +1387 +1388 +1389 +1390 +1391 +1392 +1393 +1394 +1395 +1396 +1397 +1398 +1399 +1400 +1401 +1402 +1403 +1404 +1405 +1406 +1407 +1408 +1409 +1410 +1411 +1412 +1413 +1414 +1415 +1416 +1417 +1418 +1419 +1420 +1421 +1422 +1423 +1424 +1425 +1426 +1427 +1428 +1429 +1430 +1431 +1432 +1433 +1434 +1435 +1436 +1437 +1438 +1439 +1440 +1441 +1442 +1443 +1444 +1445 +1446 +1447 +1448 +1449 +1450 +1451 +1452 +1453 +1454 +1455 +1456 +1457 +1458 +1459 +1460 +1461 +1462 +1463 +1464 +1465 +1466 +1467 +1468 +1469 +1470 +1471 +1472 +1473 +1474 +1475 +1476 +1477 +1478 +1479 +1480 +1481 +1482 +1483 +1484 +1485 +1486 +1487 +1488 +1489 +1490 +1491 +1492 +1493 +1494 +1495 +1496 +1497 +1498 +1499 +1500 +1501 +1502 +1503 +1504 +1505 +1506 +1507 +1508 +1509 +1510 +1511 +1512 +1513 +1514 +1515 +1516 +1517 +1518 +1519 +1520 +1521 +1522 +1523 +1524 +1525 +1526 +1527 +1528 +1529 +1530 +1531 +1532 +1533 +1534 +1535 +1536 +1537 +1538 +1539 +1540 +1541 +1542 +1543 +1544 +1545 +1546 +1547 +1548 +1549 +1550 +1551 +1552 +1553 +1554 +1555 +1556 +1557 +1558 +1559 +1560 +1561 +1562 +1563 +1564 +1565 +1566 +1567 +1568 +1569 +1570 +1571 +1572 +1573 +1574 +1575 +1576 +1577 +1578 +1579 +1580 +1581 +1582 +1583 +1584 +1585 +1586 +1587 +1588 +1589 +1590 +1591 +1592 +1593 +1594 +1595 +1596 +1597 +1598 +1599 +1600 +1601 +1602 +1603 +1604 +1605 +1606 +1607 +1608 +1609 +1610 +1611 +1612 +1613 +1614 +1615 +1616 +1617 +1618 +1619 +1620 +1621 +1622 +1623 +1624 +1625 +1626 +1627 +1628 +1629 +1630 +1631 +1632 +1633 +1634 +1635 +1636 +1637 +1638 +1639 +1640 +1641 +1642 +1643 +1644 +1645 +1646 +1647 +1648 +1649 +1650 +1651 +1652 +1653 +1654 +1655 +1656 +1657 +1658 +1659 +1660 +1661 +1662 +1663 +1664 +1665 +1666 +1667 +1668 +1669 +1670 +1671 +1672 +1673 +1674 +1675 +1676 +1677 +1678 +1679 +1680 +1681 +1682 +1683 +1684 +1685 +1686 +1687 +1688 +1689 +1690 +1691 +1692 +1693 +1694 +1695 +1696 +1697 +1698 +1699 +1700 +1701 +1702 +1703 +1704 +1705 +1706 +1707 +1708 +1709 +1710 +1711 +1712 +1713 +1714 +1715 +1716 +1717 +1718 +1719 +1720 +1721 +1722 +1723 +1724 +1725 +1726 +1727 +1728 +1729 +1730 +1731 +1732 |
|
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_ref |
+ + ? + | +- | ++ required + | +
AoE2ScenarioParser/objects/support/new_effect.py
13 +14 |
|
def acknowledge_ai_signal(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
ai_signal_value |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1024 +1025 +1026 +1027 +1028 +1029 +1030 +1031 |
|
def acknowledge_multiplayer_ai_signal(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
ai_signal_value |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1356 +1357 +1358 +1359 +1360 +1361 +1362 +1363 |
|
def activate_trigger(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
114 +115 +116 +117 +118 +119 +120 +121 |
|
def ai_script_goal(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
ai_script_goal |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
132 +133 +134 +135 +136 +137 +138 +139 |
|
def attack_move(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_object_reference |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588 +589 +590 +591 +592 +593 +594 +595 +596 +597 +598 +599 +600 +601 +602 +603 +604 +605 |
|
def change_civilization_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
988 +989 +990 +991 +992 +993 +994 +995 +996 +997 +998 +999 |
|
def change_color_mood(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
color_mood |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1407 +1408 +1409 +1410 +1411 +1412 +1413 +1414 +1415 |
|
def change_diplomacy(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
diplomacy |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 |
|
def change_object_armor(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
armour_attack_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
607 +608 +609 +610 +611 +612 +613 +614 +615 +616 +617 +618 +619 +620 +621 +622 +623 +624 +625 +626 +627 +628 +629 +630 +631 +632 +633 +634 +635 +636 |
|
def change_object_attack(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
armour_attack_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 |
|
def change_object_caption(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1698 +1699 +1700 +1701 +1702 +1703 +1704 +1705 +1706 +1707 +1708 +1709 +1710 +1711 +1712 +1713 +1714 +1715 +1716 +1717 +1718 +1719 +1720 +1721 |
|
def change_object_civilization_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1176 +1177 +1178 +1179 +1180 +1181 +1182 +1183 +1184 +1185 +1186 +1187 +1188 +1189 +1190 +1191 +1192 +1193 +1194 +1195 +1196 +1197 |
|
def change_object_cost(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_1_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_2_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_3 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_3_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
822 +823 +824 +825 +826 +827 +828 +829 +830 +831 +832 +833 +834 +835 +836 +837 +838 +839 +840 +841 +842 +843 |
|
def change_object_description(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
914 +915 +916 +917 +918 +919 +920 +921 +922 +923 +924 +925 +926 +927 |
|
def change_object_hp(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 |
|
def change_object_icon(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
858 +859 +860 +861 +862 +863 +864 +865 +866 +867 +868 +869 +870 +871 +872 +873 +874 +875 +876 +877 +878 +879 +880 +881 +882 +883 |
|
def change_object_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 |
|
def change_object_player_color(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
player_color |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1153 +1154 +1155 +1156 +1157 +1158 +1159 +1160 +1161 +1162 +1163 +1164 +1165 +1166 +1167 +1168 +1169 +1170 +1171 +1172 +1173 +1174 |
|
def change_object_player_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1199 +1200 +1201 +1202 +1203 +1204 +1205 +1206 +1207 +1208 +1209 +1210 +1211 +1212 +1213 +1214 +1215 +1216 +1217 +1218 +1219 +1220 +1221 +1222 |
|
def change_object_range(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
638 +639 +640 +641 +642 +643 +644 +645 +646 +647 +648 +649 +650 +651 +652 +653 +654 +655 +656 +657 +658 +659 +660 +661 +662 +663 +664 +665 |
|
def change_object_speed(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
667 +668 +669 +670 +671 +672 +673 +674 +675 +676 +677 +678 +679 +680 +681 +682 +683 +684 +685 +686 +687 +688 +689 +690 +691 +692 |
|
def change_object_stance(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
attack_stance |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764 +765 +766 +767 +768 +769 +770 +771 +772 +773 +774 +775 |
|
def change_ownership(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
flash_object |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 |
|
def change_player_color(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
player_color |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1723 +1724 +1725 +1726 +1727 +1728 +1729 +1730 +1731 +1732 |
|
def change_player_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
929 +930 +931 +932 +933 +934 +935 +936 +937 +938 +939 +940 |
|
def change_research_location(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
button_location |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
957 +958 +959 +960 +961 +962 +963 +964 +965 +966 +967 +968 +969 +970 +971 |
|
def change_technology_cost(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_1_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_2_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_3 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
resource_3_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1266 +1267 +1268 +1269 +1270 +1271 +1272 +1273 +1274 +1275 +1276 +1277 +1278 +1279 +1280 +1281 +1282 +1283 +1284 +1285 +1286 +1287 |
|
def change_technology_description(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1317 +1318 +1319 +1320 +1321 +1322 +1323 +1324 +1325 +1326 +1327 +1328 +1329 +1330 |
|
def change_technology_hotkey(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1646 +1647 +1648 +1649 +1650 +1651 +1652 +1653 +1654 +1655 +1656 +1657 |
|
def change_technology_icon(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1633 +1634 +1635 +1636 +1637 +1638 +1639 +1640 +1641 +1642 +1643 +1644 |
|
def change_technology_location(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
button_location |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
973 +974 +975 +976 +977 +978 +979 +980 +981 +982 +983 +984 +985 +986 |
|
def change_technology_name(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1302 +1303 +1304 +1305 +1306 +1307 +1308 +1309 +1310 +1311 +1312 +1313 +1314 +1315 |
|
def change_technology_research_time(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1289 +1290 +1291 +1292 +1293 +1294 +1295 +1296 +1297 +1298 +1299 +1300 |
|
def change_train_location(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
button_location |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
942 +943 +944 +945 +946 +947 +948 +949 +950 +951 +952 +953 +954 +955 |
|
def change_variable(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1129 +1130 +1131 +1132 +1133 +1134 +1135 +1136 +1137 +1138 +1139 +1140 +1141 +1142 |
|
def change_view(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
scroll |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 |
|
def clear_instructions(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
instruction_panel_position |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
383 +384 +385 +386 +387 +388 +389 +390 |
|
def clear_timer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
timer |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1144 +1145 +1146 +1147 +1148 +1149 +1150 +1151 |
|
def create_garrisoned_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1001 +1002 +1003 +1004 +1005 +1006 +1007 +1008 +1009 +1010 +1011 +1012 +1013 +1014 +1015 +1016 +1017 +1018 +1019 +1020 +1021 +1022 |
|
def create_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
facet |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 |
|
def create_object_armor(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
armour_attack_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1530 +1531 +1532 +1533 +1534 +1535 +1536 +1537 +1538 +1539 +1540 +1541 +1542 +1543 +1544 +1545 +1546 +1547 +1548 +1549 +1550 +1551 +1552 +1553 +1554 +1555 +1556 +1557 +1558 +1559 |
|
def create_object_attack(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
armour_attack_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1499 +1500 +1501 +1502 +1503 +1504 +1505 +1506 +1507 +1508 +1509 +1510 +1511 +1512 +1513 +1514 +1515 +1516 +1517 +1518 +1519 +1520 +1521 +1522 +1523 +1524 +1525 +1526 +1527 +1528 |
|
def damage_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 |
|
def deactivate_trigger(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
123 +124 +125 +126 +127 +128 +129 +130 |
|
def declare_victory(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
enabled |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
191 +192 +193 +194 +195 +196 +197 +198 +199 +200 |
|
def delete_key(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1624 +1625 +1626 +1627 +1628 +1629 +1630 +1631 |
|
def disable_object_deletion(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1438 +1439 +1440 +1441 +1442 +1443 +1444 +1445 +1446 +1447 +1448 +1449 +1450 +1451 +1452 +1453 +1454 +1455 +1456 +1457 |
|
def disable_object_selection(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1365 +1366 +1367 +1368 +1369 +1370 +1371 +1372 +1373 +1374 +1375 +1376 +1377 +1378 +1379 +1380 +1381 +1382 +1383 +1384 |
|
def disable_technology_stacking(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1345 +1346 +1347 +1348 +1349 +1350 +1351 +1352 +1353 +1354 |
|
def disable_unit_targeting(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1224 +1225 +1226 +1227 +1228 +1229 +1230 +1231 +1232 +1233 +1234 +1235 +1236 +1237 +1238 +1239 +1240 +1241 +1242 +1243 |
|
def display_instructions(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
display_time |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
instruction_panel_position |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
play_sound |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
sound_name |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 |
|
def display_timer(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
display_time |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
time_unit |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
timer |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
reset_timer |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
777 +778 +779 +780 +781 +782 +783 +784 +785 +786 +787 +788 +789 +790 +791 +792 +793 +794 |
|
def enable_disable_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
enabled |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
796 +797 +798 +799 +800 +801 +802 +803 +804 +805 +806 +807 |
|
def enable_disable_technology(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
enabled |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
809 +810 +811 +812 +813 +814 +815 +816 +817 +818 +819 +820 |
|
def enable_object_deletion(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1417 +1418 +1419 +1420 +1421 +1422 +1423 +1424 +1425 +1426 +1427 +1428 +1429 +1430 +1431 +1432 +1433 +1434 +1435 +1436 |
|
def enable_object_selection(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1386 +1387 +1388 +1389 +1390 +1391 +1392 +1393 +1394 +1395 +1396 +1397 +1398 +1399 +1400 +1401 +1402 +1403 +1404 +1405 |
|
def enable_technology_stacking(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1332 +1333 +1334 +1335 +1336 +1337 +1338 +1339 +1340 +1341 +1342 +1343 |
|
def enable_unit_targeting(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1245 +1246 +1247 +1248 +1249 +1250 +1251 +1252 +1253 +1254 +1255 +1256 +1257 +1258 +1259 +1260 +1261 +1262 +1263 +1264 |
|
def freeze_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 |
|
def heal_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
694 +695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 +714 +715 +716 +717 +718 +719 |
|
def initiate_research(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1486 +1487 +1488 +1489 +1490 +1491 +1492 +1493 +1494 +1495 +1496 +1497 |
|
def kill_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 |
|
def load_key_value(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1600 +1601 +1602 +1603 +1604 +1605 +1606 +1607 +1608 +1609 +1610 +1611 |
|
def lock_gate(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
105 +106 +107 +108 +109 +110 +111 +112 |
|
def modify_attribute(...)
+
+¶The parameters 'armour_attack_quantity' and 'armour_attack_class' are only used when object_attributes is Armor +or Attack (8 or 9). Use, 'quantity' otherwise.
+ + + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_attributes |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1033 +1034 +1035 +1036 +1037 +1038 +1039 +1040 +1041 +1042 +1043 +1044 +1045 +1046 +1047 +1048 +1049 +1050 +1051 +1052 +1053 +1054 +1055 +1056 +1057 +1058 +1059 +1060 +1061 |
|
def modify_attribute_by_variable(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_attributes |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1561 +1562 +1563 +1564 +1565 +1566 +1567 +1568 +1569 +1570 +1571 +1572 +1573 +1574 +1575 +1576 +1577 +1578 +1579 +1580 +1581 +1582 +1583 |
|
def modify_resource(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
tribute_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1063 +1064 +1065 +1066 +1067 +1068 +1069 +1070 +1071 +1072 +1073 +1074 +1075 +1076 |
|
def modify_resource_by_variable(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
tribute_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1078 +1079 +1080 +1081 +1082 +1083 +1084 +1085 +1086 +1087 +1088 +1089 +1090 +1091 |
|
def modify_variable_by_attribute(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_attributes |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
armour_attack_class |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1674 +1675 +1676 +1677 +1678 +1679 +1680 +1681 +1682 +1683 +1684 +1685 +1686 +1687 +1688 +1689 +1690 +1691 +1692 +1693 +1694 +1695 +1696 |
|
def modify_variable_by_resource(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
tribute_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
operation |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1659 +1660 +1661 +1662 +1663 +1664 +1665 +1666 +1667 +1668 +1669 +1670 +1671 +1672 |
|
def none(...)
+
+¶AoE2ScenarioParser/objects/support/new_effect.py
16 +17 +18 +19 +20 +21 |
|
def patrol(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 |
|
def place_foundation(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 |
|
def play_sound(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_object_reference |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
sound_name |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 |
|
def remove_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_state |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
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 |
|
def replace_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id_2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
885 +886 +887 +888 +889 +890 +891 +892 +893 +894 +895 +896 +897 +898 +899 +900 +901 +902 +903 +904 +905 +906 +907 +908 +909 +910 +911 +912 |
|
def research_technology(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
force_research_technology |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 |
|
def script_call(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1118 +1119 +1120 +1121 +1122 +1123 +1124 +1125 +1126 +1127 |
|
def send_chat(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
string_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
sound_name |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 |
|
def set_building_gather_point(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1093 +1094 +1095 +1096 +1097 +1098 +1099 +1100 +1101 +1102 +1103 +1104 +1105 +1106 +1107 +1108 +1109 +1110 +1111 +1112 +1113 +1114 +1115 +1116 |
|
def set_object_cost(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
tribute_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1585 +1586 +1587 +1588 +1589 +1590 +1591 +1592 +1593 +1594 +1595 +1596 +1597 +1598 |
|
def set_player_visibility(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
visibility_state |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
845 +846 +847 +848 +849 +850 +851 +852 +853 +854 +855 +856 |
|
def stop_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
551 +552 +553 +554 +555 +556 +557 +558 +559 +560 +561 +562 +563 +564 +565 +566 +567 +568 +569 +570 +571 +572 +573 +574 |
|
def store_key_value(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
variable |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
message |
+
+ str | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1613 +1614 +1615 +1616 +1617 +1618 +1619 +1620 +1621 +1622 |
|
def task_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_object_reference |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
action_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
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 |
|
def teleport_object(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
721 +722 +723 +724 +725 +726 +727 +728 +729 +730 +731 +732 +733 +734 +735 +736 +737 +738 +739 +740 +741 +742 +743 +744 +745 +746 +747 +748 |
|
def train_unit(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
1459 +1460 +1461 +1462 +1463 +1464 +1465 +1466 +1467 +1468 +1469 +1470 +1471 +1472 +1473 +1474 +1475 +1476 +1477 +1478 +1479 +1480 +1481 +1482 +1483 +1484 |
|
def tribute(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
quantity |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
tribute_list |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
target_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 |
|
def unload(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
object_list_unit_id |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
source_player |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_x |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_y |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
location_object_reference |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y1 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_x2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
area_y2 |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_group |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
object_type |
+
+ int | None
+ |
+ - | +
+ None
+ |
+
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
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 +298 +299 +300 |
|
def unlock_gate(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
selected_object_ids |
+
+ int | List[int] | None
+ |
+ - | +
+ None
+ |
+
AoE2ScenarioParser/objects/support/new_effect.py
96 + 97 + 98 + 99 +100 +101 +102 +103 |
|
def use_advanced_buttons(...)
+
+¶AoE2ScenarioParser/objects/support/new_effect.py
417 +418 +419 +420 +421 +422 |
|
Trigger
+
+
+¶
+ Bases: AoE2Object
, TriggerComponent
Object for handling a trigger.
+ +AoE2ScenarioParser/objects/data_objects/trigger.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 |
|
condition_order: List[int]
+
+
+ property
+ writable
+
+
+¶List[int]
+
+ The condition display order
+conditions: List[Condition]
+
+
+ property
+ writable
+
+
+¶List[Condition]
+
+ All conditions in this trigger
+description: str = description
+
+
+ instance-attribute
+
+
+¶str
+ description
description_order: int = description_order
+
+
+ instance-attribute
+
+
+¶int
+ description_order
description_stid: int = description_stid
+
+
+ instance-attribute
+
+
+¶int
+ description_stid
display_as_objective: int = display_as_objective
+
+
+ instance-attribute
+
+
+¶int
+ display_as_objective
display_on_screen: int = display_on_screen
+
+
+ instance-attribute
+
+
+¶int
+ display_on_screen
effect_order: List[int]
+
+
+ property
+ writable
+
+
+¶List[int]
+
+ The effect display order
+effects: List[Effect]
+
+
+ property
+ writable
+
+
+¶List[Effect]
+
+ All effects in this trigger
+enabled: int = enabled
+
+
+ instance-attribute
+
+
+¶int
+ enabled
header: int = header
+
+
+ instance-attribute
+
+
+¶int
+ header
looping: int = looping
+
+
+ instance-attribute
+
+
+¶int
+ looping
mute_objectives: int = mute_objectives
+
+
+ instance-attribute
+
+
+¶int
+ mute_objectives
name: str = name
+
+
+ instance-attribute
+
+
+¶str
+ name
new_condition: NewConditionSupport = NewConditionSupport(self)
+
+
+ instance-attribute
+
+
+¶NewConditionSupport
+ NewConditionSupport(self)
new_effect: NewEffectSupport = NewEffectSupport(self)
+
+
+ instance-attribute
+
+
+¶NewEffectSupport
+ NewEffectSupport(self)
short_description: str = short_description
+
+
+ instance-attribute
+
+
+¶str
+ short_description
short_description_stid: int = short_description_stid
+
+
+ instance-attribute
+
+
+¶int
+ short_description_stid
trigger_id: int = trigger_id
+
+
+ instance-attribute
+
+
+¶int
+ trigger_id
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
name |
+
+ str
+ |
+ - | ++ required + | +
description |
+
+ str
+ |
+ - | +
+ ''
+ |
+
description_stid |
+
+ int
+ |
+ - | +
+ -1
+ |
+
display_as_objective |
+
+ int
+ |
+ - | +
+ 0
+ |
+
short_description |
+
+ str
+ |
+ - | +
+ ''
+ |
+
short_description_stid |
+
+ int
+ |
+ - | +
+ -1
+ |
+
display_on_screen |
+
+ int
+ |
+ - | +
+ 0
+ |
+
description_order |
+
+ int
+ |
+ - | +
+ 0
+ |
+
enabled |
+
+ int
+ |
+ - | +
+ 1
+ |
+
looping |
+
+ int
+ |
+ - | +
+ 0
+ |
+
header |
+
+ int
+ |
+ - | +
+ 0
+ |
+
mute_objectives |
+
+ int
+ |
+ - | +
+ 0
+ |
+
conditions |
+
+ List[Condition]
+ |
+ - | +
+ None
+ |
+
condition_order |
+
+ List[int]
+ |
+ - | +
+ None
+ |
+
effects |
+
+ List[Effect]
+ |
+ - | +
+ None
+ |
+
effect_order |
+
+ List[int]
+ |
+ - | +
+ None
+ |
+
trigger_id |
+
+ int
+ |
+ - | +
+ -1
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
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 |
|
def __str__(...)
+
+¶AoE2ScenarioParser/objects/data_objects/trigger.py
394 +395 |
|
def get_condition(...)
+
+¶Retrieve a condition based on its (display) index
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
condition_index |
+
+ int
+ |
+
+
+
+ The condition index of the condition to retrieve + |
+
+ None
+ |
+
display_index |
+
+ int
+ |
+
+
+
+ The display index of the condition to retrieve + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If more than one parameter is used simultaneously + |
+
+ IndexError
+ |
+
+
+
+ If the condition could not be found + |
+
Returns:
+Type | +Description | +
---|---|
+ Condition
+ |
+
+
+
+ The wanted condition + |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 +272 +273 +274 +275 +276 |
|
def get_content_as_string(...)
+
+¶Create a human-readable string showcasing all content of this trigger. +This includes all the content within the conditions and effects of this trigger.
+This is also the function that is called when doing: print(trigger)
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
include_trigger_definition |
+
+ bool
+ |
+
+
+
+ If the trigger meta-data should be added by this function + |
+
+ False
+ |
+
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 |
|
def get_effect(...)
+
+¶Retrieve an effect based on its (display) index
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
effect_index |
+
+ int
+ |
+
+
+
+ The effect index of the effect to retrieve + |
+
+ None
+ |
+
display_index |
+
+ int
+ |
+
+
+
+ The display index of the effect to retrieve + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If more than one parameter is used simultaneously + |
+
+ IndexError
+ |
+
+
+
+ If the effect could not be found + |
+
Returns:
+Type | +Description | +
---|---|
+ Effect
+ |
+
+
+
+ The wanted effect + |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 +249 +250 +251 +252 +253 |
|
def remove_condition(...)
+
+¶Remove a condition from this trigger
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
condition_index |
+
+ int
+ |
+
+
+
+ The condition index of the condition to remove + |
+
+ None
+ |
+
display_index |
+
+ int
+ |
+
+
+
+ The display index of the condition to remove + |
+
+ None
+ |
+
condition |
+
+ Condition
+ |
+
+
+
+ A reference to the condition object to remove from this trigger + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If more than one parameter is used simultaneously + |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 |
|
def remove_effect(...)
+
+¶Remove an effect from this trigger
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
effect_index |
+
+ int
+ |
+
+
+
+ The effect index of the condition to remove + |
+
+ None
+ |
+
display_index |
+
+ int
+ |
+
+
+
+ The display index of the condition to remove + |
+
+ None
+ |
+
effect |
+
+ Effect
+ |
+
+
+
+ A reference to the effect object to remove from this trigger + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If more than one parameter is used simultaneously + |
+
AoE2ScenarioParser/objects/data_objects/trigger.py
278 +279 +280 +281 +282 +283 +284 +285 +286 +287 +288 +289 +290 +291 +292 +293 +294 +295 +296 +297 +298 |
|
TriggerCELock
+
+
+¶Object used to identify which conditions and effects should be locked from change
+ +AoE2ScenarioParser/objects/support/trigger_ce_lock.py
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 |
|
lock_condition_ids = lock_condition_ids
+
+
+ instance-attribute
+
+
+¶lock_condition_ids
lock_condition_type = lock_condition_type
+
+
+ instance-attribute
+
+
+¶lock_condition_type
lock_conditions = lock_conditions
+
+
+ instance-attribute
+
+
+¶lock_conditions
lock_effect_ids = lock_effect_ids
+
+
+ instance-attribute
+
+
+¶lock_effect_ids
lock_effect_type = lock_effect_type
+
+
+ instance-attribute
+
+
+¶lock_effect_type
lock_effects = lock_effects
+
+
+ instance-attribute
+
+
+¶lock_effects
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
lock_conditions |
+
+ bool
+ |
+
+
+
+ Lock all conditions + |
+
+ False
+ |
+
lock_effects |
+
+ bool
+ |
+
+
+
+ Lock all effects + |
+
+ False
+ |
+
lock_condition_type |
+
+ List[int] | None
+ |
+
+
+
+ Lock certain condition types. Example: |
+
+ None
+ |
+
lock_effect_type |
+
+ List[int] | None
+ |
+
+
+
+ Lock certain effect types. Example: |
+
+ None
+ |
+
lock_condition_ids |
+
+ List[int] | None
+ |
+
+
+
+ Lock certain conditions by their id + |
+
+ None
+ |
+
lock_effect_ids |
+
+ List[int] | None
+ |
+
+
+
+ Lock certain effects by their id + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/support/trigger_ce_lock.py
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 |
|
TriggerManager
+
+
+¶
+ Bases: AoE2Object
Manager of everything trigger related.
+This class does not include the logic for DE specific features (e.g. Variable
objects).
+For those see: TriggerManagerDE
AoE2ScenarioParser/objects/managers/trigger_manager.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 +519 +520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556 +557 +558 +559 +560 +561 +562 +563 +564 +565 +566 +567 +568 +569 +570 +571 +572 +573 +574 +575 +576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588 +589 +590 +591 +592 +593 +594 +595 +596 +597 +598 +599 +600 +601 +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 +613 +614 +615 +616 +617 +618 +619 +620 +621 +622 +623 +624 +625 +626 +627 +628 +629 +630 +631 +632 +633 +634 +635 +636 +637 +638 +639 +640 +641 +642 +643 +644 +645 +646 +647 +648 +649 +650 +651 +652 +653 +654 +655 +656 +657 +658 +659 +660 +661 +662 +663 +664 +665 +666 +667 +668 +669 +670 +671 +672 +673 +674 +675 +676 +677 +678 +679 +680 +681 +682 +683 +684 +685 +686 +687 +688 +689 +690 +691 +692 +693 +694 +695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 +714 +715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 +726 +727 +728 +729 +730 +731 +732 +733 +734 +735 +736 +737 +738 +739 +740 +741 +742 +743 +744 +745 +746 +747 +748 +749 +750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764 +765 +766 +767 +768 +769 +770 +771 +772 +773 +774 +775 +776 +777 +778 +779 +780 +781 +782 +783 +784 +785 +786 +787 |
|
trigger_display_order: List[int]
+
+
+ property
+ writable
+
+
+¶List[int]
+
+ The display order. This is a list of trigger IDs in the display order. NOT execution order!
+triggers: UuidList[Trigger]
+
+
+ property
+ writable
+
+
+¶UuidList[Trigger]
+
+ All triggers
+def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
triggers |
+
+ List[Trigger]
+ |
+ - | ++ required + | +
trigger_display_order |
+
+ List[int]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 |
|
def __str__(...)
+
+¶AoE2ScenarioParser/objects/managers/trigger_manager.py
765 +766 |
|
def add_trigger(...)
+
+¶Adds a new trigger to the scenario. Everything that is left empty will be set to in-game editor defaults.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
name |
+
+ str
+ |
+
+
+
+ The name for the trigger + |
+ + required + | +
description |
+
+ str | None
+ |
+
+
+
+ The trigger description + |
+
+ None
+ |
+
description_stid |
+
+ int | None
+ |
+
+
+
+ The trigger description string table ID + |
+
+ None
+ |
+
display_as_objective |
+
+ bool | None
+ |
+
+
+
+ Display the trigger as objective + |
+
+ None
+ |
+
short_description |
+
+ str | None
+ |
+
+
+
+ The short trigger description + |
+
+ None
+ |
+
short_description_stid |
+
+ int | None
+ |
+
+
+
+ The short trigger description string table ID + |
+
+ None
+ |
+
display_on_screen |
+
+ bool | None
+ |
+
+
+
+ Display the trigger objective on screen + |
+
+ None
+ |
+
description_order |
+
+ int | None
+ |
+
+
+
+ ? + |
+
+ None
+ |
+
enabled |
+
+ bool | None
+ |
+
+
+
+ If the trigger is enabled from the start. + |
+
+ None
+ |
+
looping |
+
+ bool | None
+ |
+
+
+
+ If the trigger loops. + |
+
+ None
+ |
+
header |
+
+ bool | None
+ |
+
+
+
+ Turn objective into header + |
+
+ None
+ |
+
mute_objectives |
+
+ bool | None
+ |
+
+
+
+ Mute objectives + |
+
+ None
+ |
+
conditions |
+
+ List | None
+ |
+
+
+
+ A list of condition managers + |
+
+ None
+ |
+
effects |
+
+ List | None
+ |
+
+
+
+ A list of effect managers + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Trigger
+ |
+
+
+
+ The newly created trigger + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 +519 +520 +521 +522 +523 |
|
def compute_updated_display_order(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
removing_trigger_ids |
+
+ List[int]
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/managers/trigger_manager.py
768 +769 +770 +771 +772 +773 +774 +775 +776 +777 +778 +779 +780 +781 +782 +783 +784 +785 +786 +787 |
|
def copy_trigger(...)
+
+¶Creates an exact copy (deepcopy) of this trigger.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
append_after_source |
+
+ bool
+ |
+
+
+
+ If the new trigger should be appended below the source trigger + |
+
+ True
+ |
+
add_suffix |
+
+ bool
+ |
+
+
+
+ If the text ' (copy)' should be added after the trigger + |
+
+ True
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Trigger
+ |
+
+
+
+ The newly copied trigger + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
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 |
|
def copy_trigger_per_player(...)
+
+¶Copies a trigger for all or a selection of players. Every copy will change desired player attributes with it.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
from_player |
+
+ IntEnum
+ |
+
+
+
+ The central player this trigger is created for. This is the player that will not get +a copy. + |
+ + required + | +
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
change_from_player_only |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ False
+ |
+
include_player_source |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ True
+ |
+
include_player_target |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ False
+ |
+
trigger_ce_lock |
+
+ TriggerCELock | None
+ |
+
+
+
+ The TriggerCELock object. Used to lock certain (types) of conditions or +effects from being changed while copying. + |
+
+ None
+ |
+
include_gaia |
+
+ bool
+ |
+
+
+
+ If |
+
+ False
+ |
+
create_copy_for_players |
+
+ List[IntEnum]
+ |
+
+
+
+ A list of Players to create a copy for. The |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Dict[PlayerId, Trigger]
+ |
+
+
+
+ A dict with all the new created triggers. The key is the player for which the trigger is
+created using the IntEnum associated with it. Example:
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ if more than one trigger selection is used. Any of (trigger_index, display_index or trigger)
+Or if Both |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
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 |
|
def copy_trigger_tree(...)
+
+¶Copies an entire trigger tree. Trigger trees are triggers linked together using (de)activate_trigger
effects.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ List[Trigger]
+ |
+
+
+
+ The newly created triggers in a list + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 |
|
def copy_trigger_tree_per_player(...)
+
+¶Copies an entire trigger tree for all or a selection of players. Every copy will change desired player
+attributes with it. Trigger trees are triggers linked together using (de)activate_trigger
effects.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
from_player |
+
+ IntEnum
+ |
+
+
+
+ The central player this trigger is created for. This is the player that will not get +a copy. + |
+ + required + | +
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
change_from_player_only |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ False
+ |
+
include_player_source |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ True
+ |
+
include_player_target |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ False
+ |
+
trigger_ce_lock |
+
+ TriggerCELock | None
+ |
+
+
+
+ The TriggerCELock object. Used to lock certain (types) of conditions or +effects from being changed while copying. + |
+
+ None
+ |
+
include_gaia |
+
+ bool
+ |
+
+
+
+ If |
+
+ False
+ |
+
create_copy_for_players |
+
+ List[IntEnum] | None
+ |
+
+
+
+ A list of Players to create a copy for. The |
+
+ None
+ |
+
group_triggers_by |
+
+ GroupBy | None
+ |
+
+
+
+ How to group the newly added triggers. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Dict[IntEnum, List[Trigger]]
+ |
+
+
+
+ The newly created triggers in a dict using the Player as key and as value with a list of triggers + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
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 +298 +299 +300 +301 +302 +303 +304 +305 |
|
def get_content_as_string(...)
+
+¶Create a human-readable string showcasing all content of the manager. +This includes all triggers and their conditions and effects.
+This is also the function that is called when doing: print(trigger_manager)
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 |
|
def get_summary_as_string(...)
+
+¶Create a human-readable string showcasing a summary of the content of the manager. +This includes all triggers and the amount of conditions and effects they hold.
+ + +Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
653 +654 +655 +656 +657 +658 +659 +660 +661 +662 +663 +664 +665 +666 +667 +668 +669 +670 +671 +672 +673 +674 +675 +676 +677 +678 +679 +680 +681 +682 +683 +684 +685 +686 +687 +688 +689 +690 +691 +692 +693 |
|
def get_trigger(...)
+
+¶Get a single trigger
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ Trigger
+ |
+
+
+
+ The selected trigger + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
561 +562 +563 +564 +565 +566 +567 +568 +569 +570 +571 +572 |
|
def get_trigger_as_string(...)
+
+¶Create a human-readable string showcasing trigger meta-data and content.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 +726 +727 +728 +729 +730 +731 +732 |
|
def import_triggers(...)
+
+¶Adds existing trigger objects (from another scenario) to this scenario. Keeping all (de)activate trigger
+effects linked!
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
triggers |
+
+ List[Trigger]
+ |
+
+
+
+ The list of Trigger objects to be added + |
+ + required + | +
index |
+
+ int
+ |
+
+
+
+ The index where to insert the new triggers, will be added at the end when left unused. + |
+
+ -1
+ |
+
deepcopy |
+
+ bool
+ |
+
+
+
+ If the given triggers need to be deep copied or not when importing. Can be useful to keep the
+reference alive between the source and target trigger the same when setting this to |
+
+ True
+ |
+
Returns:
+Type | +Description | +
---|---|
+ List[Trigger]
+ |
+
+
+
+ The newly added triggers (with the new IDs and activation links etc.) + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556 +557 +558 +559 |
|
def move_triggers(...)
+
+¶Moves the given IDs from anywhere to the split index. This function reorders triggers BUT keeps
+(de)activate trigger
effects linked properly!
As an example:
+1 +2 +3 +4 |
|
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_ids |
+
+ List[int]
+ |
+
+
+
+ The trigger IDs to move + |
+ + required + | +
insert_index |
+
+ int
+ |
+
+
+
+ The index that defines where to insert the triggers + |
+ + required + | +
AoE2ScenarioParser/objects/managers/trigger_manager.py
307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 |
|
def remove_trigger(...)
+
+¶Removes a trigger BUT keeps (de)activate trigger
effects linked properly!
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
AoE2ScenarioParser/objects/managers/trigger_manager.py
574 +575 +576 +577 +578 +579 +580 +581 |
|
def remove_triggers(...)
+
+¶Removes a list of triggers BUT keeps (de)activate trigger
effects linked properly!
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_selects |
+
+ List[int | TriggerSelect]
+ |
+
+
+
+ The list with trigger IDs + |
+ + required + | +
AoE2ScenarioParser/objects/managers/trigger_manager.py
583 +584 +585 +586 +587 +588 +589 +590 +591 +592 +593 +594 +595 +596 +597 +598 +599 +600 +601 +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 |
|
def reorder_triggers(...)
+
+¶Reorder all triggers to a given order of IDs. This function reorders triggers BUT keeps (de)activate trigger
+effects linked properly!
Examples:
+1 +2 +3 +4 +5 +6 +7 +8 +9 |
|
Keep in mind that all trigger IDs will get remapped with this function. So trigger_manager.triggers[4]
might
+result in a different trigger after this function is called in comparison to before.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
new_id_order |
+
+ List[int]
+ |
+
+
+
+ The new trigger order. Uses the current display order when left unused + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 |
|
def replace_player(...)
+
+¶Replaces player attributes. Specifically useful if multiple players are used in the same trigger.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_select |
+
+ int | TriggerSelect
+ |
+
+
+
+ The ID of the trigger or an object used to identify which trigger to select. + |
+ + required + | +
to_player |
+
+ PlayerId
+ |
+
+
+
+ The player the attributes are changed to. + |
+ + required + | +
only_change_from |
+
+ PlayerId
+ |
+
+
+
+ Can only change player attributes if the player is equal to the given value + |
+
+ None
+ |
+
include_player_source |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ True
+ |
+
include_player_target |
+
+ bool
+ |
+
+
+
+ If set to |
+
+ False
+ |
+
trigger_ce_lock |
+
+ TriggerCELock
+ |
+
+
+
+ The TriggerCELock object. Used to lock certain (types) of conditions or +effects from being changed. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Trigger
+ |
+
+
+
+ The given trigger with the proper player attributes changed + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 |
|
def get_activation_effects(...)
+
+¶Get all activation effects in a Trigger
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger |
+
+ Trigger
+ |
+
+
+
+ The trigger object + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ List[Effect]
+ |
+
+
+
+ A list with (de)activation effects + |
+
AoE2ScenarioParser/objects/managers/trigger_manager.py
790 +791 +792 +793 +794 +795 +796 +797 +798 +799 +800 +801 +802 |
|
TriggerManagerDE
+
+
+¶
+ Bases: TriggerManager
Manager of all DE trigger related features
+ +AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
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 |
|
variables: List[Variable]
+
+
+ property
+ writable
+
+
+¶List[Variable]
+
+ All currently renamed variables
+def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
triggers |
+
+ List[Trigger]
+ |
+ - | ++ required + | +
trigger_display_order |
+
+ List[int]
+ |
+ - | ++ required + | +
variables |
+
+ List[Variable]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
22 +23 +24 +25 |
|
def add_variable(...)
+
+¶Adds a variable.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
name |
+
+ str
+ |
+
+
+
+ The name for the variable + |
+ + required + | +
variable_id |
+
+ int
+ |
+
+
+
+ The ID of the variable. If left empty lowest available value will be used + |
+
+ -1
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Variable
+ |
+
+
+
+ The newly renamed Variable + |
+
AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
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 |
|
def get_content_as_string(...)
+
+¶Create a human-readable string showcasing all content of the manager. +This includes all triggers and their conditions and effects and also all renamed variables.
+This is also the function that is called when doing: print(trigger_manager)
Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 |
|
def get_summary_as_string(...)
+
+¶Create a human-readable string showcasing a summary of the content of the manager. +This includes all triggers and the amount of conditions and effects they hold and also all renamed variables.
+ + +Returns:
+Type | +Description | +
---|---|
+ str
+ |
+
+
+
+ The created string + |
+
AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
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 |
|
def get_variable(...)
+
+¶Get a specific variable
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
variable_id |
+
+ int
+ |
+
+
+
+ The ID of the variable you want + |
+
+ None
+ |
+
variable_name |
+
+ str
+ |
+
+
+
+ The name of the variable you want + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Optional[Variable]
+ |
+
+
+
+ The |
+
AoE2ScenarioParser/objects/managers/de/trigger_manager_de.py
64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 |
|
TS: Type[TriggerSelect] = TriggerSelect
+
+
+ module-attribute
+
+
+¶Type[TriggerSelect]
+ TriggerSelect
Alias for TriggerSelect
TriggerSelect
+
+
+¶Object used to select a trigger in many trigger related functions. For ease of use, the alias TS
can be
+called. You can also use those in combination with the class methods (factory methods). Like so:
Most functions allow you to just input 4
into the trigger_select parameter (instead of: TS.index(4)
)
Examples:
+TS.index(4)
To select the trigger with index 4
TS.display(4)
Trigger with display index 4
TS.trigger(trigger)
Well... The trigger object given...
AoE2ScenarioParser/objects/support/trigger_select.py
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 |
|
display_index = display_index
+
+
+ instance-attribute
+
+
+¶display_index
trigger_index = trigger_index
+
+
+ instance-attribute
+
+
+¶trigger_index
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger_index |
+
+ int
+ |
+
+
+
+ The index of the trigger. Starting from 0, based on creation time + |
+
+ None
+ |
+
display_index |
+
+ int
+ |
+
+
+
+ The display index of a trigger. Starting from 0, based on display order in the editor + |
+
+ None
+ |
+
trigger |
+
+ Trigger
+ |
+
+
+
+ The trigger object itself. + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/support/trigger_select.py
21 +22 +23 +24 +25 +26 +27 +28 +29 +30 |
|
def display(...)
+
+
+ classmethod
+
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
display_index |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/trigger_select.py
36 +37 +38 |
|
def index(...)
+
+
+ classmethod
+
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
index |
+
+ int
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/trigger_select.py
32 +33 +34 |
|
def trigger(...)
+
+
+ classmethod
+
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
trigger |
+
+ Trigger
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/support/trigger_select.py
40 +41 +42 |
|
Variable
+
+
+¶
+ Bases: AoE2Object
Object for handling a variable.
+ +AoE2ScenarioParser/objects/data_objects/variable.py
8 + 9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 |
|
variable_id = variable_id
+
+
+ instance-attribute
+
+
+¶variable_id
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
variable_id |
+
+ int
+ |
+ - | ++ required + | +
name |
+
+ str
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/variable.py
18 +19 +20 +21 +22 |
|
Unit
+
+
+¶
+ Bases: AoE2Object
A class representing a single unit on the map. +This can be an archer, a gold mine, a house or even a tree.
+ +AoE2ScenarioParser/objects/data_objects/unit.py
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 |
|
caption_string_id: int = caption_string_id
+
+
+ instance-attribute
+
+
+¶int
+ caption_string_id
garrisoned_in_id: int = garrisoned_in_id
+
+
+ instance-attribute
+
+
+¶int
+ garrisoned_in_id
initial_animation_frame: int = initial_animation_frame
+
+
+ instance-attribute
+
+
+¶int
+ initial_animation_frame
name: str
+
+
+ property
+
+
+¶str
+
+ The name of the unit, nicely formatted
+player: PlayerId
+
+
+ property
+ writable
+
+
+¶PlayerId
+
+ The player that owns this unit
+reference_id: int = reference_id
+
+
+ instance-attribute
+
+
+¶int
+ reference_id
rotation: float = rotation
+
+
+ instance-attribute
+
+
+¶float
+ rotation
status: int = status
+
+
+ instance-attribute
+
+
+¶int
+ status
tile: Tile
+
+
+ property
+ writable
+
+
+¶Tile
+
+ The tile where the unit is located
+unit_const: int = unit_const
+
+
+ instance-attribute
+
+
+¶int
+ unit_const
x: float = x
+
+
+ instance-attribute
+
+
+¶float
+ x
y: float = y
+
+
+ instance-attribute
+
+
+¶float
+ y
z: float = z
+
+
+ instance-attribute
+
+
+¶float
+ z
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
player |
+
+ int | PlayerId
+ |
+ - | ++ required + | +
x |
+
+ float
+ |
+ - | ++ required + | +
y |
+
+ float
+ |
+ - | ++ required + | +
z |
+
+ float
+ |
+ - | ++ required + | +
reference_id |
+
+ int
+ |
+ - | ++ required + | +
unit_const |
+
+ int
+ |
+ - | ++ required + | +
status |
+
+ int
+ |
+ - | ++ required + | +
rotation |
+
+ float
+ |
+ - | ++ required + | +
initial_animation_frame |
+
+ int
+ |
+ - | ++ required + | +
garrisoned_in_id |
+
+ int
+ |
+ - | +
+ -1
+ |
+
caption_string_id |
+
+ int
+ |
+ - | +
+ -1
+ |
+
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/data_objects/unit.py
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 |
|
def __repr__(...)
+
+¶AoE2ScenarioParser/objects/data_objects/unit.py
99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 |
|
UnitManager
+
+
+¶
+ Bases: AoE2Object
Manager of everything unit related.
+ +AoE2ScenarioParser/objects/managers/unit_manager.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 +336 +337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 +351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 |
|
reference_id_generator: Generator[int] = create_id_generator(next_unit_id)
+
+
+ instance-attribute
+
+
+¶Generator[int]
+ create_id_generator(next_unit_id)
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
_player_units |
+
+ List[PlayerUnits]
+ |
+ - | ++ required + | +
next_unit_id |
+
+ int
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
22 +23 +24 +25 +26 +27 +28 +29 +30 +31 |
|
def add_unit(...)
+
+¶Adds a unit to the scenario.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
player |
+
+ int | PlayerId
+ |
+
+
+
+ The player the unit belongs to. + |
+ + required + | +
unit_const |
+
+ int
+ |
+
+
+
+ Defines what unit you're placing. The IDs used in the unit/buildings dataset. + |
+ + required + | +
x |
+
+ float
+ |
+
+
+
+ The x location in the scenario. + |
+
+ 0
+ |
+
y |
+
+ float
+ |
+
+
+
+ The y location in the scenario. + |
+
+ 0
+ |
+
z |
+
+ float
+ |
+
+
+
+ The z (height) location in the scenario. + |
+
+ 0
+ |
+
rotation |
+
+ float
+ |
+
+
+
+ The rotation of the unit. + |
+
+ 0
+ |
+
garrisoned_in_id |
+
+ int
+ |
+
+
+
+ The reference_id of another unit this unit is garrisoned in. + |
+
+ -1
+ |
+
animation_frame |
+
+ int
+ |
+
+
+
+ The animation frame of the unit. + |
+
+ 0
+ |
+
status |
+
+ int
+ |
+
+
+
+ Unknown - Always 2. 0-6 no difference (?) | 7-255 makes it disappear. (Except from the mini-map) + |
+
+ 2
+ |
+
reference_id |
+
+ int
+ |
+
+
+
+ The reference ID of this unit. Normally added automatically. Used for garrisoning or reference +in triggers + |
+
+ None
+ |
+
caption_string_id |
+
+ int
+ |
+
+
+
+ A string ID for the caption of a unit + |
+
+ -1
+ |
+
tile |
+
+ Tile | Tuple[int, int]
+ |
+
+
+
+ An object that represents a tile on the map. Replaces parameters x and y. Also, automatically adds +.5 to both ints to place the unit centered on the tile. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Unit
+ |
+
+
+
+ The Unit created + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
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 |
|
def change_ownership(...)
+
+
+ staticmethod
+
+
+¶Changes a unit's ownership to the given player.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit |
+
+ Unit | List[Unit]
+ |
+
+
+
+ The unit object which ownership will be changed + |
+ + required + | +
to_player |
+
+ int | PlayerId
+ |
+
+
+
+ The player that'll get ownership over the unit (using PlayerId enum) + |
+ + required + | +
AoE2ScenarioParser/objects/managers/unit_manager.py
337 +338 +339 +340 +341 +342 +343 +344 +345 +346 +347 +348 +349 +350 |
|
def clone_unit(...)
+
+¶Clones an existing unit with the adjusted variables. Everything except the initial unit is optional. +When arguments are provided, they will override the corresponding values in the cloned unit.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit |
+
+ Unit
+ |
+
+
+
+ The unit to clone + |
+ + required + | +
player |
+
+ int | PlayerId
+ |
+
+
+
+ The player to set the cloned unit to (If not provided, the original player will be used) + |
+
+ None
+ |
+
unit_const |
+
+ int
+ |
+
+
+
+ The unit you're placing (If not provided, the original unit constant will be used) + |
+
+ None
+ |
+
x |
+
+ float
+ |
+
+
+
+ The X coordinate of the cloned unit (If not provided, the original x coordinate will be used) + |
+
+ None
+ |
+
y |
+
+ float
+ |
+
+
+
+ The Y coordinate of the cloned unit (If not provided, the original y coordinate will be used) + |
+
+ None
+ |
+
z |
+
+ float
+ |
+
+
+
+ The Z coordinate of the cloned unit (If not provided, the original z coordinate will be used) + |
+
+ None
+ |
+
rotation |
+
+ float
+ |
+
+
+
+ The rotation of the cloned unit (If not provided, the original rotation will be used) + |
+
+ None
+ |
+
garrisoned_in_id |
+
+ int
+ |
+
+
+
+ The id of the garrisoned unit (If not provided, the original garrisoned id will be used) + |
+
+ None
+ |
+
animation_frame |
+
+ int
+ |
+
+
+
+ The animation frame of the cloned unit (If not provided, the original animation frame will be used) + |
+
+ None
+ |
+
status |
+
+ int
+ |
+
+
+
+ The status of the cloned unit (If not provided, the original status will be used) + |
+
+ None
+ |
+
reference_id |
+
+ int
+ |
+
+
+
+ Reference id of the cloned unit (If not provided, a new reference id will be generated) + |
+
+ None
+ |
+
tile |
+
+ Tile | Tuple[int, int]
+ |
+
+
+
+ The tile of the cloned unit (If not provided, the original x,y coordinates will be used) + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ Unit
+ |
+
+
+
+ The cloned unit + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
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 |
|
def filter_units_by(...)
+
+¶Filter units based on a given attribute of units
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
attr |
+
+ str
+ |
+
+
+
+ The attribute to filter by + |
+ + required + | +
unit_attrs |
+
+ List[int]
+ |
+
+
+
+ The values for the attributes to filter with + |
+ + required + | +
blacklist |
+
+ bool
+ |
+
+
+
+ Use the given constant list as blacklist instead of whitelist + |
+
+ False
+ |
+
player_list |
+
+ List[Union[int, PlayerId]]
+ |
+
+
+
+ A list of players to filter from. If not used, all players are used. + |
+
+ None
+ |
+
unit_list |
+
+ List[Unit]
+ |
+
+
+
+ A set of units to filter from. If not used, all units are used. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ List[Unit]
+ |
+
+
+
+ A list of units + |
+
Raises:
+Type | +Description | +
---|---|
+ AttributeError
+ |
+
+
+
+ If the provided attr does not exist on objects of the Unit class + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
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 |
|
def filter_units_by_const(...)
+
+¶Filter unit on their unit_const value.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_consts |
+
+ List[int]
+ |
+
+
+
+ The constants to filter with + |
+ + required + | +
blacklist |
+
+ bool
+ |
+
+
+
+ Use the given constant list as blacklist instead of whitelist + |
+
+ False
+ |
+
player_list |
+
+ List[Union[int, PlayerId]]
+ |
+
+
+
+ A list of players to filter from. If not used, all players are used. + |
+
+ None
+ |
+
unit_list |
+
+ List[Unit]
+ |
+
+
+
+ A set of units to filter from. If not used, all units are used. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ List[Unit]
+ |
+
+
+
+ A list of units + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
231 +232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 +249 +250 |
|
def filter_units_by_reference_id(...)
+
+¶Filter unit on their unit_const value.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
unit_reference_ids |
+
+ List[int]
+ |
+
+
+
+ The reference_ids to filter with + |
+ + required + | +
blacklist |
+
+ bool
+ |
+
+
+
+ Use the given constant list as blacklist instead of whitelist + |
+
+ False
+ |
+
player_list |
+
+ List[int]
+ |
+
+
+
+ A list of players to filter from. If not used, all players are used. + |
+
+ None
+ |
+
unit_list |
+
+ List[Unit]
+ |
+
+
+
+ A set of units to filter from. If not used, all units are used. + |
+
+ None
+ |
+
Returns:
+Type | +Description | +
---|---|
+ List[Unit]
+ |
+
+
+
+ A list of units + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 |
|
def find_highest_reference_id(...)
+
+¶Find the highest ID in the map. Searches through all units for the highest ID.
+ + +Returns:
+Type | +Description | +
---|---|
+ int
+ |
+
+
+
+ The highest ID in the map + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 |
|
def get_all_units(...)
+
+¶AoE2ScenarioParser/objects/managers/unit_manager.py
182 +183 +184 +185 +186 |
|
def get_new_reference_id(...)
+
+¶Get a new ID each time the function is called. Starting from the current highest ID.
+ + +Returns:
+Type | +Description | +
---|---|
+ int
+ |
+
+
+
+ The newly generated ID + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
352 +353 +354 +355 +356 +357 +358 +359 |
|
def get_player_units(...)
+
+¶Returns a list of UnitObjects for the given player.
+ + +Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ If player is not between 0 (GAIA) and 8 (EIGHT) + |
+
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
player |
+
+ int | PlayerId
+ |
+ - | ++ required + | +
AoE2ScenarioParser/objects/managers/unit_manager.py
171 +172 +173 +174 +175 +176 +177 +178 +179 +180 |
|
def get_units_in_area(...)
+
+¶Returns all units in the square with left corner (x1, y1) and right corner (x2, y2). Both corners inclusive.
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
x1 |
+
+ float
+ |
+
+
+
+ The X location of the left corner + |
+
+ None
+ |
+
y1 |
+
+ float
+ |
+
+
+
+ The Y location of the left corner + |
+
+ None
+ |
+
x2 |
+
+ float
+ |
+
+
+
+ The X location of the right corner + |
+
+ None
+ |
+
y2 |
+
+ float
+ |
+
+
+
+ The Y location of the right corner + |
+
+ None
+ |
+
tile1 |
+
+ Tile
+ |
+
+
+
+ The x,y location of the 1st corner as Tile Object + |
+
+ None
+ |
+
tile2 |
+
+ Tile
+ |
+
+
+
+ The x,y location of the 2nd corner as Tile Object + |
+
+ None
+ |
+
unit_list |
+
+ List[Unit]
+ |
+
+
+
+ (Optional) A list of units (Defaults to all units in the map, including GAIA (Trees etc.) + |
+
+ None
+ |
+
players |
+
+ List[Union[int, PlayerId]]
+ |
+
+
+
+ (Optional) A list of Players which units need to be selected from the selected area + |
+
+ None
+ |
+
ignore_players |
+
+ List[PlayerId]
+ |
+
+
+
+ (Optional) A list of Players which units need to be ignored from the selected area + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValueError
+ |
+
+
+
+ if not all 4 (x1, y1, x2 and y2) are used simultaneously. +Or if both (tile1 and tile2) are not used simultaneously. +Or if any of the 4 (x1, y1, x2, y2) is used together with any of (tile1, tile2). Use one or the other. +Or if players and ignore_players are used simultaneously. + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
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 +298 +299 +300 +301 +302 +303 +304 +305 +306 +307 +308 +309 +310 +311 +312 +313 +314 +315 +316 +317 +318 +319 +320 +321 +322 +323 +324 +325 +326 +327 +328 +329 +330 +331 +332 +333 +334 +335 |
|
def remove_eye_candy(...)
+
+¶AoE2ScenarioParser/objects/managers/unit_manager.py
398 +399 +400 |
|
def remove_unit(...)
+
+¶Removes a unit. Please note that unit=...
is a lot faster than reference_id=...
due to reference_id having
+to search through all units on the map. And unit has an ownership (player) attribute which is used for knowing
+which list to remove the unit from.
Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
reference_id |
+
+ int
+ |
+
+
+
+ The id of the unit. Note that this is NOT a unit constant (So NOT: UnitInfo.ARCHER) + |
+
+ None
+ |
+
unit |
+
+ Unit
+ |
+
+
+
+ The Unit object to be removed. + |
+
+ None
+ |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 |
|
def update_unit_player_values(...)
+
+¶Function to update all player values in all units. Useful when units are moved manually (in mass).
+ + + + + +AoE2ScenarioParser/objects/managers/unit_manager.py
53 +54 +55 +56 +57 |
|
def create_id_generator(...)
+
+¶Create generator for increasing value
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
start_id |
+
+ int
+ |
+
+
+
+ The id to start returning + |
+ + required + | +
Returns:
+Type | +Description | +
---|---|
+ Generator[int]
+ |
+
+
+
+ A generator which will return a +1 ID value for each time called with next. + |
+
AoE2ScenarioParser/objects/managers/unit_manager.py
416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 |
|
UnitManagerDE
+
+
+¶
+ Bases: UnitManager
Manager of all DE unit related features
+ +AoE2ScenarioParser/objects/managers/de/unit_manager_de.py
7 + 8 + 9 +10 +11 |
|
def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
_player_units |
+
+ List[PlayerUnits]
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/de/unit_manager_de.py
10 +11 |
|
XsManagerDE
+
+
+¶
+ Bases: AoE2Object
Manager of everything XS related.
+ +AoE2ScenarioParser/objects/managers/de/xs_manager_de.py
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 |
|
script_name
+
+
+ property
+ writable
+
+
+¶The XS script name to include in the scenario
+xs_trigger
+
+
+ property
+ writable
+
+
+¶The trigger holding the script call effect holding all the XS
+def __init__(...)
+
+¶Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
script_name |
+
+ str
+ |
+ - | ++ required + | +
kwargs |
+ + ? + | +- | +
+ {}
+ |
+
AoE2ScenarioParser/objects/managers/de/xs_manager_de.py
21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 |
|
def add_script(...)
+
+¶Add a script to the script call effect in the XS trigger
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
xs_file_path |
+
+ str
+ |
+
+
+
+ Path to an XS file + |
+
+ ''
+ |
+
xs_string |
+
+ str
+ |
+
+
+
+ Raw XS + |
+
+ ''
+ |
+
AoE2ScenarioParser/objects/managers/de/xs_manager_de.py
91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 |
|
def initialise_xs_trigger(...)
+
+¶Creates the XS trigger on a desired location. If you don't care about the location, the add_script()
function
+adds the trigger when calling it the first time too.
If you want the trigger to be (almost) at the top of the list, and you're reading a scenario with barely any to +no triggers, it is recommended to call this somewhere at the start of the script.
+Insert index is used to move this trigger to a desired index. +Keep in mind that moving triggers like this might take some time when you have a lot of triggers (thousands).
+ + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
insert_index |
+
+ int
+ |
+
+
+
+ The index where the xs trigger is added. Will be added at the end of the list if left empty + |
+
+ -1
+ |
+
AoE2ScenarioParser/objects/managers/de/xs_manager_de.py
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 |
|