Elona Wiki
(Re-added anchors for linking to specific sections, while trying to retain the appearance. If the code tags interfere with the linking, I'll just remove them.)
(→‎NPC Bit flags: filled in the Ingame ID column. Thanks for setting it up, Corak!)
Line 15: Line 15:
 
|5
 
|5
 
|Any
 
|Any
|
+
|32
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Floats the NPC. Among other things, it saves them from acid pools, deaths when drinking from wells, and triggering traps.
 
|colspan="4"|Floats the NPC. Among other things, it saves them from acid pools, deaths when drinking from wells, and triggering traps.
Line 23: Line 23:
 
|6
 
|6
 
|Any
 
|Any
|
+
|64
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The NPC is invisible. They can only be seen by the player when they are wet, or when the player has an item that lets them see invisible creatures equipped. NPCs with the cSeeInvisi bit can still see them. A pet that is invisible will still be seen by NPCs, regardless of the NPCs' ability to see invisible creatures.
 
|colspan="4"|The NPC is invisible. They can only be seen by the player when they are wet, or when the player has an item that lets them see invisible creatures equipped. NPCs with the cSeeInvisi bit can still see them. A pet that is invisible will still be seen by NPCs, regardless of the NPCs' ability to see invisible creatures.
Line 31: Line 31:
 
|7
 
|7
 
|Any
 
|Any
|
+
|128
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The NPC can see invisible creatures.
 
|colspan="4"|The NPC can see invisible creatures.
Line 39: Line 39:
 
|8
 
|8
 
|Any
 
|Any
|
+
|256
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to confusion. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to confusion. But, it does not stop insanity from inflicting the status effect.
Line 47: Line 47:
 
|9
 
|9
 
|Any
 
|Any
|
+
|512
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to blindness. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to blindness. But, it does not stop insanity from inflicting the status effect.
Line 55: Line 55:
 
|10
 
|10
 
|Any
 
|Any
  +
|1024
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to fear. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to fear. But, it does not stop insanity from inflicting the status effect.
Line 63: Line 63:
 
|11
 
|11
 
|Any
 
|Any
  +
|2048
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to sleep. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to sleep. But, it does not stop insanity from inflicting the status effect.
Line 71: Line 71:
 
|12
 
|12
 
|Any
 
|Any
  +
|4096
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to paralyzation. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to paralyzation. But, it does not stop insanity from inflicting the status effect.
Line 79: Line 79:
 
|13
 
|13
 
|Any
 
|Any
  +
|8192
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Immunity to poison. But, it does not stop insanity from inflicting the status effect.
 
|colspan="4"|Immunity to poison. But, it does not stop insanity from inflicting the status effect.
Line 87: Line 87:
 
|14
 
|14
 
|Any
 
|Any
  +
|16384
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Able to eat rotten food without triggering any of its negative effects.
 
|colspan="4"|Able to eat rotten food without triggering any of its negative effects.
Line 95: Line 95:
 
|15
 
|15
 
|Any
 
|Any
  +
|32768
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Resists Suspicious Hand events.
 
|colspan="4"|Resists Suspicious Hand events.
Line 103: Line 103:
 
|16
 
|16
 
|Any
 
|Any
  +
|65536
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Possibly causes the NPC to not be targeted automatically by hostile monsters.
 
|colspan="4"|Possibly causes the NPC to not be targeted automatically by hostile monsters.
Line 111: Line 111:
 
|17
 
|17
 
|Any
 
|Any
  +
|131072
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|When killed, automatically drops all gold held at the time of death.
 
|colspan="4"|When killed, automatically drops all gold held at the time of death.
Line 119: Line 119:
 
|18
 
|18
 
|Any
 
|Any
  +
|262144
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Has a chance to trigger the Suicide attack special action, when hit.
 
|colspan="4"|Has a chance to trigger the Suicide attack special action, when hit.
Line 127: Line 127:
 
|19
 
|19
 
|Any
 
|Any
  +
|524288
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Auto-triggers the [[Word of Death]] special action. The effect cancels out when the casting NPC is killed.
 
|colspan="4"|Auto-triggers the [[Word of Death]] special action. The effect cancels out when the casting NPC is killed.
Line 135: Line 135:
 
|20
 
|20
 
|Any
 
|Any
  +
|1048576
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Allows for multiple casting of dart-type spells in a single turn. This can be observed on the [[Exile]] servant.
 
|colspan="4"|Allows for multiple casting of dart-type spells in a single turn. This can be observed on the [[Exile]] servant.
Line 143: Line 143:
 
|21
 
|21
 
|Any
 
|Any
  +
|2097152
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The NPC can cast a major healing spell on heavily damaged allies. This can be observed on the [[Defender]] servant.
 
|colspan="4"|The NPC can cast a major healing spell on heavily damaged allies. This can be observed on the [[Defender]] servant.
Line 151: Line 151:
 
|22
 
|22
 
|Any
 
|Any
  +
|4194304
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The NPC works well with the [[riding]] skill. It gives the message "You feel comfortable" when ridden.
 
|colspan="4"|The NPC works well with the [[riding]] skill. It gives the message "You feel comfortable" when ridden.
Line 159: Line 159:
 
|23
 
|23
 
|Any
 
|Any
  +
|8388608
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The first version of the split ability. The NPC can create a copy when any damage is taken. Copies of the NPC will keep the status effects inflicted on the one that spawned them.
 
|colspan="4"|The first version of the split ability. The NPC can create a copy when any damage is taken. Copies of the NPC will keep the status effects inflicted on the one that spawned them.
Line 167: Line 167:
 
|23
 
|23
 
|Any
 
|Any
  +
|16777216
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
| colspan="4"|???
 
| colspan="4"|???
Line 175: Line 175:
 
|25
 
|25
 
|Any
 
|Any
  +
|33554432
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The NPC works very poorly with the [[riding]] skill, resulting in a severe speed penalty when ridden.
 
|colspan="4"|The NPC works very poorly with the [[riding]] skill, resulting in a severe speed penalty when ridden.
Line 183: Line 183:
 
|26
 
|26
 
|Any
 
|Any
  +
|67108864
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
| colspan="4"|The NPC has near immunity to elemental attacks, except pure magic. This is observable with [[cube]]s.
 
| colspan="4"|The NPC has near immunity to elemental attacks, except pure magic. This is observable with [[cube]]s.
Line 191: Line 191:
 
|27
 
|27
 
|Any
 
|Any
  +
|134217728
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|The second type of split ability. The NPC can create a copy when any damage is taken. The copies do not have the status effects inflicted on the original.
 
|colspan="4"|The second type of split ability. The NPC can create a copy when any damage is taken. The copies do not have the status effects inflicted on the original.
Line 199: Line 199:
 
|28
 
|28
 
|Any
 
|Any
  +
|268435456
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
| colspan="4" style="text-align:left"|Any damage inflicted on the NPC with this is severely reduced. Observable with bell-type monsters such as the [[gold bell]].
 
| colspan="4" style="text-align:left"|Any damage inflicted on the NPC with this is severely reduced. Observable with bell-type monsters such as the [[gold bell]].
Line 207: Line 207:
 
|29
 
|29
 
|Any
 
|Any
  +
|536870912
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
| colspan="4" style="text-align:left"|???
 
| colspan="4" style="text-align:left"|???
Line 215: Line 215:
 
|30
 
|30
 
|Any
 
|Any
  +
|1073741824
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Allows the NPC to break walls, similar to the PC's bash command. Bosses and uniques use this.
 
|colspan="4"|Allows the NPC to break walls, similar to the PC's bash command. Bosses and uniques use this.
Line 223: Line 223:
 
|31
 
|31
 
|Any
 
|Any
  +
|2147483648
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
| colspan="4"|Prevents triggering of mines by the character. Used by mine layers such as the [[mine dog]] to prevent it setting off its own traps.
 
| colspan="4"|Prevents triggering of mines by the character. Used by mine layers such as the [[mine dog]] to prevent it setting off its own traps.
Line 231: Line 231:
 
|32
 
|32
 
|Elona beta (after 1.16)
 
|Elona beta (after 1.16)
  +
|4294967296
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Activates a self-buff that causes the character to take more damage in exchange for doing more damage.
 
|colspan="4"|Activates a self-buff that causes the character to take more damage in exchange for doing more damage.
Line 239: Line 239:
 
|33
 
|33
 
|Elona Plus (Any version)
 
|Elona Plus (Any version)
  +
|8589934592
|
 
 
|- style="border-bottom:2px solid #7077C0"
 
|- style="border-bottom:2px solid #7077C0"
 
|colspan="4"|Damage inflicted on the NPC is reduced. Less effective than the cMetal flag.
 
|colspan="4"|Damage inflicted on the NPC is reduced. Less effective than the cMetal flag.

Revision as of 09:21, 5 May 2013

Bit flags are special traits that can be programmed into NPCs to give them certain abilities. These bits are listed in the help_npc.txt file in the user folder under BitOn, which includes instructions on how to use them in a custom NPC. The reference to 'bits' is related to how they are set in a programming manner. They are a combination of feats and special actions, but as a combination of the two they are in their own category.

NPC Bit flags

The list starts at 5 as there are no bits that can be set under that number.

Name Number Game version Ingame ID
cFloat
5 Any 32
Floats the NPC. Among other things, it saves them from acid pools, deaths when drinking from wells, and triggering traps.
cInvisi
6 Any 64
The NPC is invisible. They can only be seen by the player when they are wet, or when the player has an item that lets them see invisible creatures equipped. NPCs with the cSeeInvisi bit can still see them. A pet that is invisible will still be seen by NPCs, regardless of the NPCs' ability to see invisible creatures.
cSeeInvisi
7 Any 128
The NPC can see invisible creatures.
cResConfuse
8 Any 256
Immunity to confusion. But, it does not stop insanity from inflicting the status effect.
cResBlind
9 Any 512
Immunity to blindness. But, it does not stop insanity from inflicting the status effect.
cResFear
10 Any 1024
Immunity to fear. But, it does not stop insanity from inflicting the status effect.
cResSleep
11 Any 2048
Immunity to sleep. But, it does not stop insanity from inflicting the status effect.
cResParalyze
12 Any 4096
Immunity to paralyzation. But, it does not stop insanity from inflicting the status effect.
cResPoison
13 Any 8192
Immunity to poison. But, it does not stop insanity from inflicting the status effect.
cEater
14 Any 16384
Able to eat rotten food without triggering any of its negative effects.
cResSteal
15 Any 32768
Resists Suspicious Hand events.
cIncognito
16 Any 65536
Possibly causes the NPC to not be targeted automatically by hostile monsters.
cDropGold
17 Any 131072
When killed, automatically drops all gold held at the time of death.
cSuicide
18 Any 262144
Has a chance to trigger the Suicide attack special action, when hit.
cDeathMaster
19 Any 524288
Auto-triggers the Word of Death special action. The effect cancels out when the casting NPC is killed.
cRapidMagic
20 Any 1048576
Allows for multiple casting of dart-type spells in a single turn. This can be observed on the Exile servant.
cLayHand
21 Any 2097152
The NPC can cast a major healing spell on heavily damaged allies. This can be observed on the Defender servant.
cHorse
22 Any 4194304
The NPC works well with the riding skill. It gives the message "You feel comfortable" when ridden.
cSplit
23 Any 8388608
The first version of the split ability. The NPC can create a copy when any damage is taken. Copies of the NPC will keep the status effects inflicted on the one that spawned them.
cEncCurse
23 Any 16777216
???
cNoHorse
25 Any 33554432
The NPC works very poorly with the riding skill, resulting in a severe speed penalty when ridden.
cResEle
26 Any 67108864
The NPC has near immunity to elemental attacks, except pure magic. This is observable with cubes.
cSplit2
27 Any 134217728
The second type of split ability. The NPC can create a copy when any damage is taken. The copies do not have the status effects inflicted on the original.
cMetal
28 Any 268435456
Any damage inflicted on the NPC with this is severely reduced. Observable with bell-type monsters such as the gold bell.
cCureBleeding
29 Any 536870912
???
cPowerBash
30 Any 1073741824
Allows the NPC to break walls, similar to the PC's bash command. Bosses and uniques use this.
cImmuneMine
31 Any 2147483648
Prevents triggering of mines by the character. Used by mine layers such as the mine dog to prevent it setting off its own traps.
cTemper
32 Elona beta (after 1.16) 4294967296
Activates a self-buff that causes the character to take more damage in exchange for doing more damage.
cArmour
33 Elona Plus (Any version) 8589934592
Damage inflicted on the NPC is reduced. Less effective than the cMetal flag.