Jump to content

Anti-magic spells


Recommended Posts

So, the beholder's anti-magic rays don't actually anti- all magic (just most of the stuff that existed in TotSC).

COPY_EXISTING_REGEXP ~^SPIN\(550\|779\|992\)\.SPL$~ ~OVERRIDE~
 READ_LONG 0x6a ~effectsOffset~ ELSE 0x72
 READ_SHORT 0x90 ~numberOfEffects~ ELSE 0x00
 INSERT_BYTES ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) 0x0330
 READ_ASCII ~%effectsOffset%~ + ((~%numberOfEffects%~ - 0x11) * 0x30) ~cloneEffect~ ELSE ~~ (816)
 WRITE_EVALUATED_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) ~%cloneEffect%~ #816
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x14 ~BLAKBLAD~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x44 ~ENEBLADE~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x74 ~ENMACE~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0xa4 ~ENMORN~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0xd4 ~ENSTAFF~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0104 ~ENSW1H01~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0134 ~ENSW1H02~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0164 ~ENSW2H~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0194 ~GBERRY~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x01c4 ~GBERRY2~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x01f4 ~GBERRY3~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0224 ~GBERRY4~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0254 ~GBERRY5~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0284 ~GBERRY6~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x02b4 ~GBERRY7~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x02e4 ~PHANBLAD~ #8
 WRITE_ASCII ~%effectsOffset%~ + (~%numberOfEffects%~ * 0x30) + 0x0314 ~SHAKTI1~ #8
 WRITE_SHORT 0x90 ~%numberOfEffects%~ + 0x11
BUT_ONLY_IF_IT_CHANGES

This adds "Remove Item" effects for all the remaining magically-created items of any significance. Note that the additional GBERRY[2-7] won't be required for a default install (I stole Sim's enhanced-but-still-crappy-anyway Goodberry idea), and the ENSTAFF and ENMORN won't be available by default (I re-enable all the Enchanted Weapon selections locally).

 

Additionally, I'm not positive that any of this is even required. I always thought that Dispel Magic-type effects kill these items, anyway, but the spells already contain 30 or so Remove Item effects, so I figured I may as well add the rest.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...