GAE/Pets

From MegaGlest
Revision as of 08:29, 20 November 2011 by Hofmic (talk) (See also: Categorization)
Jump to: navigation, search

A pet is a unit that will guard their master when idle, will attack the position of their master and will die when their master dies. The restriction on the number of pets a unit can have is specified in the produce skill. Each maximum pet restriction applies to the unit type of the pet, not the total number of pets.

XML

<skill>
	<type value="produce"/>
	<name value="summon_pet"/>
	<ep-cost value="5"/>
	<speed value="75"/>
	<anim-speed value="100"/>
	<animation path="animation.g3d"/>
	<sound enabled="true" start-time="0.3">
		<sound-file path="sound.wav"/>
	</sound>
	<pet value="true" max="4"/>
</skill>

Elements

This is the same as any standard produce skill with the exception of one element.

pet

This is the tag that disambiguates pets from regular units. By having it true, the unit will be a pet. The max attribute is the maximum number of that pet each master can have.

Limitations

You can currently only specify a maximum number of each individual type of pet, not a limitation on the total number of pets, as a whole.

See also