Editing XML/Commands
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 386: | Line 386: | ||
<move-skill value="move_skill" /> | <move-skill value="move_skill" /> | ||
<attack-skill value="attack_skill" /> | <attack-skill value="attack_skill" /> | ||
− | |||
</command> | </command> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 452: | Line 451: | ||
===attack-skill=== | ===attack-skill=== | ||
The name of the attack skill to use. | The name of the attack skill to use. | ||
+ | |||
+ | ==Transform== | ||
+ | <syntaxhighlight lang="xml"> | ||
+ | <!-- Start GAE Only --> | ||
+ | <command> | ||
+ | <type value="transform"/> | ||
+ | <name value="transform" tip="tip_name" /> | ||
+ | <image path="images/image.bmp" /> | ||
+ | <unit-requirements> | ||
+ | <unit name="my_unit" /> | ||
+ | </unit-requirements> | ||
+ | <upgrade-requirements> | ||
+ | <upgrade name="my_upgrade" /> | ||
+ | </upgrade-requirements> | ||
+ | <morph-skill value="morph_skill"/> | ||
+ | <move-skill value="move_skill"/> | ||
+ | <position x="0" y="0"/> | ||
+ | <rotation value="0" /> | ||
+ | <morph-units> | ||
+ | <morph-unit name="farm" /> | ||
+ | </morph-units> | ||
+ | <hp-policy value="maintain" /> | ||
+ | </command> | ||
+ | <!-- End GAE Only --> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Transform works like morph, but instead of morphing into a similar mobile unit, it can be used for morphing into buildings. | ||
+ | |||
+ | ===type=== | ||
+ | The type of the command, in this case, build-self. The <tt>tip</tt> attribute is an optional GAE-only value that will reference the keyword used as a tooltip. | ||
+ | |||
+ | ===name=== | ||
+ | The name of the command, as seen ingame. GAE can translate these with separate language files as well. | ||
+ | |||
+ | ===image=== | ||
+ | Path to the image which will be used as an icon to initiate the command. | ||
+ | |||
+ | ===unit-requirements=== | ||
+ | A list of units that must exist before this command can be used. For example, you might have to construct a testing lab before you can start throwing grenades. | ||
+ | |||
+ | ===upgrade-requirements=== | ||
+ | A list of upgrades that must exist before this command can be used. For example, you might have to perform a training field upgrade before you could use a more advanced skill. | ||
+ | |||
+ | ===morph-skill=== | ||
+ | Name of the morph skill. | ||
+ | |||
+ | ===move-skill=== | ||
+ | Name of the move skill. | ||
+ | |||
+ | ===position=== | ||
+ | Allows the position of where the building will be placed relative to the unit to be tweaked. | ||
+ | |||
+ | ===rotation=== | ||
+ | Allows the rotation of building, in degrees, to be tweaked. 0 is facing north. | ||
+ | |||
+ | ===morph-units=== | ||
+ | A list of the units that can be morphed into. | ||
+ | |||
+ | ===hp-policy=== | ||
+ | Either <tt>set-to-one</tt> (the new building will have 1 HP), <tt>reset</tt> (use the default behaviour, the new building will have 5% of max HP), or <tt>maintain</tt> (keep the original unit's HP, clamped to the new unit's max HP). | ||
==See also== | ==See also== |