--- title: "PSTEE Identifiers : stats.ids" ---
stats.ids

This file enumerates the stats that can be checked for creatures using the following triggers:
CheckStat()
CheckStatGT()
CheckStatLT()

For use with the ChangeStat() action.

0 CURHITPOINTS
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.

1 MAXHITPOINTS
The creature's Maximum Hit Points.

2 ARMORCLASS
Set by opcode #0

3 ACCRUSHINGMOD
Set by opcode #0

4 ACMISSILEMOD
Set by opcode #0

5 ACPIERCINGMOD
Set by opcode #0

6 ACSLASHINGMOD
Set by opcode #0

7 THAC0
Set by opcode #129 and opcode #130

8 NUMBEROFATTACKS
Set by opcode #1

9 SAVEVSDEATH
Set by opcode #33

10 SAVEVSWANDS
Set by opcode #34

11 SAVEVSPOLY
Set by opcode #35

12 SAVEVSBREATH
Set by opcode #36

13 SAVEVSSPELL
Set by opcode #37

14 RESISTFIRE
Set by opcode #30

15 RESISTCOLD
Set by opcode #28

16 RESISTELECTRICITY
Set by opcode #29

17 RESISTACID
Set by opcode #27

18 RESISTMAGIC
Set by opcode #166

19 RESISTMAGICFIRE
Set by opcode #84

20 RESISTMAGICCOLD
Set by opcode #85

21 RESISTSLASHING
Set by opcode #86

22 RESISTCRUSHING
Set by opcode #87

23 RESISTPIERCING
Set by opcode #88

24 RESISTMISSILE
Set by opcode #89

25 LORE
Set by opcode #21

26 LOCKPICKING

27 STEALTH

28 TRAPS

29 PICKPOCKET

30 FATIGUE
Set by opcode #93

31 INTOXICATION
Set by opcode #94

32 LUCK
Set by opcode #131, opcode #133 and opcode #137

33 TRACKING
Set by opcode #95

34 LEVEL
Set by opcode #96

35 SEX

36 STR
Set by opcode #44

37 STREXTRA
Set by opcode #97

38 INT
Set by opcode #19

39 WIS
Set by opcode #49

40 DEX
Set by opcode #15

41 CON
Set by opcode #10

42 CHR
Set by opcode #6

43 XPVALUE

44 XP
Set by opcode #104

45 GOLD
Set by opcode #105

46 MORALEBREAK
{% capture note %} {% endcapture %} {% include note.html %}

47 MORALERECOVERYTIME

48 REPUTATION
Set by opcode #108

49 HATEDRACE

50 DAMAGEBONUS
Set by opcode #129 and opcode #130

51 SPELLFAILUREMAGE
Set by opcode #60

52 SPELLFAILUREPRIEST
Set by opcode #60

53 SPELLDURATIONMODMAGE
Set by opcode #99

54 SPELLDURATIONMODPRIEST
Set by opcode #99

55 TURNUNDEADLEVEL
Set by opcode #323

56 BACKSTABDAMAGEMULTIPLIER
Set by opcode #263

57 LAYONHANDSAMOUNT

58 HELD
Set by opcode #109, opcode #157, opcode #175 and opcode #185

59 POLYMORPHED
Set by opcode #135

60 TRANSLUCENT
Set by opcode #66

61 IDENTIFYMODE
Set by opcode #114

62 ENTANGLE
Set by opcode #154

63 SANCTUARY
Set by opcode #153

64 MINORGLOBE
Set by opcode #155

65 SHIELDGLOBE
Set by opcode #156

66 GREASE
Set by opcode #158

67 WEB
Set by opcode #157

68 LEVEL2

69 LEVEL3

70 CasterHold
Set by opcode #165

71 ENCUMBERANCE

72 MISSILETHAC0BONUS

73 MAGICDAMAGERESISTANCE
Set by opcode #31

74 RESISTPOISON
Set by opcode #173

75 DONOTJUMP

76 AURACLEANSING
Set by opcode #188

77 MENTALSPEED
Set by opcode #189

78 PHYSICALSPEED
Set by opcode #190

79 CASTINGLEVELBONUSMAGE
Set by opcode #191

80 CASTINGLEVELBONUSCLERIC
Set by opcode #191

81 SEEINVISIBLE
Set by opcode #193

82 IGNOREDIALOGPAUSE
Set by opcode #194

83 MINHITPOINTS
Set by opcode #208

84 THAC0BONUSRIGHT

85 THAC0BONUSLEFT

86 DAMAGEBONUSRIGHT

87 DAMAGEBONUSLEFT

88 STONESKINS
Set by opcode #218

89 PROFICIENCYBASTARDSWORD
Set by opcode #233

90 PROFICIENCYLONGSWORD
Set by opcode #233

91 PROFICIENCYSHORTSWORD
Set by opcode #233

92 PROFICIENCYAXE
Set by opcode #233

93 PROFICIENCYTWOHANDEDSWORD
Set by opcode #233

94 PROFICIENCYKATANA
Set by opcode #233

95 PROFICIENCYSCIMITARWAKISASHININJATO
Set by opcode #233

96 PROFICIENCYDAGGER
Set by opcode #233

97 PROFICIENCYWARHAMMER
Set by opcode #233

98 PROFICIENCYSPEAR
Set by opcode #233

99 PROFICIENCYHALBERD
Set by opcode #233

100 PROFICIENCYFLAILMORNINGSTAR
Set by opcode #233

101 PROFICIENCYMACE
Set by opcode #233

102 PROFICIENCYQUARTERSTAFF
Set by opcode #233

103 PROFICIENCYCROSSBOW
Set by opcode #233

104 PROFICIENCYLONGBOW
Set by opcode #233

105 PROFICIENCYSHORTBOW
Set by opcode #233

106 PROFICIENCYDART
Set by opcode #233

107 PROFICIENCYSLING
Set by opcode #233

108 PROFICIENCYBLACKJACK
Set by opcode #233

109 WEAPON_ENCHANTMENT
Set by opcode #233

110 CLERIC_ARMOR_OF_FAITH
Set by opcode #233

111 PROFICIENCY2HANDED
Set by opcode #233

112 PROFICIENCYSWORDANDSHIELD
Set by opcode #233

113 PROFICIENCYSINGLEWEAPON
Set by opcode #233

114 PROFICIENCY2WEAPON
Set by opcode #233

115 PROFICIENCYCLUB
Set by opcode #233

116 WIZARD_SPELL_DEFLECTION
Set by opcode #233

117 PROTECTION_FROM_EVIL
Set by opcode #233

118 TRUE_SIGHT
Set by opcode #233

119 CLERIC_CHAOTIC_COMMANDS
Set by opcode #233

120 CLERIC_INSECT_PLAGUE
Set by opcode #233

121 CLERIC_BLADE_BARRIER
Set by opcode #233

122 CLERIC_PHYSICAL_MIRROR
Set by opcode #233

123 CLERIC_SHIELD_OF_THE_ARCHONS
Set by opcode #233

124 CLERIC_REGENERATION
Set by opcode #233

125 WIZARD_FIRE_SHIELD
Set by opcode #233

126 WIZARD_PROTECTION_FROM_MAGIC_ENERGY
Set by opcode #233

127 WIZARD_MISLEAD
Set by opcode #233

128 WIZARD_PROTECTION_FROM_MAGIC_WEAPONS
Set by opcode #233

129 WIZARD_SPELL_TURNING
Set by opcode #233

130 WIZARD_PROTECTION_FROM_THE_ELEMENTS
Set by opcode #233

131 CLERIC_FREE_ACTION
Set by opcode #233

132 WIZARD_KHELBENS_WARDING_WHIP
Set by opcode #233

133 CLERIC_DEFENSIVE_HARMONY
Set by opcode #233

134 EXTRAPROFICIENCY20
Set by opcode #233

135 HIDEINSHADOWS

136 DETECTILLUSIONS

137 SETTRAPS

138 PUPPETMASTERID
Set by opcode #237

139 PUPPETMASTERTYPE
Set by opcode #237

140 PUPPETTYPE
Set by opcode #237

141 PUPPETID
Set by opcode #237

142 CHECKFORBERSERK
Set by opcode #245

143 BERSERKSTAGE1
Set by opcode #246

144 BERSERKSTAGE2
Set by opcode #247

145 DAMAGELUCK
Set by opcode #250

146 CRITICALHITBONUS
Set by opcode #301

147 VISUALRANGE

148 EXPLORE
Set by opcode #268

149 THRULLCHARM
Set by opcode #5

150 SUMMONDISABLE

151 HITBONUS

152 KIT

153 FORCESURGE
Set by opcode #280

154 SURGEMOD

155 IMPROVEDHASTE
Set by opcode #16

156 SCRIPTINGSTATE1
Set by opcode #282

157 SCRIPTINGSTATE2
Set by opcode #282

158 SCRIPTINGSTATE3
Set by opcode #282

159 SCRIPTINGSTATE4
Set by opcode #282

160 SCRIPTINGSTATE5
Set by opcode #282

161 SCRIPTINGSTATE6
Set by opcode #282

162 WIZARD_SPELL_IMMUNITY
Set by opcode #282

163 WIZARD_PROTECTION_FROM_ENERGY
Set by opcode #282

164 WIZARD_SPELL_TRAP
Set by opcode #282

165 WIZARD_IMPROVED_ALACRITY
Set by opcode #282

166 DMWW_SLOT_166
Set by opcode #284

167 DMWW_SLOT_167
Set by opcode #285

168 DMWW_SLOT_168
Set by opcode #286

169 DMWW_SLOT_169
Set by opcode #287

170 DMWW_SLOT_170
Set by opcode #288

171 DMWW_SLOT_171
Set by opcode #289

172 DMWW_SLOT_172
Set by opcode #290

173 DMWW_SLOT_173
Set by opcode #290

174 DMWW_SLOT_174
Set by opcode #291

175 DMWW_SLOT_175
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

176 LOCKPICKINGMTPBONUS
Set by opcode #90

176 WIZARD_PROTECTION_FROM_PETRIFICATION

177 MOVESILENTLYMTPBONUS
Set by opcode #59

177 WIZARD_SPELL_SHIELD

178 TRAPSMTPBONUS
Set by opcode #91

178 WIZARD_RESIST_FEAR

179 PICKPOCKETMTPBONUS
Set by opcode #92

179 WIZARD_PROTECTION_FROM_NORMAL_MISSILES

180 HIDEINSHADOWSMTPBONUS
Set by opcode #275

180 WIZARD_GREATER_MALISON

181 DETECTILLUSIONSMTPBONUS
Set by opcode #276

181 WIZARD_PROTECTION_FROM_NORMAL_WEAPONS

182 SETTRAPSMTPBONUS
Set by opcode #277

182 WIZARD_TENSERS_TRANSFORMATION

183 DMWW_SLOT_183
Set by opcode #293

184 DMWW_SLOT_184
Set by opcode #294

185 DMWW_SLOT_185
Set by opcode #16

186 DMWW_SLOT_186
Set by opcode #295

187 DMWW_SLOT_187
Set by opcode #297

188 SUMMON_DISABLE_ACTION

189 CHAOS_SHIELD
Set by opcode #299

190 NPC_BUMP
Set by opcode #300

191 USE_ANY_ITEM
Set by opcode #302

192 ASSASSINATE
Set by opcode #303

193 SEX_CHANGED
Set by opcode #71

194 SPELL_FAILURE_INNATE
Set by opcode #60

195 IMMUNE_TO_TRACKING
Set by opcode #308

196 DEAD_MAGIC
Set by opcode #60

197 IMMUNE_TO_TIME_STOP
Set by opcode #310

198 IMMUNE_TO_SEQUESTER
Set by opcode #312

199 STONESKINSGOLEM
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.

200 LEVELDRAIN
Set by opcode #216