detectablespells-readme.txt


COMPATIBLE GAMES:

[x] Baldur's Gate II: Shadows of Amn
[x] Baldur's Gate II: Throne of Bhaal


Contact Information:

Creator Name: Eric Kerr (aka Cirerrek)
Creator E-mail: [cirerrek@hotmail.com]
Web URL: [http://home.earthlink.net/~cirerrek/]
Last Modified: March 21, 2003


What it does:

Detectable Spells was originally created by Vulgar Zildrah and Kensai Ryu.

It allows you to use a CheckStat, CheckstatGT or LT trigger to look for certain spells in effect on an object. The names used for checkstat match the Spell.ids names of the spells to SOME extent.

So to check if the last object seen has a protection from evil spell active and display the text 'Protected from evil' above the object running the script's head, use the following script:

IF CheckStatGT(LastSeenBy(Myself),0,PROTECTION_FROM_EVIL) THEN RESPONSE #100 DisplayStringHead(Myself,14769) //'Protected from evil' END

Obviously this gives us a lot more ability to script for spell defenses that are active on objects.


Known Issues:

Occasionally it has been found that certain spells will trigger an incorrect state. For example:

If two spells are cast that are Stats in the same entry, only the lasts spell cast will be detectable, I site SCRIPTINGSTATE5 as a prime example.

To offset this potential conflict, an attempt was made to assign the more 'powerful' spells a higher value in its respective Stat entry.


Additions/Modifications to STATS.IDS
156 SCRIPTINGSTATE1
  • Magnet
157 SCRIPTINGSTATE2
  • Deathward
158 SCRIPTINGSTATE3
  • Negative Plane Protection
  • Barbarian Rage
  • Boon of Lathander
159 SCRIPTINGSTATE4
  • Berserker Enrage Value =1
  • Minsc Berserk Value=1
  • Barbarian Rage Value=1
  • Boon of Lathander Value=1
  • Kensai Kai Value=2
  • Mazzy Invoke Courage Value=3
  • Warrior Whirlwind=4
  • Warrior Greater Whirlwind=5
160 SCRIPTINGSTATE5
  • Cleric's Barkskin Value=1
  • Wizard Shield Value=2
  • Wizard Armor Value=3
  • Ghost Armor Value=4
  • Spirit Armor Value=5
161 WIZARD_SPELL_DEFLECTION
  • Minor Spell Deflection Value=1
  • Spell Deflection Value=2
162 WIZARD_SPELL_TURNING
  • Minor Spell Turning Value=1
  • Spell Turning Value=2
163 WIZARD_PROTECTION_FROM_ENERGY
164 WIZARD_SPELL_TRAP
165 WIZARD_IMPROVED_ALACRITY
166 PROTECTION_FROM_EVIL
  • Includes innate abilities
167 TRUE_SIGHT
  • Includes innate abilities
168 CLERIC_CHAOTIC_COMMANDS
169 CLERIC_MAGIC_RESISTANCE
170 CLERIC_INSECT_PLAGUE
171 CLERIC_BLADE_BARRIER
172 CLERIC_PHYSICAL_MIRROR
173 CLERIC_SHIELD_OF_THE_ARCHONS
174 CLERIC_REGENERATION
175 CLERIC_CREEPING_DOOM
176 WIZARD_PROTECTION_FROM_PETRIFICATION
177 WIZARD_SPELL_SHIELD
178 WIZARD_RESIST_FEAR
179 WIZARD_PROTECTION_FROM_NORMAL_MISSILES
180 WIZARD_GREATER_MALISON
181 WIZARD_PROTECTION_FROM_NORMAL_WEAPONS
182 WIZARD_TENSERS_TRANSFORMATION
183 WIZARD_PROTECTION_FROM_MAGIC_ENERGY
184 WIZARD_MISLEAD
185 WIZARD_PROTECTION_FROM_MAGIC_WEAPONS
  • Mantle Value=1
  • Improved Mantle Value=2
  • Absolute Immunity Value=3
  • Protection from Magic Weapons Value=4
186 WIZARD_SPELL_IMMUNITY
  • Abjuration Value=1
  • Conjuration Value=2
  • Divination Value=3
  • Enchantment Value=4
  • Illusionary Value=5
  • Evocation Value=6
  • Necromancy Value=7
  • Alteration Value=8
187 WIZARD_PROTECTION_FROM_THE_ELEMENTS
199 STONESKINSGOLEM
200 LEVELDRAIN


Included Spell Files
Class Spells
Spell Code Spell Name Spell.IDS Reference
SPCL144Kensai KiaKENSAI_KIA
SPCL152Barbarian RageBARBARIAN_RAGE
SPCL213Paladin Protection from EvilPALADIN_PROTECTION_FROM_EVIL
SPCL232Inquisitor True SightINQUIS_TRUE_SIGHT
SPCL321Berserker EnrageBERSERKER_ENRAGE--BERSERKER_RAGE
SPCL321DBeserker Enrage Cool Down
SPCL732Helm True SightHELM_TRUESIGHT
SPCL741Boon of LathanderLATHANDER_BOON
Innate Spells
Spell Code Spell Name Spell.IDS Reference
SPIN117Minsc's BerserkMINSC_BERSERK--INNATE_BERZERK
SPIN121Innate Protection from EvilINNATE_PROTECTION_FROM_EVIL
SPIN676Mazzy's Invoke CourageINVOKE_COURAGE
SPIN684Kuo-Toan True SightKOA_TRUE_SIGHT_NO_VIS
SPIN686Protection from Magic WeaponsPROTECTION_MAGIC_WEAPON_NOEFF
SPIN710Spell DeflectionSPELL_DEFLECTION_NO_VISUAL
SPIN920Beholder Minor Spell TurningBEHOLDER_SPELL_TURNING
SPIN696Moon Dog SightMOONDOG_SIGHT
Priest Spells
Spell Code Spell Name Spell.IDS Reference
SPPR107Protection from EvilCLERIC_PROTECTION_FROM_EVIL
SPPR202BarkskinCLERIC_BARKSIN
SPPR408Protection from Evil 10'CLERIC_PROTECTION_FROM_EVIL_10_FOOT
SPPR505True SightCLERIC_TRUE_SIGHT
SPPR508Chaotic CommandsCLERIC_CHAOTIC_COMMANDS
SPPR509Magic ResistanceCLERIC_MAGIC_RESISTANCE
SPPR517Insect PlagueCLERIC_INSECT_PLAGUE
SPPR603Blade BarrierCLERIC_BLADE_BARRIER
SPPR613Physical MirrorCLERIC_PHYSICAL_MIRROR
SPPR698NPC Blade BarrierNPC_BLADE_BARRIER
SPPR701Shield of the ArchonsCLERIC_SHIELD_OF_THE_ARCHONS
SPPR711RegenerationCLERIC_REGENERATE
SPPR717Creeping DoomCLERIC_CREEPING_DOOM
SPPR950True Sight2CLERIC_TRUE_SIGHT2
Wizard Spells
Spell Code Spell Name Spell.IDS Reference
SPWI102ArmorWIZARD_ARMOR
SPWI108Protection from PetrificationWIZARD_PROTECTION_FROM_PETRIFICATION
SPWI113Protection from EvilWIZARD_PROTECTION_FROM_EVIL
SPWI114ShieldWIZARD_SHIELD
SPWI210Resist FearWIZARD_RESIST_FEAR
SPWI311Protection from Normal Missles WIZARD_PROTECTION_FROM_NORMAL_MISSILES
SPWI317Ghost ArmorWIZARD_GHOST_ARMOR
SPWI318Minor Spell DeflectionWIZARD_MINOR_SPELL_DEFLECTION
SPWI412Greater MalisonWIZARD_GREATER_MALISON
SPWI414Spirit ArmorWIZARD_SPIRIT_ARMOR
SPWI511Protection from Normal WeaponsWIZARD_PROTECTION_FROM_NORMAL_WEAPONS
SPWI519Spell ShieldWIZARD_SPELL_SHIELD
SPWI522Minor Spell TurningWIZARD_MINOR_SPELL_TURNING
SPWI590Spell Immunity: AbjurationWIZARD_SPELL_IMMUNITY_ABJURATION
SPWI591Spell Immunity: ConjurationWIZARD_SPELL_IMMUNITY_CONJURATION
SPWI592Spell Immunity: DivinationWIZARD_SPELL_IMMUNITY_DIVINATION
SPWI593Spell Immunity: EnchantmentWIZARD_SPELL_IMMUNITY_ENCHANTMENT
SPWI594Spell Immunity: IllusionistWIZARD_SPELL_IMMUNITY_ILLUSIONIST
SPWI595Spell Immunity: InvocationWIZARD_SPELL_IMMUNITY_INVOCATION
SPWI596Spell Immunity: NecromancyWIZARD_SPELL_IMMUNITY_NECROMANCY
SPWI597Spell Immunity: AlterationWIZARD_SPELL_IMMUNITY_ALTERATION
SPWI603Tenser's TransformationWIZARD_TENSERS_TRANSFORMATION
SPWI606Protection from Magic EnergyWIZARD_PROTECTION_FROM_MAGIC_ENERGY
SPWI607MisleadWIZARD_MISLEAD
SPWI609True SightWIZARD_TRUE_SIGHT
SPWI611Protection from Magic WeaponsWIZARD_PROTECTION_FROM_MAGIC_WEAPONS
SPWI613Improved HasteWIZARD_IMPROVED_HASTE
SPWI618Spell DeflectionWIZARD_SPELL_DEFLECTION
SPWI701Spell TurningWIZARD_SPELL_TURNING
SPWI702Protection from the ElementsWIZARD_PROTECTION_FROM_THE_ELEMENTS
SPWI708MantleWIZARD_MANTLE
SPWI802Spell DeflectionWIZARD_SPELL_DEFLECTION
SPWI803Protection from EnergyWIZARD_PROTECTION_FROM_ENERGY
SPWI808Improved MantleWIZARD_IMPROVED_MANTLE
SPWI902Spell TrapWIZARD_SPELL_TRAP
SPWI907Absolute ImmunityWIZARD_ABSOLUTE_IMMUNITY
SPWI921Improved AlacrityWIZARD_IMPROVED_ALACRITY
High Level
Spell Code Spell Name Spell.IDS Reference
SPCL900WhirlwindWARRIOR_WHIRLWIND
SPCL901Greater WhirlwindWARRIOR_GREATER_WHIRLWIND

Please note that the Spell Codes are correct for the individual spells, but the Spell Names may or not be correct and should be considered my interpretation of what the name of the spell should be. Many of the Spell.IDS References listed in the table above are CUSTOM, meaning I or others have manually altered the Spell.IDS file to change the name of existing spells or to add names of spells that did not have Spell.IDS references as shipped with the game. When attempting to script the spells, you should reference you own Spell.IDS file to determine the correct method to script the spells.


Version History:

Version 1.2.3


[Download Detectable Spells v1.2.3]