forked from octgn/OCTGN
-
Notifications
You must be signed in to change notification settings - Fork 0
Counter Definition
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.
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.)
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" />