Changes between Initial Version and Version 1 of XML.Entity.Actions.Attack


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

--

Legend:

Unmodified
Added
Removed
Modified
  • XML.Entity.Actions.Attack

    v1 v1  
     1An object with this ability is able to attack opponents or wild animals.
     2
     3'''Example:'''
     4
     5{{{
     6   <Actions>
     7      <Attack
     8         damage="13"
     9         crush="0"
     10         hack="0.5"
     11         pierce="0.5"
     12         accuracy="0.8"
     13         range="5"
     14         rangemin="1"
     15         speed="150"
     16         splashdamage="0.2"
     17         splashradius="2"
     18         bonus=""
     19         primary=""
     20         secondary=""
     21      />
     22   </Actions>
     23}}}
     24
     25----
     26
     27= Accuracy =
     28'''Not yet implemented.''' 
     29''BRIEF DESCRIPTION ::''Attack Accuracy.
     30
     31This specifies the % accuracy of the damage value, in a range from 0 to 1.  When an entity attacks, does it land its attack with every attack cycle?  If so, the value is 1 (100%).  This is typical for melee attacks. 
     32
     33However, ranged units have a chance to miss with their attacks.  Archers have the lowest accuracy of the ranged units, followed by Javelinists and Slingers.
     34
     35Of the siege weapons, the Onager (intended for structures) is more accurate than the Ballista (intended for units).
     36
     37= Damage =
     38''BRIEF DESCRIPTION ::''Value of Attack.
     39
     40You could view attack as the value of hitpoint removal from another entity.  The higher the value, the greater number of hitpoints are removed.
     41
     42If the opposing unit's armour exceeds the attacking unit's damage, then by default, it always removes one hitpoint when an attack has landed.
     43
     44All Citizen Soldiers start out with relatively low attacks and increase their attack strength as they are promoted. 
     45
     46Heroes, Super Units, and Siege Weapons have a higher level attack because they arrive late in the game, and do not gain ranks.
     47
     48The total value of damage is actually a sum of three damage types (crush, hack, and pierce).  The values of the attack types are a percent of the ('total') damage.  Here is an example:
     49
     50Say a unit has these values for Action.Attack :
     51
     52damage = 11
     53crush = 10%
     54hack = 60%
     55pierce = 30%
     56
     57If we calculated the actual damage as it is rationed out to the 3 types, it would be:
     58
     59Crush = 1.1
     60Hack = 6.6
     61Pierce = 3.3
     62
     63The sum of the percentage of the three attack types may never exceed 100%.
     64
     65= Crush =
     66''BRIEF DESCRIPTION ::''Percentage of Attack that is crush.
     67
     68Crush attack is effective against objects that have little or no crush armour.  Crush attack is typically associated with attacking structures, siege weapons, or ships.
     69
     70= Hack =
     71''BRIEF DESCRIPTION ::''Percentage of Attack that is hack.
     72
     73Hack attack is effective against objects that have little or no hack armour.  Hack attack is typically associated with objects that use a melee attack, hand to hand combat, or large blunt weapons.
     74
     75= Pierce =
     76''BRIEF DESCRIPTION ::''Percentage of Attack that is pierce.
     77
     78Pierce attack is effective against objects that have little or no pierce armour.  Pierce attack is typically associated with objects that use a ranged attack, distance combat, or small pointy weapons.
     79
     80= Range =
     81''BRIEF DESCRIPTION ::''Range Value for units that may attack from a distance.
     82
     83Range is the ability of an object to attack from a distance.  This is the maximum range of the attack.  It usually is smaller or equal to a unit's line of sight.  There is an accompanying projectile that is launched from the object, and when that projectile hits another object, it causes damage.
     84
     85Archers have the greatest range, followed by Slingers, and then Javelinists. As for the siege weapons, the Ballista has the longest range - followed by the Onager.
     86
     87Range values are based on terrain distance.
     88
     89= !RangeMin =
     90'''Not yet implemented.''' 
     91''BRIEF DESCRIPTION ::''Object cannot use its ranged attack if its target is less than this value.
     92
     93Range Minimum is an attribute that will not allow a unit to attack when the opposing entity is very close to the entity.  This is intended to make the ranged entities have a more skirmish nature and stop ranged entities from firing arrows/javelins/slings at point blank range.
     94
     95Range values are based on terrain distance.
     96
     97= Speed =
     98''BRIEF DESCRIPTION ::''Rate of attack.
     99
     100This is how fast an entity can attack.  Basically this is how fast the attack animation plays.  Each time the animation repeats it attacks.  The more frequent the attacks, the more hitpoints it can remove at a given time.
     101
     102= !SplashDamage =
     103'''Not yet implemented.''' 
     104''BRIEF DESCRIPTION ::''What percentage (range 0..1) of the attack damage is inflicted on the area around the damaged opponent?
     105
     106Note that splash damage could inflict damage upon hitpoint entities that the entity might not normally be able to attack (such as trees).
     107
     108= !SplashRadius =
     109'''Not yet implemented.''' 
     110''BRIEF DESCRIPTION ::''How wide is the area of splash damage?
     111
     112Measured as the number of tiles of the radius around the point of impact.
     113
     114= !SpecialAttack =
     115'''Not yet implemented.''' 
     116''BRIEF DESCRIPTION ::''The entity's weapon performs some special effect in addition to inflicting damage. This is specified by string ID. Options are:
     117
     118 * ''Fire:'' Does additional damage to units (not as much to Structures) by setting them afire and causing hitpoints to degrade for a period of time (unless healed/repaired in a timely manner).
     119
     120= Primary =
     121'''Not yet implemented.''' 
     122''BRIEF DESCRIPTION ::''The primary preferred victim of this entity's attack.
     123
     124Will seek this Id.Type out for attack.
     125
     126= Secondary =
     127'''Not yet implemented.''' 
     128''BRIEF DESCRIPTION ::''The secondary preferred victim of this entity's attack.
     129
     130Will seek this Id.Type out for attack.
     131
     132= Bonus =
     133'''Not yet implemented.''' 
     134''BRIEF DESCRIPTION ::''The value of the attack bonus on the secondary and primary victim.
     135
     136Variable; as the unit's rank get higher, so does its bonus.
     137
     138----
     139
     140[[Image(http://www.wildfiregames.com/~gamedesign/dd/interactions5.gif)]]
     141
     142''How do we give players an assortment of units that are unique in their own right but at the same time do not overpower one another? We need to maintain balance to make the game not just fair� but the more variety you have, the more strategies and tactics you have. You empower the players with different offensive options, and in turn more options to respond defensively.''
     143
     144''We use a system that encourages each unit to have a primary and secondary preferred target.  This forces the entities (if left uncontrolled) to fight in an efficient manner.  So you don't have the frustration you feel when you leave a swordsman unattended - he attacks a structure while there is a spearman stabbing him in the back.''
     145
     146''What this does do is that it singles out what unit they would choose to attack under the control of the AI. The attack priority would be something like this:''
     147
     148 * ''Attack units you were commanded to attack by the human player''
     149 * ''Attack units that are attacking you''
     150 * ''Attack units that you are bonused to attack''
     151 * ''Attack any enemy in LOS''