Skip to content
drilus edited this page Apr 19, 2012 · 2 revisions

Counters are numeric fields used to keep track of game statistics. They can either be separate to every player or shared among them.

Definition Format

The tag defines a Counter by specifying the following attributes:

  • name (The name displayed when the user places the mouse cursor over the counter icon.)
  • icon (An image resource for this counter. 16x16 Pixels)
  • default (The starting value for this counter. Defaults to 0 is not defined.)
  • reset (Boolean, defaults to true. Indicates whether the counter value is set to its initial value again during a game reset.)

Example

These are some example counters like a "Blue Moon" game module might define them.

     <counter name="Crystals" icon="r02" reset="false" />
     <counter name="Red Dragon" icon="r03" />
     <counter name="Green Dragon" icon="r04" />
     <counter name="Blue Dragon" icon="r05" default="0" />
Clone this wiki locally