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.24 diff -u -r1.24 UnitWML --- UnitWML 22 Jun 2005 12:30:51 -0000 1.24 +++ UnitWML 2 Jul 2005 00:40:39 -0000 @@ -25,10 +25,20 @@ * //hitpoints// the maximum HP that the unit has, and the HP it has when it is created. * //movement// the number of move points that this unit recieves each turn. -* //experience//, //advanceto// When this unit has experience equal to - //experience//, it is replaced by a unit of the type that the value of +* //experience//, //advanceto// When this unit has experience greater than or equal to + //experience//, it is replaced by a unit with 0 experience of the type that the value of //advanceto// refers to. All modifications that have been done to the unit are applied to the unit it is replaced by. +* ||[advancefrom]|| allows a campaign-specific unit to be spliced into an already existing advancement tree. + It should generally be used only inside a campaign ifdef, to prevent changes to other campaigns. + This tag makes changes to the //advanceto// and //experience// keys + of a base unit to make it advance into this unit. It takes these keys: + * //unit// the id of the base unit from which this unit advances. + This adds the unit into the list of units which //unit// can advance into. + * //experience// is optional. + If present and lower than the experience already required for the base unit to advance, + then the experience to advance is lowered. + Note: this will also lower the experience required to advance to other units which the base unit can advance into. * //cost// when a player recruits a unit of this type, the player loses //cost// gold. If this would cause gold to drop below 0, the unit cannot be recruited. @@ -63,15 +73,6 @@ with ||type=//type//|| (See AttackWML). * //flies// is either //true// or //false//. A unit that flies does not have its height adjusted for different terrains. -* ||[advancefrom]|| allows a unit to be spliced into the advancement tree. - This tag is the converse of the ||//advanceto=//|| key and makes changes - to the base unit from which this unit advances. It takes these keys: - * //unit// the id of the base unit from which this unit advances. - This will work as if the base unit had an ||//advanceto=//|| tag - pointing to this unit. - * //experience// is optional. If present and lower than the experience - already required for the base unit to advance, then the experience - to advance is lowered. The [unit] tag also recognizes the tag ||[attack]||, which is an attack for the unit.
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
