Changes between Initial Version and Version 1 of XML.Entity.Traits.Promotion


Ignore:
Timestamp:
Feb 23, 2008, 4:19:00 AM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XML.Entity.Traits.Promotion

    v1 v1  
     1An entity with this trait can accumulate experience points (see Traits.Loot.XP) and eventually accumulate enough to gain a promotion. This basically replaces him with a more advanced version of the unit.
     2
     3Only Basic and Advanced Infantry Citizen Soldiers and Cavalry Citizen Soldiers have this ability.
     4
     5'''Example:'''
     6
     7{{{
     8        <Traits>
     9                <Promotion>
     10                        req="900"
     11                        newentity="bob"
     12                </Promotion>
     13        </Traits>
     14}}}
     15----
     16
     17= Req =
     18''BRIEF DESCRIPTION ::'' The number of Upgrade Points that the entity must accumulate in order to be promoted.
     19
     20Generally this is ''600'' for Infantry and ''900'' for Cavalry.
     21
     22An internal variable '''Traits.Promotion.Curr''' is initialised to zero when an entity has this property. It counts the number of XP that the entity has accumulated, and is reset to zero when the entity is promoted.
     23
     24An internal variable '''Traits.Promotion.Rank''' also keeps track of the numeric rank of the entity.
     25
     26 * 0: Default. Has no rank and will never have a rank (most units, gaia entities, etc).
     27 * 1: Basic. Units that can gain ranks start at this level.
     28 * 2: Advanced: First promotion.
     29 * 3: Ultimate: Second promotion.
     30
     31= !NewEntity =
     32''BRIEF DESCRIPTION ::'' This is the entity name of the replacement entity this entity will become when the pre-requisites for transformation are met.
     33
     34Note that this property does not need to be specified if the replacement entity uses the same naming convention of the current entity. For example, if !NewEntity is not specified, entity name_b will be replaced with name_a, and name_a with name_e.
     35
     36= Notes: Experiential Upgrade System =
     37
     38Citizen Soldiers have the unique ability to gain ranks and become more powerful as they gain experience while 'surviving' in the game world. The reasons why we are doing this is the following:
     39
     40 * ensures that the player's most basic units can still serve a purpose in the late game.
     41 * attachment to individual units to encourage the player to avoid 'cannon fodder' military tactics
     42 * minimise the number of 'upgrade techs' for an automated upgrade system
     43 * emulates real life experience (gain skill the more you do something)
     44 * fluid and dynamic, keeping with the vision of the 'slice in time' concept
     45
     46== Upgrade Ranks ==
     47
     48A rank is the level of promotion a Citizen Soldier has achieved. With each automatic upgrade to a new rank, the unit gains bonuses to his statistics (by pointing to a new entity with an entirely new set of statistics).
     49
     50In general, higher-ranking units are stronger in combat, but weaker in economic tasks such as gathering resources than lower-ranking units.
     51
     52 * Basic: The starting rank.
     53 * Advanced: The second rank.
     54 * Ultimate (Elite in code terms): The final rank.
     55
     56== Upgrade Appearance ==
     57
     58To determine the rank of Citizen Soldiers at a glance, without the need for cluttering rank icons over units, we will use the following convention:
     59
     60 * Basic: poorest rank, little to no armour, elementary weapons, avoid helmets.
     61 * Advanced: medium class, some armour, average weapons, helmet.
     62 * Ultimate: richest class, lots of armour, finest weapons, helmet with decoration.
     63
     64'''Note:''' The history and graphics departments have studied literally hundreds of pics of all kinds of units; this was the most visible, recognisable standardisation of uniform that we could produce for such a wide variety of units, while still retaining a degree of realism.
     65
     66== Gaining Experience ==
     67
     68A Citizen Soldier must acquire a certain quantity of points in order to gain a rank.
     69
     70Once a Citizen Soldier accumulates the necessary number of experience points, we perform an entity swap (''!NewEntity'') and clean slate of points.
     71
     72Citizen Soldiers gain experience in two methods: automatically over a period of time (slow), and by participating in combat.
     73
     74''Time''
     75
     76Citizen Soldiers automatically gain upgrade points for as long as they survive, at a continuous rate of 1 point per second.
     77
     78''Battle''
     79
     80Each unit has a point value (''!UpPoints''). A Citizen Soldier gains this bonus to his upgrade when he makes the kill.
     81
     82'''NOTE: Attacking animals does not count toward points.'''