---
title: "BG1: TotS Identifiers"
---
BG1: TotS Identifiers
Objects can be split broadly into three categories; static objects, marked objects and object specifiers. Static objects (e.g. Player1, MySelf) are always bound (and in fact, they always return the same creature). Marked objects (e.g. LastSeenBy, LastAttackerOf) are almost always bound. Object specifiers (e.g. [ENEMY.0.0.MAGE] are not bound - they are checked every time they are referenced. Objects listed in objects.ids are marked objects and are not saved over game sessions. Note that Group objects are determined by the specifics value set in the creature file (0x274).
20
0 Nothing
1 Myself
2 LeaderOf
3 GroupOf
Returns the weakest player character (in the party).
Returns the strongest player character (in the party).
Returns the most damaged player character (in the party).
Returns the least damaged player character (in the party).
8 ProtectedBy
9 ProtectorOf
Returns the creature that last inflicted physical damage on the active creature.
11 LastTargetedBy
12 NearestEnemyOf
Returns the nearest visible enemy of the target creature.
13 LastCommandedBy
14 Nearest
Returns the nearest visible creature - usually the active creature.
15 LastHitter
16 LastHelp
17 LastTrigger
18 LastSeenBy
19 LastTalkedToBy
20 LastHeardBy
21 Player1
22 Player2
23 Player3
24 Player4
25 Player5
26 Player6
27 Protagonist
Returns the strongest male player character (in the party).
29 SecondNearestEnemyOf
Returns the second nearest visible enemy of the target creature.
30 ThirdNearestEnemyOf
Returns the third nearest visible enemy of the target creature.
31 FourthNearestEnemyOf
Returns the fourth nearest visible enemy of the target creature.
32 FifthNearestEnemyOf
Returns the fifth nearest visible enemy of the target creature.
33 SixthNearestEnemyOf
Returns the sixth nearest visible enemy of the target creature.
34 SeventhNearestEnemyOf
Returns the seventh nearest visible enemy of the target creature.
35 EigthNearestEnemyOf
Returns the eigth nearest visible enemy of the target creature.
36 NinthNearestEnemyOf
Returns the ninth nearest visible enemy of the target creature.
37 TenthNearestEnemyOf
Returns the tenth nearest visible enemy of the target creature.
38 SecondNearest
Returns the second nearest visible creature.
39 ThirdNearest
Returns the third nearest visible creature.
40 FourthNearest
Returns the forth nearest visible creature.
41 FifthNearest
Returns the fifth nearest visible creature.
42 SixthNearest
Returns the sixth nearest visible creature.
43 SeventhNearest
Returns the seventh nearest visible creature.
44 EighthNearest
Returns the eigth nearest visible creature.
45 NinthNearest
Returns the ninth nearest visible creature.
46 TenthNearest
Returns the tenth nearest visible creature.