The Glest Wiki
(Created)
 
(→‎See also: Categorization)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
   
 
==XML==
 
==XML==
  +
<syntaxhighlight lang="xml">
<skill>
+
<skill>
<type value="move"/>
 
<name value="teleport_skill"/>
+
<type value="move"/>
<ep-cost value="100"/>
+
<name value="teleport_skill"/>
<speed value="250"/>
+
<ep-cost value="100"/>
<anim-speed value="100"/>
+
<speed value="250"/>
<[[#visible-only|visible-only]] value="true"/>
+
<anim-speed value="100"/>
  +
<visible-only value="true"/>
<animation path="models/archmage_walking.g3d"/>
+
<animation path="models/archmage_walking.g3d"/>
<sound enabled="false"/>
+
<sound enabled="false"/>
</skill>
+
</skill>
   
<command>
+
<command>
<[[#type|type]] value="teleport"/>
+
<type value="teleport"/>
<name value="teleport"/>
+
<name value="teleport"/>
<image path="images/magic_teleport.bmp"/>
+
<image path="images/magic_teleport.bmp"/>
<unit-requirements/>
+
<unit-requirements/>
<upgrade-requirements/>
+
<upgrade-requirements/>
<move-skill value="teleport_skill"/>
+
<move-skill value="teleport_skill"/>
</command>
+
</command>
  +
</syntaxhighlight>
   
 
==Elements==
 
==Elements==
Line 34: Line 36:
 
*[[GAE/Features|List of GAE features]]
 
*[[GAE/Features|List of GAE features]]
 
[[Category:GAE]]
 
[[Category:GAE]]
  +
[[Category:Detailed feature pages]]

Latest revision as of 06:28, 20 November 2011

Teleportation is a GAE feature that allows a unit to instantly move anywhere on the map. It uses a skill similar to move but without need to take the time to move there.

XML[]

<skill>
	<type value="move"/>
	<name value="teleport_skill"/>
	<ep-cost value="100"/>
	<speed value="250"/>
	<anim-speed value="100"/>
	<visible-only value="true"/>
	<animation path="models/archmage_walking.g3d"/>
	<sound enabled="false"/>
</skill>

<command>
	<type value="teleport"/>
	<name value="teleport"/>
	<image path="images/magic_teleport.bmp"/>
	<unit-requirements/>
	<upgrade-requirements/>
	<move-skill value="teleport_skill"/>
</command>

Elements[]

Most of the XML elements are the same as on the move skill with a few exceptions.

visible-only[]

This limits the teleportation to visible areas (that is, where your units currently have in their sights, or the entire map if fog of war and the shroud of darkness are both off). If off, the unit can teleport anywhere, visited or not.

type[]

In order to be recognized as a teleport skill instead of a move skill, the command must explicitly state the type as "teleport".

See also[]