BG(2)EE Identifiers

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.

2 ARMORCLASS
3 ACCRUSHINGMOD
4 ACMISSILEMOD
5 ACPIERCINGMOD
6 ACSLASHINGMOD
7 THAC0
8 NUMBEROFATTACKS
9 SAVEVSDEATH
10 SAVEVSWANDS
11 SAVEVSPOLY
12 SAVEVSBREATH
13 SAVEVSSPELL
14 RESISTFIRE
15 RESISTCOLD
16 RESISTELECTRICITY
17 RESISTACID
18 RESISTMAGIC
19 RESISTMAGICFIRE
20 RESISTMAGICCOLD
21 RESISTSLASHING
22 RESISTCRUSHING
23 RESISTPIERCING
24 RESISTMISSILE
25 LORE
26 LOCKPICKING
27 STEALTH
28 TRAPS
29 PICKPOCKET
30 FATIGUE
31 INTOXICATION
32 LUCK
33 TRACKING
34 LEVEL
35 SEX
36 STR
37 STREXTRA
38 INT
39 WIS
40 DEX
41 CON
42 CHR
43 XPVALUE
44 XP
45 GOLD

Returns 0 or 1 if the creature is immune to fear.

47 MORALERECOVERYTIME
48 REPUTATION
49 HATEDRACE
50 DAMAGEBONUS
51 SPELLFAILUREMAGE
52 SPELLFAILUREPRIEST
53 SPELLDURATIONMODMAGE
54 SPELLDURATIONMODPRIEST
55 TURNUNDEADLEVEL
56 BACKSTABDAMAGEMULTIPLIER
57 LAYONHANDSAMOUNT
58 HELD
59 POLYMORPHED
60 TRANSLUCENT
61 IDENTIFYMODE
62 ENTANGLE
63 SANCTUARY
64 MINORGLOBE
65 SHIELDGLOBE
66 GREASE
67 WEB
68 LEVEL2
69 LEVEL3

Set by opcode #165

71 ENCUMBERANCE
72 MISSILETHAC0BONUS
73 MAGICDAMAGERESISTANCE
74 RESISTPOISON
75 DONOTJUMP

Set by opcode #188

77 MENTALSPEED
78 PHYSICALSPEED
79 CASTINGLEVELBONUSMAGE
80 CASTINGLEVELBONUSCLERIC

Set by opcode #193

Set by opcode #194

83 MINHITPOINTS
84 THAC0BONUSRIGHT
85 THAC0BONUSLEFT
86 DAMAGEBONUSRIGHT
87 DAMAGEBONUSLEFT

Set by opcode #218

89 PROFICIENCYBASTARDSWORD
90 PROFICIENCYLONGSWORD
91 PROFICIENCYSHORTSWORD
92 PROFICIENCYAXE
93 PROFICIENCYTWOHANDEDSWORD
94 PROFICIENCYKATANA
95 PROFICIENCYSCIMITARWAKISASHININJATO
96 PROFICIENCYDAGGER
97 PROFICIENCYWARHAMMER
98 PROFICIENCYSPEAR
99 PROFICIENCYHALBERD
100 PROFICIENCYFLAILMORNINGSTAR
101 PROFICIENCYMACE
102 PROFICIENCYQUARTERSTAFF
103 PROFICIENCYCROSSBOW
104 PROFICIENCYLONGBOW
105 PROFICIENCYSHORTBOW
106 PROFICIENCYDART
107 PROFICIENCYSLING
108 PROFICIENCYBLACKJACK
109 WEAPON_ENCHANTMENT / CLERIC_HALLOW
110 CLERIC_ARMOR_OF_FAITH
111 PROFICIENCY2HANDED
112 PROFICIENCYSWORDANDSHIELD
113 PROFICIENCYSINGLEWEAPON
114 PROFICIENCY2WEAPON
115 PROFICIENCYCLUB
116 WIZARD_SPELL_DEFLECTION
117 PROTECTION_FROM_EVIL
118 TRUE_SIGHT
119 CLERIC_CHAOTIC_COMMANDS
120 CLERIC_INSECT_PLAGUE
121 CLERIC_BLADE_BARRIER
122 CLERIC_PHYSICAL_MIRROR
123 CLERIC_SHIELD_OF_THE_ARCHONS
124 CLERIC_REGENERATION
125 WIZARD_FIRE_SHIELD
126 WIZARD_PROTECTION_FROM_MAGIC_ENERGY
127 WIZARD_MISLEAD
128 WIZARD_PROTECTION_FROM_MAGIC_WEAPONS
129 WIZARD_SPELL_TURNING
130 WIZARD_PROTECTION_FROM_THE_ELEMENTS
131 CLERIC_FREE_ACTION
132 WIZARD_KHELBENS_WARDING_WHIP
133 CLERIC_DEFENSIVE_HARMONY
134 EXTRAPROFICIENCY20
135 HIDEINSHADOWS
136 DETECTILLUSIONS
137 SETTRAPS

An image is linked to its master via an Object ID. This stat contains the Object ID of the image's master.

An image can return true on the following values:
1 = Mislead, 2 = Project Image, 3 = Simulacrum

An image owner can return true on the following values:
1 = Mislead, 2 = Project Image, 3 = Simulacrum

An image owner is linked to its master via an Object ID. This stat contains the Object ID of the image owners image.

142 CHECKFORBERSERK
143 BERSERKSTAGE1
144 BERSERKSTAGE2
145 DAMAGELUCK
146 CRITICALHITBONUS

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 aay the creature be 'seen' by the AI). The default value is 14. The Blindness effect sets this value to 2. Visual range is is limited 0-15, script activation range is limited 0-24.

148 EXPLORE
149 THRULLCHARM
150 SUMMONDISABLE
151 HITBONUS
152 KIT

Set by opcode #280

154 SURGEMOD
155 IMPROVEDHASTE
156 SCRIPTINGSTATE1
156 WING_BUFFET
157 SCRIPTINGSTATE2
157 DEATH_WARD
158 SCRIPTINGSTATE3
158 LEVEL_DRAIN_IMMUNITY
159 SCRIPTINGSTATE4
159 OFFENSIVE_MODIFIER
160 SCRIPTINGSTATE5
160 DEFENSIVE_MODIFIER
161 SCRIPTINGSTATE6
161 STRENGTH_MODIFIER
162 WIZARD_SPELL_IMMUNITY
163 WIZARD_PROTECTION_FROM_ENERGY
164 WIZARD_SPELL_TRAP
165 WIZARD_IMPROVED_ALACRITY

Set by opcode #284

Set by opcode #285

Set by opcode #286

Set by opcode #287

Set by opcode #288

Set by opcode #289

Set by opcode #290

Set by opcode #290

Set by opcode #291

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
176 WIZARD_PROTECTION_FROM_PETRIFICATION
177 MOVESILENTLYMTPBONUS
177 WIZARD_SPELL_SHIELD
178 TRAPSMTPBONUS
178 WIZARD_RESIST_FEAR
179 PICKPOCKETMTPBONUS
179 WIZARD_PROTECTION_FROM_NORMAL_MISSILES

Set by opcode #275

180 WIZARD_GREATER_MALISON

Set by opcode #276

181 WIZARD_PROTECTION_FROM_NORMAL_WEAPONS

Set by opcode #277

182 WIZARD_TENSERS_TRANSFORMATION

Set by opcode #293

Set by opcode #294

185 ANIMATION_ONLY_HASTE

Set by opcode #295

Set by opcode #297

188 SUMMON_DISABLE_ACTION

Set by opcode #299

Set by opcode #300

Set by opcode #302

Set by opcode #303

Set by opcode #71

194 SPELL_FAILURE_INNATE

Set by opcode #308

196 DEAD_MAGIC

Set by opcode #310

Set by opcode #312

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 #315

Set by opcode #367