Many
games use an element of chance to change game
relationships. A good example of this is seen in most
combat algorithms. Here is an explanation of how the
combat algorithm works in WarCra II.1
Each unit in the game has four properties that
determine how e?¬? ective it is in combat.
?· Hit Points: These indicate how much damage the
unit can take before dying.
?· Armor: This number re?¬‚ ects not only armor
worn by the unit, but also its innate resistance to
damage.
?· Basic Damage: This is how much normal damage
the unit can in?¬‚ ict every time it a acks. Basic
damage is lowered by the target??™s armor rating.
?· Piercing Damage: This re?¬‚ ects how e?¬? ective the
unit is at bypassing armor. (Magical a acks, like
dragon??™s breath and lightning, ignore armor.)
When one unit a acks another, the formula used
to determine damage is: (Basic Damage - Target??™s
Armor) + Piercing Damage = Maximum Damage
In?¬‚ icted. The a acker does a random amount of
damage from 50??“100% of this total each a ack. To
see how this algorithm tends to introduce chance
into the relationship between objects, or units as we
have been calling them, let??™s look at an example from
the strategy guide on Ba le.
Pages:
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313