GlobalVariable: random-events
method-list
This variable is a list of random event methods that will be run at the end of each turn. The list is not ordered.
Attrition is the automatic loss of hit points due to being in certain types of terrain.
Method: attrition-in-terrain
For every unit not in a transport, this method computes the chance to lose hit points, then damages the unit accordingly. This method runs once per turn.
Table: attrition
u t -> .01hp
This table is the rate of loss of hp per turn.
The terrain used is cell or connection terrain as appropriate for
the unit's position.
Defaults to 0
.
Accidents result in the damage or disappearance of a unit in the open in some kinds of terrain.
Method: accidents-in-terrain
For every unit not in a transport, this method computes the chance to be hit or to vanish completely. This method runs once per turn.
Table: accident-hit-chance
u t -> .01n%
This table is the chance of the unit being hit while in the given terrain.
Defaults to 0
.
Table: accident-damage
u t -> hp
This table is the hp that will be lost in an accident.
Defaults to 0
.
Table: accident-vanish-chance
u t -> .01n%
This table is the chance of the unit simply vanishing while in the given terrain.
Defaults to 0
.
Revolt is a spontaneous change of side, occurring in place of a side-given unit action. The new side may be none (independence) or another side.
Method: units-revolt
For each completed unit, this method decides whether the unit revolts, then changes its side.
UnitTypeProperty: revolt-chance
.01n%
This property is the chance for the unit to revolt spontaneously.
Defaults to 0
.
Method: units-surrender
For each completed unit, this method checks whether the unit will surrender to a nearby unfriendly unit.
Table: surrender-chance
u1 u2 -> .01n%
This table is the chance that a unit of type u1 will change its side
to match the side of a unit u2 that is within the surrender-range
for the two types.
Defaults to 0
.
Table: surrender-range
u1 u2 -> dist
This table is the distance out to which a unit of type u1
will surrender to a unit of type u2.
Defaults to 1
.