---
title: "PSTEE Identifiers : stats.ids"
---
stats.ids
This file enumerates the stats that can be checked for creatures using the following triggers:
For use with the ChangeStat() action.
The creature's Current Hit Points. Note that it can only be checked in
SPLPROT.2DA as 'STAT' 0. As a result, you can use it in opcodes
#318,
#324,
#326 but not in scripts/dialogs.
The creature's Maximum Hit Points.
- This stat is the lower bound for avoiding a morale failure.
- If
Morale
is lower than this value, morale failure occurs, if Morale
is higher, any morale failure is removed.
- A value of
0
is effectively immune to morale failure though.
- No creature has a
Morale break
value higher than 10
as they would always be in morale failure.
{% capture note %}
{% endcapture %}
{% include note.html %}
Morale recovery
is the period of time (should be seconds) it takes to recover some amount of Morale
naturally (towards a value of 10
, from a higher or lower value).
- It's unknown what's going on internally though, as it's not consistent, and even the details given by
CTRL+M
don't update Morale
in real-time.
-
The current visual range of the creature (i.e. the field of vision which clears the fog of war) and the script activation radius (how far away the creature be 'seen' by the AI). The default value is
14
.
- Visual range is is limited
0–15
, script activation range is limited 0–24
.
- The Blindness effect sets this value to
2
.
- Modified by opcode #262.
Set by
opcode #292. Note: although Barbarians are immune to backstab, they do not have this stat set. Their immunity to backstabs is hardcoded in their
KitID
Set by
opcode #314 – It can also be set by
opcode #282 though is not officially supported, setting it this way provides all the benefits of stoneskin, but it does not decrement, nor does it provide the "stone" overlay color.