This. What Pain just said. If you can get this one to work, it is the best. I will second that if you can avoid spell hooking or fiddling with stock scripts, you should. It will save you lots of hair during playtesting.
Immunity to Epic Spells for creatures?
Débuté par
Quilistan
, mars 06 2012 09:46
#26
Posté 08 mars 2012 - 05:25
#27
Posté 08 mars 2012 - 09:53
MasterChanger wrote...
DannJ wrote...
However someone would have to verify whether epic spells allow for spell resistance checks.
Pretty sure the answer is no, at least with vanilla scripts. I'm pretty sure they don't consider Spell Focus feats, Spellcraft bonus to saves against spells, or really act like spells at all.
That does seem to be the case, according to this wiki page. Which relegates my script to the annals of 'Overly Complex Scripts that do Everything but what was Requested'. It was still a fun exercise in scripting though (for me, anyway).
According to the NWN Lexicon, EffectSpellImmunity() only works if the spell's impact script has ResistSpell() within it, so it sounds like the effect mimics spell resitance on an individual spell basis. If the wiki page above is correct, and epic spells don't check for spell resistance, then the spell immunity effect might not work either.
I suspect the whole point of epic spells is that they can't be easily resisted. In that respect, the game designers have certainly done their job well.
One way around it might be to check the creature's 'Immortal' flag so that they can't be reduced down below 1 HP. Then an OnDamaged script could check the source of the damage, and if it was from a spell that is on their immunity list you could heal the boss as much as it takes to get them back to their pre-damage HPs. For any other source of damage, you could check whether the boss would have been reduced below 1 HP had they not been 'immortal', and kill them if that was the case. Trolls use a similar OnDamaged/Immortal combo.
It's a very fiddly work-around though, and could be visually quite nasty. Plus you'd need a separate script to check for Mass Fowl (as I don't think it does any actual damage).
Modifié par DannJ, 08 mars 2012 - 10:21 .





Retour en haut






