Difference between revisions of "GetActorType"

34 bytes removed ,  12:12, 1 November 2006
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 *3)+(getVampire *4)+IsActor+(isEssential *9)</pre>
set GetActorType to (GetIsCreature *8)+(getIsGhost)+(getVampire)+IsActor+(isEssential *4)-1</pre>


This returns the following values:
<pre>
<pre>
0 - Not an Actor
-1 - Not an actor
1 - NPC
0 - NPC
2 - Creature
1 - NPC Ghost
3 - NPC Ghost
2 - NPC vampire
4 - Creature Ghost (creatures considered ghost by the game-engine).
3 - NPC Ghost AND Vampire
5 - NPC vampire
4 - Essential NPC
6 - Creature Vampire
5 - Essential NPC Ghost
8 - NPC Ghost AND Vampire
6 - Essential NPC Vampire
9 - Creature Ghost AND Vampire
7 - Essential NPC Ghost AND Vampire
10 - Essential NPC
8 - Creature
13 - Essential NPC Ghost
9 - Creature Ghost (creatures considered ghost by the game-engine).
15 - Essential NPC Vampire
10 - Creature Vampire
18 - Essential NPC Ghost AND Vampire</pre>
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."
Anonymous user