BattleDetection¶
Examples¶
Example¶
XML Elements¶
The following elements can be used within this component:
BattleDetection¶
TimerInterval¶
Duration of one timer period. Interval over which damage should be recorded in milliseconds
Type: positive integer (e.g. 1 or 5)
Path: BattleDetection/TimerInterval
RecordLength¶
Record length. Number of timer cycles over which damage rate should be calculated
Type: positive integer (e.g. 1 or 5)
Path: BattleDetection/RecordLength
DamageRateThreshold¶
Damage rate at which alertness is increased
Type: positive decimal
Path: BattleDetection/DamageRateThreshold
AlertnessBattleThreshold¶
Alertness at which the player is considered in battle
Type: positive decimal
Path: BattleDetection/AlertnessBattleThreshold
AlertnessPeaceThreshold¶
Alertness at which the player is considered at peace
Type: non-negative decimal
Path: BattleDetection/AlertnessPeaceThreshold
AlertnessMax¶
Maximum alertness level
Type: positive decimal
Path: BattleDetection/AlertnessMax
RELAX NG Grammar¶
<define name="component.BattleDetection">
<element name="BattleDetection">
<interleave>
<element name="TimerInterval">
<data type="positiveInteger"/>
</element>
<element name="RecordLength">
<data type="positiveInteger"/>
</element>
<element name="DamageRateThreshold">
<ref name="positiveDecimal"/>
</element>
<element name="AlertnessBattleThreshold">
<ref name="positiveDecimal"/>
</element>
<element name="AlertnessPeaceThreshold">
<ref name="nonNegativeDecimal"/>
</element>
<element name="AlertnessMax">
<ref name="positiveDecimal"/>
</element>
</interleave>
</element>
</define>