Difference between revisions of "GetActorType"
no edit summary
imported>Scruggs (formatting, fixing category links) |
imported>GBHis |
||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
short GetActorType | short GetActorType | ||
set GetActorType to GetIsCreature+(getIsGhost | set GetActorType to (GetIsCreature *8)+(getIsGhost)+(getVampire)+IsActor+(isEssential *4)-1</pre> | ||
<pre> | <pre> | ||
-1 - Not an actor | |||
1 - NPC | 0 - NPC | ||
2 - | 1 - NPC Ghost | ||
3 - NPC Ghost | 2 - NPC vampire | ||
4 - | 3 - NPC Ghost AND Vampire | ||
5 - NPC | 4 - Essential NPC | ||
6 - | 5 - Essential NPC Ghost | ||
6 - Essential NPC Vampire | |||
9 - Creature Ghost | 7 - Essential NPC Ghost AND Vampire | ||
10 - | 8 - Creature | ||
9 - Creature Ghost (creatures considered ghost by the game-engine). | |||
10 - Creature Vampire | |||
11 - Creature Ghost AND Vampire | |||
</pre> | |||
Note that "Ghost" refers to creatures and NPCs who are affected by the [[SetGhost]] function. Ordinarily, a creature like a wraith will return 2 for "Creature", not "Creature Ghost." | Note that "Ghost" refers to creatures and NPCs who are affected by the [[SetGhost]] function. Ordinarily, a creature like a wraith will return 2 for "Creature", not "Creature Ghost." |