UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2) IP: 64.81.113.168 URI: http://wesnoth.slack.it/?UnitWML - - - - - Index: UnitWML =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/UnitWML,v retrieving revision 1.26 diff -u -r1.26 UnitWML --- UnitWML 2 Jul 2005 03:03:02 -0000 1.26 +++ UnitWML 3 Jul 2005 14:53:31 -0000 @@ -3,14 +3,12 @@ Each ||[unit]|| tag defines one unit type. The following key/tags are recognized: -* //id// the value that must be entered in a ||type|| - key to describe this unit type. +* //id// the value of the //type// key for units of this type. + //type// keys are found in SingleUnitWML and FilterWML. * //name// (translatable) displayed in the Status Table for units of this type. -* //race// used in standard unit filter (see FilterWML). - Also a shortcut to the keys //num_traits//, //markov_chain_size//, - //not_living//, //male_names//, and //female_names// - (see UnitsWML for information on shortcuts). +* //race// See ||[race]||, UnitsWML. + Also used in standard unit filter (see FilterWML). * //num_traits// the number of traits that units of this type should receive when they are recruited, overriding the value set in the [race] tag. @@ -56,22 +54,25 @@ * 'healer' Specialty 'heals' or 'cures'. * //unit_description// (translatable) the text displayed in the unit descriptor box for this unit. Default 'No description available...'. -* //movetype// a shortcut to the tags ||[movement_costs]||, ||[defense]||, - and ||[resistance]||, and to the keys //flies//, . - See UnitsWML for information on shortcuts. -* ||[movement_costs]|| describes how fast the unit moves on different - terrains. Takes any string as a key. The attribute - ||//terrain//=//speed//|| makes the unit use //speed// move - points to move onto terrain with ||name=//terrain//||. -* ||[defense]|| describes how likely the unit is to be hit on different - terrains. The attribute ||//terrain//=//defense//|| makes the unit - have a //defense// % chance to be hit in terrain with ||name=//terrain//||. -* ||[resistance]|| describes how much damage the unit takes from - different types of attacks. The attribute ||//type//=//resistance//|| - makes the unit take //resistance// % damage from attacks - with ||type=//type//|| (See AttackWML). -* //flies// is either //true// or //false//. - A unit that flies does not have its height adjusted for different terrains. +* //movetype// See ||[movetype]||, UnitsWML. +Note that the tags ||[movement_costs]||, ||[defense]||, and ||[resistance]|| +can be used to modify this movetype. +After max level advancement support is not used in standard Wesnoth, +but you can add this tag into standard Wesnoth units: +* ||[advancement]|| describes what happens to a unit when it reaches the XP required for advancement. + It is considered as an advancement in the same way as advancement described by //advanceto//; + however, if the player chooses this advancement, + the unit will have one or more effects applied to it instead of advancing. + After max level advancement is not used in standard Wesnoth, + but can be added to standard Wesnoth units. + * //id// normal internationalization id. + * //description// a description (see DescriptionWML) displayed as the option for this advancement +if there is another advancement option that the player must choose from; +otherwise, the advancement is chosen automatically and this key is irrelevant. + * //max_times// default 1. + The maximum times the unit can be awarded this advancement. + * ||[effect]|| A modification applied to the unit whenever this advancement is chosen. + See EffectWML The [unit] tag also recognizes the tag ||[attack]||, which is an attack for the unit. @@ -124,23 +125,6 @@ The frames before time 0 are used before the actual teleport takes place, the ones after are displayed after (at the new location). - -After max level advancement support is not used in standard Wesnoth, -but you can add this tag into standard Wesnoth units: -* ||[advancement]|| describes what happens to a unit when it reaches the XP required for advancement. - It is considered as an advancement in the same way as advancement described by //advanceto//; - however, if the player chooses this advancement, - the unit will have one or more effects applied to it instead of advancing. - * //id// normal internationalization id. - * //description// a description (see DescriptionWML) displayed as the option for this advancement -if there is another advancement option that the player must choose from; -otherwise, the advancement is chosen automatically and this key is irrelevant. - * //max_times// default 1. - The maximum times the unit can be awarded this advancement. - * ||[effect]|| A modification applied to the unit whenever this advancement is chosen. - See EffectWML - - ||See Also|| * AttackWML * ReferenceWML
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
