Index  •  2DA  •  Effects  •  File Formats  •  Actions  •  Identifiers  •  Triggers  •  Appendices  •  Site Info  •  Legal

Opcodes


#0 (0x000) Stat: AC vs. Damage Type Modifier [0]
Parameter #1: AC Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'AC Modifier' field to the category specified by the 'Type' field.

Known values for 'Type' are:
0   Generic
1   Armor
2   Deflection
3   Shield
4   Crushing
5   Piercing
6   Slashing
7   Missile



#1 (0x001) Stat: Attacks Per Round Modifier [1]
Parameter #1: Key Modifier
Parameter #2: Type
Description:
Alters a characters Attacks per Round, by changing the Key by the modifier value specified by the 'Key Value' field, in the style specified by 'Type' field.

Key     Attacks Per Round
0        0
1        1
2        2
3        3
4        4
5        5
6        0.5
7        1.5
8        2.5
9        3.5
10      4.5

Known values for 'Type' are:
0   Cumulative Modifier -> Key = Key + 'Key Modifier' value
1   Flat Value Modifier -> Key = 'Key Modifier' value
2   Percentage Modifier -> Key = (Key * 'Key Modifier' value) / 100
3   Cumulative Modifier -> Same as 0

Note: When this opcode is stacked, the values of the Key Modifier are stacked, not the number of attacks.



#2 (0x002) Cure: Sleep [2]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the state_sleeping flag from the targeted creature(s).
This effect ignores durations attributed to it.

N.B. Does not remove the state_helpless flag.



#3 (0x003) State: Berserking [3]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Applies the berserk effect to the targeted creature(s), as specifed by the 'Type' field.
Target will uncontrollably attack enemies if any are in view, and will occasionally attack neutral creatures.

Known values for 'Type' are:
0   Default
1   Always Active
2   Blood Rage



#4 (0x004) Cure: Berserking [4]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the state_beserk flag from the targeted creature(s).
This effect ignores durations attributed to it.

Both parameters should be 0 (zero).



#5 (0x005) Charm: Charm Specific Creature [5]
Parameter #1: General Type
Parameter #2: Undefined
Description:
Charms the targeted creature(s), if the target is matched by the value in the 'General Type' field. Values for 'General Type' are from General.ids.



#6 (0x006) Stat: Charisma Modifier [6]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Charisma = Charisma + 'Statistic Modifier' value
1   Flat Value Modifier -> Charisma = 'Statistic Modifier' value
2   Percentage Modifier -> Charisma = (Charisma * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Charisma raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#7 (0x007) Colour: Set Character colours by Palette [7]
Parameter #1: Gradient Number
Parameter #2: Location
Description:
Alters the colour of the area specified by the 'Location' field, to the colour gradient specified by the 'Gradient Number' field.

Known values for 'Location' are:
00   Belt Buckle (on armour) or amulets (on robes)
01   Minor colour
02   Major colour
03   Skin colour
04   Strap colour (on armour) or minor trimming (on robes - the centre strip down a robe and the hem on some robes)
05   Armor colour (and major trimming on robe - cross trim and cape trim on  robe of archmagi)
06   Hair colour
16   Quillons or Crossguard
20   Grip (usually not visible as it's in the characters hand)
21   Blade or major portion of weapon
32   Shield hub
34   Shield panelling
37   Shield rim
48   Helm ornamentation - i.e. wings
49   Helm ornamentation - i.e. feathers/horsehair
50   Helm ornamentation - i.e. feathers/horsehair
52   Unknown but listed in helm01
53   Helm - the main covering
255  Whole Body



#8 (0x008) Colour: Change by RGB [8]
Parameter #1: RGB colour
Parameter #2: Location
Description:
Alters the colour of the area specified by the 'Location' field, to the colour specified by the 'RGB colour' field.

The 'RGB Colour' field is handled as follows:
Second byte = Red (0-255)
Third byte     = Green (0-255)
Fourth byte   = Blue (0-255)

Known values for 'Location' are:
00   Belt Buckle (on armour) or amulets (on robes)
01   Minor colour
02   Major colour
03   Skin colour
04   Strap colour (on armour) or minor trimming (on robes - the centre strip down a robe and the hem on some robes)
05   Armor colour (and major trimming on robe - cross trim and cape trim on  robe of archmagi)
06   Hair colour
16   Quillons or Crossguard
20   Grip (usually not visible as it's in the characters hand)
21   Blade or major portion of weapon
32   Shield hub
34   Shield panelling
37   Shield rim
48   Helm ornamentation - i.e. wings
49   Helm ornamentation - i.e. feathers/horsehair
50   Helm ornamentation - i.e. feathers/horsehair
52   Unknown but listed in helm01
53   Helm - the main covering
255  Whole Body



#9 (0x009) Colour: Glow Pulse [9]
Parameter #1: RGB colour
Parameter #2: Location and Speed
Description:
Pulses the area specified by the 'Location and Speed' field, at the rate specified by the 'Location and Speed' field, with the colour specified by the 'RGB colour' field. If the colour values are all set to 0, the glow effect only occurs if the creature is in darkness; outside at night, inside a building, or standing in shadows.

The 'RGB Colour' field is handled as follows:
Second byte = Red (0-255)
Third byte     = Green (0-255)
Fourth byte   = Blue (0-255)

The 'Location' field is handled as follows:
First byte = Location
Third byte  = Speed (0-255)

A speed of 0 does not pulsate. A speed of 1 is fastest, and a speed of 255 is slowest.

Known values for 'Location' are:
00   Belt Buckle (on armour) or amulets (on robes)
01   Minor colour
02   Major colour
03   Skin colour
04   Strap colour (on armour) or minor trimming (on robes - the centre strip down a robe and the hem on some robes)
05   Armor colour (and major trimming on robe - cross trim and cape trim on  robe of archmagi)
06   Hair colour
16   Quillons or Crossguard
20   Grip (usually not visible as it's in the characters hand)
21   Blade or major portion of weapon
32   Shield hub
34   Shield panelling
37   Shield rim
48   Helm ornamentation - i.e. wings
49   Helm ornamentation - i.e. feathers/horsehair
50   Helm ornamentation - i.e. feathers/horsehair
52   Unknown but listed in helm01
53   Helm - the main covering
255  Whole Body



#10 (0x00A) Stat: Constitution Modifier [10]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Constitution = Constitution + 'Statistic Modifier' value
1   Flat Value Modifier -> Constitution = 'Statistic Modifier' value
2   Percentage Modifier -> Constitution = (Constitution * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Constitution raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#11 (0x00B) Cure: Poison [11]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the poison effect from the targeted creature(s).
This effect ignores durations attributed to it.



#12 (0x00C) HP: Damage [12]
Parameter #1: Damage Amount
Parameter #2: Type
Description:
Damages the target by the value specified by the 'Damage Amount' field, with the damage type specified by the 'Type' field.

Known values for 'Type' are:
0           Crushing
1           Crushing Set to Value
2           Crushing Set to Percentage
65536       Acid
65537       Acid Set to Value
65538       Acid Set to Percentage
131072      Cold
131073      Cold Set to Value
131074      Cold Set to Percentage
262144      Electricity
262145      Electricity Set to Value
262146      Electricity Set to Percentage
524288      Fire
524289      Fire Set to Value
524290      Fire Set to Percentage
1048576     Piercing
1048577     Piercing Set to Value
1048578     Piercing Set to Percentage
2097152     Poison
2097153     Poison Set to Value
2097154     Poison Set to Percentage
4194304     Magic
4194305     Magic Set to Value
4194306     Magic Set to Percentage
8388608     Missile
8388609     Missile Set to Value
8388610     Missile Set to Percentage
16777216    Slashing
16777217    Slashing Set to Value
16777218    Slashing Set to Percentage
33554432    Magic Fire
33554433    Magic Fire Set to Value
33554434    Magic Fire Set to Percentage
67108864    Magic Cold
67108865    Magic Cold Set to Value
67108866    Magic Cold Set to Value
134217728   Stunning
134217729   Stunning Set to Value
134217730   Stunning Set to Percentage
268435456   Soul Eater
268435457   Soul Eater Set to Value
268435458   Soul Eater Set to Percentage
1073741824  Disease
1073741825  Disease Set to Value
1073741825  Disease Set to Percentage

The Dice values can be used to inflict varying damage amounts - e.g. 2d6 would do 2-12 damage (Damage type is still specified by the 'Type' value).

NB. 'Stunning' damage does not stun the target. Stunning damage cannot kill a creature, creatures are reduced to 1 HP and are knocked unconscious.
NB. Using 'Magic Fire' as a damage type will result the game to crash if the damage kills the target.
NB. If 'Damage Amount' and the Dice values are both non-zero, the total damage inflicted is: 'Damage Amount' + Dice value.
NB. 'Damage Amount' can be positive or negative (though the damage sound will play in either case).



#13 (0x00D) Death: Instant Death [13]
Parameter #1: Text Notification
Parameter #2: Death Type
Description:
Instantly kills the targeted creature(s), in the style specified by the 'Death Type' value.

Known values for 'Text Notification' are:
0   Show death message
1   Don't show death message

Known values for 'Death Type' are:
0   Acid death
1   Burning death
2   Crushed death
4   Normal death
8   Chunked death
16  Stoned death
32  Freezing death
64  Exploding stoned death
128 Exploding freezing death
256 Electrified death
512 Disintegration death
1024 Destruction



#14 (0x00E) Graphics: Defrost [14]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
Temporarily removes the colouring indicating frozen_death from the targeted creature(s), but does not remove the frozen_death state itself.



#15 (0x00F) Stat: Dexterity Modifier [15]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Dexterity = Dexterity + 'Statistic Modifier' value
1   Flat Value Modifier -> Dexterity = 'Statistic Modifier' value
2   Percentage Modifier -> Dexterity = (Dexterity * 'Statistic Modifier' value) / 100
3   Cats Grace Spell ('Statistic Modifier' must be 0)

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Dexterity raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#16 (0x010) Haste (state)
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the Haste effect, to the targeted creature(s).
This effect will cancel out the slow opcode.



#17 (0x011) HP: Current HP Modifier [17]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> HP = HP + 'Statistic Modifier' value
1   Flat Value Modifier -> HP = 'Statistic Modifier' value
2   Percentage Modifier -> HP = (HP * 'Statistic Modifier' value) / 100
3   Lay on Hands
4   Wholeness of Body
5   Lathlanders Renewal

NB. If 'Statistic Modifier' and the Dice values are both non-zero, the total HP change is: 'Statistic Modifier' + Dice value.
NB. 'Statistic Modifier' can be positive or negative.



#18 (0x012) HP: Maximum HP Modifier [18]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> HP = HP + 'Statistic Modifier' value
1   Flat Value Modifier -> HP = 'Statistic Modifier' value
2   Percentage Modifier -> HP = (HP * 'Statistic Modifier' value) / 100

3   As 0 (does not affect current HP)
4   As 1 (does not affect current HP)
5   As 2 (does not affect current HP)

NB. If 'Statistic Modifier' and the Dice values are both non-zero, the total HP change is: 'Statistic Modifier' + Dice value.
NB. 'Statistic Modifier' can be positive or negative.



#19 (0x013) Stat: Intelligence Modifier [19]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Intelligence = Intelligence + 'Statistic Modifier' value
1   Flat Value Modifier -> Intelligence = 'Statistic Modifier' value
2   Percentage Modifier -> Intelligence = (Intelligence * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Intelligence raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#21 (0x015) Stat: Lore Modifier [21]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Lore = Lore + 'Statistic Modifier' value
1   Flat Value Modifier -> Lore = 'Statistic Modifier' value
2   Master Value        -> Lore = 100

'Statistic Modifier' can be positive or negative.
NB. This effect does not work with Timing Mode 1.



#22 (0x016) Stat: Cumulative Luck Bonus [21]
Parameter #1: Bonus
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Bonus' field in the style specified by the 'Type' field. The effect does not set STATE_LUCK.

Known values for 'Type' are:
0   Cumulative Modifier -> Luck = Luck + 'Bonus' value
1   Lucky Streak
2   Fortunes Favourite  -> Perfect Rolls

'Statistic Modifier' can be positive or negative.



#23 (0x017) Stat: Morale Modifier [23]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Morale = Morale + 'Statistic Modifier' value
1   Flat Value Modifier -> Morale = 'Statistic Modifier' value
2   Percentage Modifier -> Morale = (Morale * 'Statistic Modifier' value) / 100



#24 (0x018) State: Horror [24]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Applies the horror effect to the targeted creature(s), in the style specified by the 'Type' field.

Known values for 'Type' are:
0 Default
1 Harpy Wail



#25 (0x019) State: Poison [25]
Parameter #1: Damage Amount
Parameter #2: Type
Description:
Damages the target by the 'Damage Amount' value, in the style specified by the 'Type' field.

Known values for 'Type' are:
2   Inflict 'Damage Amount' per second
3   Inflict 1 damge per 'Damage Amount'
4   Inflict 'Damage Amount' per round
6   Snakebite
8   Envonomed Weapon

NB. The 'Damage Amount' parameter should be set a positive value.



#26 (0x01A) Item: Remove Curse [26]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes cursed items from the targeted creature(s).



#27 (0x01B) Stat: Acid Resistance Modifier [27]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Resistance = Resistance + 'Statistic Modifier' value
1   Flat Value Modifier -> Resistance = 'Statistic Modifier' value

'Statistic Modifier' can be positive or negative.



#28 (0x01C) Stat: Cold Resistance Modifier [28]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Resistance = Resistance + 'Statistic Modifier' value
1   Flat Value Modifier -> Resistance = 'Statistic Modifier' value

'Statistic Modifier' can be positive or negative.



#29 (0x01D) Stat: Electricity Resistance Modifier [29]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Resistance = Resistance + 'Statistic Modifier' value
1   Flat Value Modifier -> Resistance = 'Statistic Modifier' value

'Statistic Modifier' can be positive or negative.



#30 (0x01E) Stat: Fire Resistance Modifier [30]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Resistance = Resistance + 'Statistic Modifier' value
1   Flat Value Modifier -> Resistance = 'Statistic Modifier' value

'Statistic Modifier' can be positive or negative.



#31 (0x01F) Stat: Magic Damage Resistance Modifier [31]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Resistance = Resistance + 'Statistic Modifier' value
1   Flat Value Modifier -> Resistance = 'Statistic Modifier' value
2   Percentage Modifier -> Resistance = (Resistance * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.



#32 (0x020) Cure: Death (Raise Dead) [32]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Raises the targeted creature(s) from the dead.
This effect ignores durations attributed to it.

Known values for 'Type' are:
0   Standard resurrection
43  Resurrection and un-petrification



#33 (0x021) Stat: Save vs. Fortitude Modifier [33]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Save = Save + 'Statistic Modifier' value
1   Flat Value Modifier -> Save = 'Statistic Modifier' value

'Statistic Modifier' can be positive or negative.



#34 (0x022) Stat: Save vs. Reflex Modifier [34]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Save = Save + 'Statistic Modifier' value
1   Flat Value Modifier -> Save = 'Statistic Modifier' value
2   Percentage Modifier -> Save = (Save * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.



#35 (0x023) Stat: Save vs. Will Modifier [35]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Save = Save + 'Statistic Modifier' value
1   Flat Value Modifier -> Save = 'Statistic Modifier' value
2   Percentage Modifier -> Save = (Save * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.



#38 (0x026) State: Silence [38]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the silence effect to the targeted creature(s).



#39 (0x027) State: Unconsciousness [39]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Applies the unconsciousness effect to the targeted creature(s), in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Awaken on Damage
1   Don't Awaken on Damage



#40 (0x028) State: Slow [40]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the slow effect to the targeted creature(s).
This effect will cancel out the haste opcode.



#41 (0x029) Sparkle
Parameter #1: Sparkle Color
Parameter #2: Sparkle Type
Description:
The Sparkle Type parameter sets the type of Sparkle effect of the color set by the Sparkle Color parameter. Known values for the Sparkle Type parameter are: 1 for explosion, 2 for swirl, and 3 for shower.



#42 (0x02A) Spell: Wizard Spell Slots Modifier [42]
Parameter #1: Slot Amount Modifier
Parameter #2: Spell Level
Description:
Alters the number of wizard spell slots available to the targeted creature(s), as specified by the 'Slot Amount Modifier' field, at the level specified by the 'Spell Level' field. Wizard spells are used by Bards, Sorcerers and Wizards.

Known values for 'Spell Level' are:
0   Double spells
1   Level 1
1   Level 1
2   Level 2
4   Level 3
8   Level 4
16  Level 5
32  Level 6
64  Level 7
128 Level 8
256 Level 9

For a 'Spell Level' of 0, the amount of spell slots is doubled for the level specified by the 'Slot Amount Modifier' value and all levels below. The target creature(s) must have at least 1 slot at the selected level to have their slot count changed. If the resultant slot count is negative, the creature is given 12 slots.

'Statistic Modifier' can be positive or negative.



#43 (0x02B) Stone to Flesh
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Leave both parameters at all zeros for this Effect to work.



#44 (0x02C) Stat: Strength Modifier [44]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Strength = Strength + 'Statistic Modifier' value
1   Flat Value Modifier -> Strength = 'Statistic Modifier' value
2   Percentage Modifier -> Strength = (Strength * 'Statistic Modifier' value) / 100
3   Strength Spell ('Statistic Modifier' must be 0)

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Strength raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#45 (0x02D) State: Stun [45]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Stuns the targeted creature(s), in the style specified by the 'Type' field.

Know values for 'Type' are:
0   Default
1   Unstun on Damage
2   Power Word Stun



#46 (0x02E) Cure: Stun (Unstun) [46]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Unstuns the targeted creature(s) (opcode #45).
This effect ignores durations attributed to it.



#47 (0x02F) Cure: Invisibility [47]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
Removes the invisibility effect from the targeted creature(s).
Both parameters should be 0 (zero).



#48 (0x030) Cure: Silence (Vocalize) [48]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the silence effect and the silenced state from the targeted creature(s).
This effect ignores durations attributed to it.



#49 (0x031) Stat: Wisdom Modifier [49]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Wisdom = Wisdom + 'Statistic Modifier' value
1   Flat Value Modifier -> Wisdom = 'Statistic Modifier' value
2   Percentage Modifier -> Wisdom = (Wisdom * 'Statistic Modifier' value) / 100

'Statistic Modifier' can be positive or negative.

With a Timing Modes of Permanent or Delayed, if 'Type' is 0 and 'Statistic Modifier' is positive, the statistic will alter and remain shown in white text, and a message 'Wisdom raised permanently' will be shown.
With a Timing Modes of Permanent or Delayed, if 'Type' is 1 or 2, or 'Statistic Modifier' is negative, the statistic will alter and remain shown in white text, though no message is shown.
With all other Timing Modes, the statistic will alter and be shown in red text.



#50 (0x032) Single Color Pulse All
Parameter #1: RGB Color
Parameter #2: Irrelevant
Description:
Set the RGB Color parameter to the color value you want to use with the second byte being the Red portion (0-255), the third byte the Green portion (0-255), and the fourth byte being the Blue portion (0-255).



#51 (0x033) Color Tint solid
Parameter #1: RGB Color
Parameter #2: Location
Description:
Set the RGB Color parameter to the color value you want to use with the second byte being the Red portion (0-255), the third byte the Green portion (0-255), and the fourth byte being the Blue portion (0-255) and the part specified by the Location parameter will be that color. The known values of the Location part of the Location and Speed parameter: 00 is Body metal, 01 is Body User 2, 02 is Body User 1, 03 is Body Skin, 04 is Body Leather, 05 is Body Armor, 06 is Body Hair, 16 is Weapon Metal, 18 is Weapon User 1, 19 is Weapon User 2, 20 is Weapon Leather, 21 is Weapon Armor, 32 is Shield Metal, 33 is Shield User 2, 34 is Shield User 1, 36 is Shield Leather, 37 is Shield Armor, 48 is Helmet Metal, 49 is Helmet User 2, 50 is Helmet User 1, 52 is Helmet Leather, 53 is Helmet Armor, 255 is Whole Body.



#52 (0x034) Color Light Solid
Parameter #1: RGB Color
Parameter #2: Location
Description:
Set the RGB Color parameter to the color value you want to use with the second byte being the Red portion (0-255), the third byte the Green portion (0-255), and the fourth byte being the Blue portion (0-255) and the part specified by the Location parameter will be that color. The known values of the Location part of the Location and Speed parameter: 00 is Body metal, 01 is Body User 2, 02 is Body User 1, 03 is Body Skin, 04 is Body Leather, 05 is Body Armor, 06 is Body Hair, 16 is Weapon Metal, 18 is Weapon User 1, 19 is Weapon User 2, 20 is Weapon Leather, 21 is Weapon Armor, 32 is Shield Metal, 33 is Shield User 2, 34 is Shield User 1, 36 is Shield Leather, 37 is Shield Armor, 48 is Helmet Metal, 49 is Helmet User 2, 50 is Helmet User 1, 52 is Helmet Leather, 53 is Helmet Armor, 255 is Whole Body.



#53 (0x035) Animation Change
Parameter #1: Animation Type
Parameter #2: Irrelevant
Description:
This effect will change the animation type as set by the Animation Type parameter.



#54 (0x036) Stat: Base Attack Bonus Modifier [54]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> BAB = BAB + 'Statistic Modifier' value
1   Flat Value Modifier -> BAB = 'Statistic Modifier' value
2   Percentage Modifier -> BAB = (BAB * 'Statistic Modifier' value) / 100



#55 (0x037) Death: Kill Creature Type [55]
Parameter #1: IDS Entry
Parameter #2: IDS File
Description:
Kills the targeted creature(s) with HD less than those specified by the Dice values, if the target(s) match the IDS mask.

Known values for 'IDS File' are:
2   EnemyAlly.ids
3   General.ids
4   Race.ids
5   Class.ids
6   Specific.ids
7   Gender.ids
8   Align.ids

'IDS Entry' is a value from the specified IDS file, indicating the specific creature type to affect.



#56 (0x038) Alignment: Invert [56]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Inverts the alignment of the targeted creature(s).
Both parameters should be 0 (zero).



#57 (0x039) Alignment: Change [57]
Parameter #1: Irrelevant
Parameter #2: Alignment
Description:
Alters the alignment of the targeted creature(s) to the value specified by 'Alignment'.

Known values for 'Alignment' are:
00   None
17   Lawful Good
18   Lawful Neutral
19   Lawful Evil
33   Neutral Good
34   True Neutral
35   Neutral Evil
49   Chaotic Good
50   Chaotic Neutral
51   Chaotic Evil



#58 (0x03A) Cure: Dispellable Effects (Dispel Magic) [58]
Parameter #1: Level
Parameter #2: Type
Description:
Dispels magic from the targeted creature(s) (excepting magical weapons eg. Spirtual Hammer). Depending on the value of the 'Type' field, the 'Level' field can be used to set the level of the effect.

Known values for 'Type' are:
0   Always dispel
1   Use Caster Level
2   Use 'Level' field

With 'Type' of 1 or 2, the base chance of successfully dispelling is 50%. This chance is modified by the relative levels of the dispeller to the caster. Each level below gives a -10% chance, each level above gives a +5% chance. There is always a 1% chance of success or failure.



#59 (0x03B) Stat: Stealth Modifier [59]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Stealth = Stealth + 'Statistic Modifier' value
1   Flat Value Modifier -> Stealth = 'Statistic Modifier' value
2   Percentage Modifier -> Stealth = (Stealth * 'Statistic Modifier' value) / 100



#60 (0x03C) Stat: Miscast Magic [60]
Parameter #1: Percent Chance
Parameter #2: Type
Description:
The targeted creature(s) will fail to cast the type of spell specified by the 'Type' field, 'Percent Chance' percent of the time.

Known values for 'Type' are:
0   Mage Spells
1   Cleric Spells
2   Innate



#61 (0x03D) Stat: Alchemy
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field, to the alchemy skill.

Known values for 'Type' are:
0   Cumulative Modifier -> Alchemy = Alchemy + 'Statistic Modifier' value
1   Flat Value Modifier -> Alchemy = 'Statistic Modifier' value
2   Master Modifier -> Alchemy = 100



#62 (0x03E) Spell: Priest Spell Slots Modifier [62]
Parameter #1: Slot Amount Modifier
Parameter #2: Spell Level
Description:
Alters the number of priest spell slots available to the targeted creature(s), as specified by the 'Slot Amount Modifier' field, at the level specified by the 'Spell Level' field. Priest spells are used by Clerics, Druids, Paladins and Rangers.

Known values for 'Spell Level' are:
0   Double spells
1   Level 1
1   Level 1
2   Level 2
4   Level 3
8   Level 4
16  Level 5
32  Level 6
64  Level 7
512 Double spells

For a 'Spell Level' of 0, the amount of spell slots is doubled for the level specified by the 'Slot Amount Modifier' value and all levels below. For a 'Spell Level' of 512, the amount of spell slots is doubled for the level(s) specified by the 'Slot Amount Modifier' field. The target creature(s) must have at least 1 slot at the selected level to have their slot count changed. If the resultant slot count is negative, the creature is given 12 slots.

'Statistic Modifier' can be positive or negative.



#63 (0x03F) State: Infravision [63]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
Gives the targeted creature(s) infravision.
Both parameters should be 0 (zero).



#64 (0x040) State: Remove Infravision [64]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
Removes infravision from the targeted creature(s).

NB. This will not remove racial infravision.

Both parameters should be 0 (zero).



#65 (0x041) Overlay: Blur [65]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the blur effect to the targeted creature(s). Graphical displacement is affected by movement rate.
Both parameters should be 0 (zero).



#66 (0x042) Graphics: Transparency Fade [66]
Parameter #1: Fade Amount
Parameter #2: Type
Description:
Fades the targeted creature(s) by the value in the amount specified by the 'Fade Amount' field.

Known values for 'Fade Amount' are:
1   Fully visible
..
255 Almost invisible

Known values for 'Type' are:
0   Default
1   Fade In
2   Fade Out



#67 (0x043) Summon
Parameter #1: Creature Number
Parameter #2: Summoning Animation
Description:
The Creature Number parameter set the number to be summoned, and the Summoning Animation parameter sets the type of animation to use for the summoning.

Known values for the Summoning Animation parameter are:
0   no animation
1   monster summoning circle
2   animal summoning circle
3   earth summoning circle
4   fire summoning circle
5   water summoning circle
7   puff of smoke only

The Dice values can be used to set the number of creatures summoned, in addition to the Number parameter



#68 (0x044) Summon: Unsummon Creature [68]
Parameter #1: Text Notification
Parameter #2: Irrelevant
Description:
Unsummons a creature, with feedback controlled by 'Text Notification'.

Known values for 'Text Notification' are:
0   No text notification
1   Show text notification



#69 (0x045) Protection: From Detection (Non-Detection) [69]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the non-detection effect to the targeted creature(s).
Both parameters should be 0 (zero).



#70 (0x046) (End Non-Detection) [70]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.



#71 (0x047) IDS: Sex Change [71]
Parameter #1: Gender Modifier
Parameter #2: Type
Description:
Alters the gender of the targetted creature(s) to the value specified by the 'Gender.ids' field, in the style specified by the 'Type' value.

Known values for 'Type' are:
0 Reverse Gender
1 Flat Value Modifier -> Gender = 'Statistic Modifier' value (values from gender.ids)



#72 (0x048) AI Change
Parameter #1: Reaction State
Parameter #2: Type
Description:
Set the Reaction State parameter to the value of the state you wish the Effect to do. Known values of the Type parameter are: 0 for EnemyAlly, 1 for General, 2 for Race, 3 for Class, 4 for Specific, 5 for Gender, and 6 for Alignment.



#73 (0x049) Damage Mod
Parameter #1: Damage Modifier
Parameter #2: Type
Description:
Inflicts a percentage extra damage (set by the 'Damage Modifier' parameter) of the type specified by the 'Type' parameter.

Known values for 'Type' are:
0  Standard
1  Fire
2  Cold
3  Electricity
4  Acid
5  Magic
6  Poison
7  Slashing
8  Piercing
9  Crushing
10 Missile

Note. 'Type' 0 causes a flat damage increase, rather than a percentage.



#74 (0x04A) State: Blindness [74]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the blindness effect to the targeted creature(s).
Both parameters should be 0 (zero).



#75 (0x04B) Cure: Blindness [75]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the blindness effect from the targeted creature(s).
Both parameters should be 0 (zero).



#76 (0x04C) State: Feeblemindedness [76]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the feeblemind effect to the targeted creature(s) - creatures are unselectable, immobile and do not respond to combat.
This effect ignores durations attributed to it.

NB. A creatures scripts do not while the creature is feebleminded.



#77 (0x04D) Cure: Feeblemindedness [77]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the feeblemind effect from the targeted creature(s).
Both parameters should be 0 (zero).



#78 (0x04E) State: Disease [78]
Parameter #1: Damage
Parameter #2: Type
Description:
Set the Damage parameter as the amount of damage, and the Disease Type parameter as how the disease functions.

Known values for 'Type' are:
1   Hit Points per round
2   Hit Points per Second
3   Seconds per Hit Points
4   Strength Penalty
5   Dexterity Penalty
6   Constitution Penalty
7   Intelligence Penalty
8   Wisdom Penalty
9   Charisma Penalty
10  Slow Effect
11  Mold Touch
13  Contagion
14  Cloud of Pestilence
15  Dolorous Decay

'Damage' can be positive (penalty) or negative (bonus).

Permanent timing modes require a duration for this effect to work.



#79 (0x04F) Cure: Disease [79]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the disease effect from the targeted creature(s).
Both parameters should be 0 (zero).



#80 (0x050) State: Deafness [80]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
This effect causes the target resistant of bard songs and some sound based spells, and increases failure of arcane or divine spells by 20%.



#81 (0x051) Cure: Deafness [81]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Remove the deafness effect from the targeted creature(s).
Both parameters should be 0 (zero).



#82 (0x052) Set AI Script [82]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Sets the script type specified by the 'Type' value to the contents of the resource key.

Known values for 'Type' are:
0   OVERRIDE
1   AREA
2   SPECIFICS
4   CLASS
5   RACE
6   GENERAL
7   DEFAULT

NB. This effect can unset scripts from a creature, which can break the game.



#83 (0x053) Protection: From Projectile Weapon [83]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Gives the targeted creature(s) immunity to the weapon type specified by the 'Type' value.

Known values for 'Type' are:
0    Instant
1    Arrow
2    Arrow Exploding
3    Arrow Flaming
4    Arrow Heavy
5    Arrow (Non-Magical)
6    Axe
7    Axe Exploding
8    Axe Flaming
9    Axe Heavy
10   Axe (Non-Magical)
11   Bolt
12   Bolt Exploding
13   Bolt Flaming
14   Bolt Heavy
15   Bolt (Non-Magical)
16   Bullet
17   Bullet Exploding
18   Bullet Flaming
19   Bullet Heavy
20   Bullet (Non-Magical)
26   Dagger
27   Dagger Exploding
28   Dagger Flaming
29   Dagger Heavy
30   Dagger (Non-Magical)
31   Dart
32   Dart Exploding
33   Dart Flaming
34   Dart Heavy
35   Dart (Non-Magical)
36   Magic Missile
37   Fireball
39   Lightning Bolt
41   Sleep
55   Spear
56   Spear Exploding
57   Spear Flaming
58   Spear Heaby
59   Spear (Non-Magical)
62   Web Travel
63   Web Ground
64   Gaze
65   Holy Might
66   Flame Strike
67   Magic Missile 1
68   Magic Missile 2
69   Magic Missile 3
70   Magic Missile 4
71   Magic Missile 5
72   Magic Missile 6
73   Magic Missile 7
74   Magic Missile 8
75   Magic Missile 9
76   Magic Missile 10
94   Cloud
95   Skull Trap
96   Color Spray
97   Ice Storm
98   Fire Wall
99   Glyph
100  Grease
101  Flame Arrow Green
102  Flame Arrow Blue
103  Fireball Green
104  FireBall Blue
105  Potion
106  Potion Exploding
107  Acid Blob
108  Scorcher
109  Travel Door
186  Cloudkill
187  Flame Arrow Ice
188  Cow
189  Hold
190  Scorcher Ice
191  Acid Blob Mustard
192  Acid Blob Grey
193  Acid Blob Ochre
217  Icewind Magic Missile
313  Modenkainen's Force Missiles
345  Sekolah's Fire.



#84 (0x054) Stat: Magical Fire Resistance Modifier [84]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:

*DO NOT USE*
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#85 (0x055) Stat: Magical Cold Resistance Modifier [85]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:

*DO NOT USE*
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#86 (0x056) Stat: Slashing Resistance Modifier [86]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#87 (0x057) Stat: Crushing Resistance Modifier [87]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#88 (0x058) Stat: Piercing Resistance Modifier [88]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#89 (0x059) Stat: Missiles Resistance Modifier [89]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Damage = Damage + 'Statistic Modifier' value
1   Flat Value Modifier -> Damage = 'Statistic Modifier' value



#90 (0x05A) Stat: Open Locks Modifier [90]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#91 (0x05B) Stat: Find Traps Modifier [91]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#92 (0x05C) Stat: Pick Pockets Modifier [92]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#93 (0x05D) Stat: Fatigue Modifier [93]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#94 (0x05E) Stat: Drunkenness Modifier [94]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#95 (0x05F) Stat: Tracking Skill Modifier [95]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Skill = Skill + 'Statistic Modifier' value
1   Flat Value Modifier -> Skill = 'Statistic Modifier' value
2   Percentage Modifier -> Skill = (Skill * 'Statistic Modifier' value) / 100



#96 (0x060) Stat: Level Change [96]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Level = Level + 'Statistic Modifier' value
1   Flat Value Modifier -> Level = 'Statistic Modifier' value
2   Percentage Modifier -> Level = (Level * 'Statistic Modifier' value) / 100

The class to receive the level change is specified at 0x2c



#97 (0x061) Stat: Strength-Bonus Modifier [97]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Bonus = Bonus + 'Statistic Modifier' value
1   Flat Value Modifier -> Bonus = 'Statistic Modifier' value
2   Percentage Modifier -> Bonus = (Bonus * 'Statistic Modifier' value) / 100



#98 (0x062) HP: Regeneration [98]
Parameter #1: Regeneration Amount
Parameter #2: Type
Description:
Restores HP to the value of 'Regeneration Amount' in the style specified by the 'Type' field, to the targeted creature(s).

Known values for 'Type' are:
1   Restore 'Damage Amount' as a percentage of total HP
2   Restore x HP every second
3   Restore 1HP every x seconds
4   Restrore x HP per round

Permanent timing modes require a duration for this effect to work.



#99 (0x063) Spell Effect: Duration Modifier [99]
Parameter #1: Duration Modifier
Parameter #2: Type
Description:
Alters spell durations of the targeted creature(s), to the percentage specified by the 'Duration Modifier' field, affecting the spell type specified by the 'Type' field. Timing mode 0 is the only timing mode reliably affected.

eg.
'Type' = 0   -> Spells have no duration
'Type' = 100 -> Spells have normal duration
'Type' = 200 -> Spells have double duration

Known values for 'Type' are:
0   Mage
1   Priest



#100 (0x064) Protection: from Creature Type [100]
Parameter #1: IDS Entry
Parameter #2: IDS File
Description:

*DONT USE*

Gives the targeted creature(s) protection from the creature type specified by the 'IDS File' and 'IDS Entry' fields.

Known values for 'IDS File' are:
2   EA.ids
3   General.ids
4   Race.ids
5   Class.ids
6   Specific.ids
7   Gender.ids
8   Align.ids



#101 (0x065) Protection: from Opcode [101]
Parameter #1: Irrelevant
Parameter #2: opcode
Description:
Gives the targeted creature(s) protection from the opcode specified by the 'opcode' field.




#102 (0x066) Protection: from Spell Levels [102]
Parameter #1: Spell Level
Parameter #2: Irrelevant
Description:
Gives the targeted creature(s) protection from spells up to the level specified by the 'Spell Level' field.

Known values for 'Spell Level' are:
1
..
9



#103 (0x067) Text: Change Name [103]
Parameter #1: String Reference
Parameter #2: Irrelevant
Description:
Alters the name of the targeted creature(s) to the strref specified by the 'String Reference' field. When used with a duration timing, after the duration, the name will be set to a blank entry.



#104 (0x068) Stat: Experience Points [104]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> XP = XP + 'Statistic Modifier' value
1   Flat Value Modifier -> XP = 'Statistic Modifier' value
2   Percentage Modifier -> XP = (XP * 'Statistic Modifier' value) / 100



#105 (0x069) Stat: Gold [105]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Gold = Gold + 'Statistic Modifier' value
1   Flat Value Modifier -> Gold = 'Statistic Modifier' value
2   Percentage Modifier -> Gold = (Gold * 'Statistic Modifier' value) / 100

NB. This effect can only be used to lower the gold value.



#106 (0x06A) Stat: Morale Break Modifier [23]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Known values for 'Type' are:
0   Cumulative Modifier -> Morale Break = Morale Break + 'Statistic Modifier' value
1   Flat Value Modifier -> Morale Break = 'Statistic Modifier' value
2   Percentage Modifier -> Morale Break = (Morale * 'Statistic Modifier' value) / 100



#107 (0x06B) Portrait Change [107]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Sets the portrait of the targeted creature(s) to that specified in the resource key, based on the 'Type' value. This effect ignores durations attributed to it.

Known values for 'Type' are:
0   Small portrait
1   Large portrait



#108 (0x06C) Stat: Reputation [108]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Sets the individual reputation of the targeted creature(s) to the value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.
This does not affect the main reputation of the Party.

Known values for 'Type' are:
0   Cumulative Modifier -> Reputation = Reputation + 'Statistic Modifier' value
1   Flat Value Modifier -> Reputation = 'Statistic Modifier' value
2   Percentage Modifier -> Reputation = (Reputation * 'Statistic Modifier' value) / 100



#109 (0x06D) State: Hold [109]
Parameter #1: IDS Entry
Parameter #2: IDS File
Description:
Applies the hold effect to the targeted creature(s), if the targeted creature(s) match the value specified by the 'IDS Entry' field, in the specified 'IDS File'.

Known values for 'IDS File' are:
2   EA.ids
3   General.ids
4   Race.ids
5   Class.ids
6   Specific.ids
7   Gender.ids
8   Align.ids



#111 (0x06F) Item: Create Magical Weapon [111]
Parameter #1: Amount
Parameter #2: Irrelevant
Description:
Creates the item specified by the resource key. The number of items created is controlled by the 'Amount' field. The item is created in the Magical Weapon slot.



#112 (0x070) Item: Remove Item [112]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the item specified by the resource key from the targeted creature(s).
Both parameters should be 0 (zero).



#113 (0x071) Item: (Equip Weapon) [113]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.



#114 (0x072) Graphics: Dither [114]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.

***This effect has never been seen to work.***



#115 (0x073) Detect: Alignment [115]
Parameter #1: Irrelevant
Parameter #2: Alignment Mask
Description:

*DONT USE*
Detects the alignment specified by the 'Alignment Mask' field.

Known values for 'Alignment Mask' are:
0   Evil (Glow red)
1   Neutral (Glow blue)
2   Good (Glow Green)



#116 (0x074) State: Cure Invisibility [116]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes invisibility from the targeted creature(s).
Both parameters should be 0 (zero).



#117 (0x075) Spell Effect: Clairvoyance [117]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the clairvoyance effect to the targeted creature(s).
Both parameters should be 0 (zero).



#118 (0x076) Detect: (Show Creatures) [118]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.



#119 (0x077) Spell Effect: Mirror Image [119]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Applies the mirror image effect to the targeted creature(s), creating mirror images in the style specified by the 'Type' field. The number of images is dicated by the level of the caster.

Know values for 'Type' are:
0  Normal
1  Reflected Image



#120 (0x078) Protection: from Melee Weapons [120]
Parameter #1: Enchantment
Parameter #2: Type
Description:
Gives the targeted creature(s) immunity to melee weapons as specified by the 'Type' field. The 'Enchantment' field is used if 'Type' is set to 0.

Known values for 'Type' are:
0  Enchantment
1  Magical
2  Non-Magical
3  Silver
4  Non-Silver
5  Silver / Non-Magical
6  Two-Handed
7  Non Two-Handed
8  Cursed
9  Non-Cursed
10 Cold-Iron
11 Non Cold-Iron



#121 (0x079) Graphics: (Visual Animation Effect) [121]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.

***This effect has never been seen to work.***



#122 (0x07A) Item: Create Inventory Item [122]
Parameter #1: Location
Parameter #2: Type
Description:
Creates the item specified by the resource key, in the place specified by the 'Location' and 'Type' fields.

Know values for 'Type' are:
0  Group
1  Slot (Set 'Location to the slot index)



#123 (0x07B) Item: Remove Inventory Item [123]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Removes the item specified by the resource key from the targeted creature(s).
Both parameters should be 0 (zero).



#124 (0x07C) Spell Effect: Teleport (Dimension Door) [124]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Teleports the targeted creature(s), in the style specified by the 'Type' field.

Known values for 'Type' are:
0  Default
1  Source to Target
2  Return to Saved Location
3  Exchange Source and Target

Both parameters should be 0 (zero).



#125 (0x07D) Spell Effect: Unlock (Knock) [125]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the knock effect to the targeted creature(s).
Both parameters should be 0 (zero).



#126 (0x07E) Stat: Movement Modifier [126]
Parameter #1: Statistic Modifier
Parameter #2: Type
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field.

Values for 'Statistic Modifier' range from 0 (immobile) to 255 (instantaneous).

Known values for 'Type' are:
0   Cumulative Modifier -> Movement = Movement + 'Statistic Modifier' value
1   Flat Value Modifier -> Movement = 'Statistic Modifier' value
2   Percentage Modifier -> Movement = (Movement * 'Statistic Modifier' value) / 100



#127 (0x07F) Summon: Monster Summoning [127]
Parameter #1: Number
Parameter #2: Type
Description:

*DONT USE*
Summons a number of monsters.
Each creature files has a Creature Power Level number (at 0x18). The amount of monsters summoned by this effect is equal to the 'Number' field / Creature Power Level.
The 'Type' field set which 2da file to pick the creatures to summon from. The 2da files are monsumX and anisumX, where X = Type + 1. The specific 2da files used are:
0 MONSUM01 Monster Summon 1
1 MONSUM02 Monster Summon 2
2 MONSUM03 Monster Summon 3
3 ANISUM01 Animal Summon 1
4 ANISUM02 Animal Summon 2
5 MONSUM01 Monster Summon 1 Hostile
6 MONSUM02 Monster Summon 2 Hostile
7 MONSUM03 Monster Summon 3 Hostile
8 ANISUM01 Animal Summon 1 Hostile
9 ANISUM02 Animal Summon 2 Hostile

A custom .2da file can be entered in the resource field.

If used from an external effect (.eff), th
e vvc field controls the bam file played when summoning.



#128 (0x080) State: Confusion [128]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the confusion effect the targeted creature(s). The creature will run around uncontrollable, randomly attacking.



#129 (0x081) State: Aid [129]
Parameter #1: Statistic Modifier
Parameter #2: Irrelevant
Description:
Applies a bless effect, a bonus to HP and a bonus to saving throws to the targeted creature(s). The bonus is a number of 8-sided dice, with the number of dice controlled by the 'Statistic Modifier' value.



#130 (0x082) State: Bless [130]
Parameter #1: Modifier
Parameter #2: Irrelevant
Description:
Modifies the THAC0 and morale of the target creature(s) by the amount specified by the 'Modifier' parameter.



#131 (0x083) State: Chant [131]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Applies the chant effect to the targeted creature(s), in the style specified by the 'Type' field. Chant affects the minimum damage caused by a weapon (up to the normal maximum damage of the weapon) and the attack roll modifier (up to a maximum of 20, excluding natural attack roll modifiers, e.g. high STR, invisibility etc) by 'Statistic Modifier' amount. The effect sets STATE_CHANT.

Known values for 'Type are:
0  Beneficial
1  Detrimenal



#132 (0x084) State: Raise Strength, Constitution, & Dexterity Non-Cumulative [132]
Parameter #1: Statistic Modifier
Parameter #2: Irrelevant
Description:
Raises the strength, constitution and dexterity of the targeted creature(s) by the value specified by the 'Statistic Modifier' field. A negative value of 'Statistic Modifier' sets the strength, constitution and dexterity of the targeted creature(s) to 25.



#133 (0x085) Spell Effect: Luck Non-Cumulative [133]
Parameter #1: Statistic Modifier
Parameter #2: Irrelevant
Description:
Applies the modifier value specified by the 'Statistic Modifier' field in the style specified by the 'Type' field to the targetted creatures luck. Luck affects the minimum damage caused by a weapon (up to the normal maximum damage of the weapon) and the attack roll modifier (up to a maximum of 20, excluding natural attack roll modifiers, e.g. high STR, invisibility etc) by 'Statistic Modifier' amount. The effect sets STATE_LUCK.



#134 (0x086) State: Petrification [134]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the petrification effect to the targeted creature(s). This effects kills & removes PC's from the party.
Both parameters should be 0 (zero).



#135 (0x087) Polymorph into Specific [135]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Polymorphs the targeted creature(s) into the creature specified by the resource key.



#136 (0x088) State: Force Visible [136]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
Renders the targeted creature(s) partially visible (does not remove the invisibility state, but the targeted is visible and attackable).
The effect has no meaning on visible targets.
This effect has no duration.



#137 (0x089) State: Negative Chant [137]
Parameter #1: Modifier
Parameter #2: Irrelevant
Description:

*DONT USE*
Applies the chant effect to the targeted creature(s).
This effect works as the reverse of chant. The effect sets STATE_CHANTBAD.



#138 (0x08A) Graphics: Character Animation Change [138]
Parameter #1: Irrelevant
Parameter #2: Animation Sequence
Description:
The targeted creature(s) shows the animation sequence specified by the 'Animation Sequence' field.

Known values for 'Type' are (from SEQ.IDS):
0   Attack
1   Awake
2   Cast
3   Conjure
4   Damage
5   Die
6   Turn head
7   Ready
8   Shoot
9   Twitch
10  Walk
11  Attack (Slash)
12  Attack (Backslash)
13  Attack (Jab)
14  Emerge
15  Hide
17  Sleep



#139 (0x08B) Text: Display String [139]
Parameter #1: String Reference
Parameter #2: Irrelevant
Description:
Displays the strref specified by the 'String Reference' value.



#140 (0x08C) Graphics: Casting Glow [140]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Creates 2D Animation for casting glow.

Known values for 'Type' are:
0 .. 8 = Crash
9   Casting Glow (Necromancy)
10  Casting Glow (Alteration)
11  Casting Glow (Enchantment)
12  Casting Glow (Abjuration)
13  Casting Glow (Illusion)
14  Casting Glow (Conjuration)
15  Casting Glow (Invocation)
16  Casting Glow (Divination)
17+ Crashes



#141 (0x08D) Graphics: Lighting Effects [141]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Shows the lighting effect specified by the 'Type' value.

Known values for 'Type' are:
0   Necromancy Air
1   Necromancy Earth
2   Necromancy Water
4   Alteration Air
5   Alteration Earth
6   Alteration Water
8   Enchantment Air
9   Enchantment Earth
10  Enchantment Water
12  Abjuration Air
13  Abjuration Earth
14  Abjuration Water
16  Illusion Air
17  Illusion Earth
18  Illusion Water
20  Conjure Air
21  Conjure Earth
22  Conjure Water
24  Invocation Air
25  Invocation Earth
26  Invocation Water
28  Divination Air
29  Divination Earth
30  Divination Water
32  Mushroom Fire
33  Mushroom Grey
34  Mushroom Green
35  Shaft Fire
36  Shaft Light
37  Swirl White
38  Door
39  Finger of Death



#142 (0x08E) Portrait Icon
Parameter #1: Irrelevant
Parameter #2: Icon Type
Description:
The Icon Type parameter sets which icon is shown. Known values are 00 is charm, 03 is confused, 04 is beserk, 05 is intoxicated, 06 is poisoned, 07 is diseased, 08 is blind, 09 is protection from evil, 10 is protection from petrification, 11 is protection from normal missiles, 12 is armour, 13 is held, 14 is asleep, 15 is shield, 16 is protection from fire, 17 is bless, 18 is chant, 19 is free action, 20 is barkskin, 21 is strength, 22 is heroism, 23 is spell invulnerability, 24 is protection from acid, 25 is protection from cold, 27 is protection from electricity, 28 is protection from magic, 29 is protection from undead, 30 is protection from poison, 31 is non-detectable, 32 is good luck, 33 is bad luck, 34 is silenced, 35 is cursed, 36 is panic, 37 is resist fear, 38 is hasted, 39 is fatigued, 40 is bard song, 41 is slowed, 42 is regenerating, 43 is nauseous, 44 is stunned, 45 is ghost armour, 46 is stoneskin, 47 is  hopelessness, 48 is courage, 49 is friends, 50 is hope, 51 is malison, 52 is spirit armour, 53 is dominated, 54 is feebleminded, 55 is tenser's transformation, 56 is mind blank, 57 is aid, 58 is find traps, 59 is draw upon holy might, 60 is miscast magic, 61 is strength of one, 62 is prayer, 63 is defensive harmony, 64 is recitation, 65 is champion's strength, 66 is chaotic commands, 67 is righteous wrath of the faithful, 68 is phased, 69 is pain, 70 is impervious sanctity of mind, 71 is petrified, 72 is iron body, 73 is animal rage, 74 if exaltation, 75 is cat's grace, 76 is blood rage, 77 is the ballad of three heroes, 78 is the tale of curran strongheart, 79 tymora's melody, 80 the song of kaudies, 81 is the siren's yearning, 82 is war chant of sith, 83 is deaf, 84 is armour of faith, 85 is bleeding wound, 86 is holy power, 87 is death ward, 88 is unconscious, 89 is iron skins, 90 is enfeeblement, 91 is sanctuary, 92 is entangle, 93 is protection from the elements, 94 is grease, 95 is web, 96 is minor globe of invulnerability, 97 is globe of invulnerability, 98 is shroud of flame, 99 is antimagic shell, 100 is otiluke's resilient sphere, 101 is intelligence drained by mind flayer, 102 is cloak of fear, 103 is entropy shielf, 104 is insect plague, 105 is storm shell, 106 is shield of Lathlander, 107 is greater shield of Lathlander, 108 is seven eyes, 109 is blur, 110 is invisibility, 111 is barbarian rage, 112 is called shot, 113 is defensive spin, 114 is maximized attacks, 115 is offensive spin, 116 is envenom weapon, 117 is unconscious, 118 is doom , 119 is aegis, 120 is executioner's eyes, 121 is fire shield (red), 122 is fire shield (blue), 123 is energy drained, 124 is faerie fire, 125 is tortoise shell, 126 is spell shield, 127 is negative energy protection, 128 is aura of vitality, 129 is death armour, 130 is blink, 131 is vipergout, 132 is mind fog, 134 is stunning fist, 135 is quivering palm, 136 is rams paradox, 137 is blindess, 138 is heroic inspiration, 139 is vocalize, 140 is despair, 141 is ilmater's endurance, 142 is destructive blow, 143 is master thievery, and 144 is improved invisibility.



#143 (0x08F) Item: Create Item in Slot [143]
Parameter #1: Slot
Parameter #2: Irrelevant
Description:
Creates the item specified by the resource key in the slot specified by the 'Slot' field, on the targeted creature(s).



#144 (0x090) Button: Disable Button [144]
Parameter #1: Irrelevant
Parameter #2: Button
Description:
Disabled the button specified by the 'Button' field.

Known values for 'Button' are:
0   Stealth Button
1   Thieving Skill Button
2   Spell Select Button
3   Quick Spell Button 1
4   Quick Spell Button 2
5   Quick Spell Button 3
6   Quick Spell Button 4
7   Quick Spell Button 5
8   Quick Spell Button 6
9   Quick Spell Button 7
11  Quick Spell Button 8
12  Bard Song
13  Quick Song 1
14  Quick Song 2
15  Quick Song 3
16  Quick Song 4
17  Quick Song 5
18  Quick Song 6
19  Quick Song 7
20  Quick Song 8
21  Quick Song 9
22  Quick Skill 1
23  Quick Skill 2
24  Quick Skill 2
25  Quick Skill 3
26  Quick Skill 4
27  Quick Skill 5
28  Quick Skill 6
29  Quick Skill 7
30  Quick Skill 8
31  Quick Skill 0
32  Quick Skill 1
33  Quick Skill 2
34  Quick Skill 3
35  Quick Skill 4
36  Quick Skill 5
37  Quick Skill 6
38  Quick Skill 7
39  Quick Skill 8



#145 (0x091) Spell: Disable Spell Casting Abilities [145]
Parameter #1: Irrelevant
Parameter #2: Spell Type
Description:
Disables spell casting abilities of the targeted creature(s), in the style specified by the 'Spell Type;' field.

Known values for 'Type' are:
0   All
1   All, except Innate
2   Wizard
3   Cleric
4   Innate



#146 (0x092) Spell: Cast Spell (as Target) [146]
Parameter #1: Casting Level
Parameter #2: Type
Description:
Casts the spell specified by the resource key at the level specified by the 'Casting Level' field, in the style specified by the 'Type' field. A 'Casting Level' of 0 casts at the level of the casting creature.

Known values for 'Type' are:
0   Normal Casting



#147 (0x093) Spell: Learn Spell [147]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
The targeted creature(s) learn the spell specified by the resource key, in the style specified by the 'Type' field.

Known values for 'Type' are:
0  Mage
1  Cleric
2  Innate



#148 (0x094) Spell: Cast Spell (as Scroll) [148]
Parameter #1: Casting Level
Parameter #2: Type
Description:
Casts the spell specified by the resource key, at the level specified by the 'Casting Level' field, in the style specified by the 'Type' field. A 'Casting Level' of 0 casts at the level of the casting creature.

Known values for 'Type' are:
0   Normal Casting
1   Cast Instantly



#149 (0x095) (Identify) [149]
Parameter #1: Undefined
Parameter #2: Undefined
Description:
The use of this effect is unknown, and effect of its parameters are undefined.



#150 (0x096) Spell Effect: Find Traps [150]
Parameter #1: Irrelevant
Parameter #2: Irrelevant
Description:
Applies the find traps effect to the targeted creature(s).
Both parameters should be 0 (zero).



#151 (0x097) Summon: Replace Creature [151]
Parameter #1: Irrelevant
Parameter #2: Type
Description:
Replaces the targeted creature(s) with creature specified by the resource k