Immunity/Resistance/Vulnerability Flag Table

This table groups the immunity, resistance and vulnerability flags together because flags with the same meaning have the same code.

In general, immunity against something protects the mob absolutely.
If the attack is a spell, then resistance improves saves by -2; vulnerability worsens saves by 2.
For attacks (including spells) that do damage, resistance reduces damage by one third; vulnerability increases damage by one half.

Where this is so, immunity is fully explained and the other two follow the pattern. The exceptions have specific explanations.

Letter Names Explanation
A IMM_SUMMON Protects mob from most of the TRANSPORTATION spells: It cannot be SUMMONed or TELEPORTed, nor can it be GATEd, PORTALed or NEXUSed to.

The Quest Master will never send a player to kill a mob with IMM_SUMMON. Keep this in mind when you make a mob completely unkillable by giving it IMM_MAGIC and IMM_WEAPON: Add IMM_SUMMON to avoid having people sent to kill it.

RES_SUMMON
VULN_SUMMON
No effect!
B IMM_CHARM
RES_CHARM
VULN_CHARM
The immunity protects mob from the CHARM spell and the SING skill.
C IMM_MAGIC
RES_MAGIC
VULN_MAGIC
The immunity protects a mob from magic. This includes all damage types which don't translate to physical damage types DAM_BASH, DAM_SLASH and DAM_PIERCE! Exotic weapons will also tend to cause damage in this 'other' category.
D IMM_WEAPON
RES_WEAPON
VULN_WEAPON
The immunity protects against 'normal' weapon damage. Unarmed attacks, e.g. punching and kicking, cause DAM_BASH and also fall into this category.
E IMM_BASH
RES_BASH
VULN_BASH
The immunity protects against damage from unarmed attacks and bashing type weapons.
F IMM_PIERCE
RES_PIERCE
VULN_PIERCE
The immunity protects against piercing type damage.
G IMM_SLASH
RES_SLASH
VULN_SLASH
The immunity protects against slashing type damage.
H IMM_FIRE
RES_FIRE
VULN_FIRE
The immunity protects against damage from fire attacks. These currently include: Flameshield, Burning Hands, Firestorm, Fireball, Flamestrike, Heat Metal, Fire Breath; flaming weapons; flaming bite and flame as mob or weapon damage types.
I IMM_COLD
RES_COLD
VULN_COLD
The immunity protects against damage from freezing attacks. These currently include: Blizzard, Chill Touch, Frost Breath; freezing weapons; freezing bite and chill as mob or weapon damage types.
J IMM_LIGHTNING
RES_LIGHTNING
VULN_LIGHTNING
The immunity protects against damage from shocking attacks. These currently include: Call Lightning, Chain Lightning, Lightning Bolt, Shocking Grasp, Lightning Breath; shocking weapons; shocking bite and shock as mob or weapon damage types.
K IMM_ACID
RES_ACID
VULN_ACID
The immunity protects against damage from acid attacks. These currently include: Acid Blast, Acid Breath; Digestion, acidic bite and slime as mob or weapon damage types.
L IMM_POISON
RES_POISON
VULN_POISON
The immunity protects against damage from poison attacks. These currently include: Poison (spell), Gas breath; poisoned weapons.
M IMM_NEGATIVE
RES_NEGATIVE
VULN_NEGATIVE
The immunity protects against negative attack damage from Dispel Good and Energy Drain; vampiric weapon; life drain as a damage type for mobs and weapons; and from the non-damage effects of spells Curse, Demonfire and Fear.
N IMM_HOLY
RES_HOLY
VULN_HOLY
The immunity protects against damage from holy attacks. These currently include: Dispel Evil, Ray of Truth; divine power as a damage type for mobs and weapons.
O IMM_ENERGY
RES_ENERGY
VULN_ENERGY
The immunity protects against damage from energy attacks. These currently include: Holy Word, Magic Missile, Wrath; wrath and magic as a damage type for mobs and weapons.
P IMM_MENTAL
RES_MENTAL
VULN_MENTAL
No such attack!
Q IMM_DISEASE
RES_DISEASE
VULN_DISEASE
The immunity protects from the plague spell and being infected by a character suffering from plague.
R IMM_DROWNING
RES_DROWNING
VULN_DROWNING
No such attack!
S IMM_LIGHT
RES_LIGHT
VULN_LIGHT
The immunity protects against damage from light attacks. Currently, the only such attack is the Colour Spray spell.
T IMM_SOUND
RES_SOUND
VULN_SOUND
No such attack!
X IMM_WOOD
RES_WOOD
VULN_WOOD
No effect!
Y IMM_SILVER
RES_SILVER
VULN_SILVER
No effect!
Z IMM_IRON
RES_IRON
VULN_IRON
No effect!

'No effect' indicates that coding this flag will not have an effect in the game because these flags are not checked for in the program.
'No such attack' indicates that coding this flag will not have an effect in the game because the form of attack it protects against does not exist in the game.

Back to #MOBILES


  This page was last updated May 15, 2001