GAE/Self building

From MegaGlest
Jump to: navigation, search

Self building is a method of letting a building finish constructing itself. Its main purpose is to be used in combination to the transform command (which allows a unit to morph into a building) by allowing this new building to finish constructing itself (otherwise it will need to be repaired with a repair command).

XML[edit]

<skill>
	<type value="build_self"/>
	<name value="build_self_skill" />
	<ep-cost value="0"/>
	<speed value="300"/>
	<anim-speed value="300"/>
	<animation path="models/defense_tower_construction.g3d"/>
	<sound enabled="false"/>			
</skill>
 
<command>
	<type value="build-self"/>
	<name value="build_self" tip="under_construction"/>
	<display value="false"/>
	<image path="images/none.bmp"/>
	<unit-requirements/>
	<upgrade-requirements/>
	<build-self-skill value="build_self_skill"/>
</command>

Documentation[edit]

Build self skills and commands work largely like the regular be-built skill and generic commands. However, note the type elements as well as the difference between the type value attributes ("build_self" in the skill, "build-self" in the command).

display[edit]

Whether or not to display an button to perform this self building. If false, it will be done automatically, but always last priority (bottom of the queue).

See also[edit]