Anyone knows how? It doesn't have to be a full-blown code, please just a one or two lines for its most basic code - that is, to remove a spell resistance. Thanks
Remove Spell Resistance of a Target Creature
Débuté par
Illustair
, août 30 2012 04:01
#1
Posté 30 août 2012 - 04:01
#2
Posté 30 août 2012 - 07:15
I think there's a spell or two that will lower resistance. You might check the corresponding code. (Possibly they use EffectSpellResistanceDecrease.)
#3
Posté 30 août 2012 - 10:37
Spell resistance is seriously bugged in the game. SR in the form of an item property (like an equipped creature hide) disappears after the first spell is cast at the target. So dragon SR only works once, then they're completely unprotected.
The only SR that works continuously is that granted by feats (like the drow or yuan-ti racial feats). I'm not completely sure that any SR reducing spells have any effect on SR feats though.
The only SR that works continuously is that granted by feats (like the drow or yuan-ti racial feats). I'm not completely sure that any SR reducing spells have any effect on SR feats though.
#4
Posté 30 août 2012 - 11:46
^ remove the feat?
btw, EffectSpellResistanceIncrease( ) isn't an increase; it sets the SR to nValue.
if it's not an itemproperty or feat(?), but an effect or spelleffect, the effects need to be looped through, see RemoveEffectsFromSpell( ) or RemoveSpecificEffect( ) eg.
btw, EffectSpellResistanceIncrease( ) isn't an increase; it sets the SR to nValue.
if it's not an itemproperty or feat(?), but an effect or spelleffect, the effects need to be looped through, see RemoveEffectsFromSpell( ) or RemoveSpecificEffect( ) eg.
#5
Posté 31 août 2012 - 01:05
You'd have to remove the feat temporarily and replace it with a feat that sets the SR value to a lesser amount (unless you wanted to strip SR altogether, rather than just lower it). There are a bunch of epic feats that set SR to specific values that could be used. The scripting would be horribly complex, although I could see how it could be accomplished. A custom AOE on the target with just a heartbeat script could check when the original feat needs to be reinstated.
Even with my rampant curiosity and desire to experiment, I have no intention of figuring out this particular can of worms. I wash my hands of SR completely in this game.
Even with my rampant curiosity and desire to experiment, I have no intention of figuring out this particular can of worms. I wash my hands of SR completely in this game.
#6
Posté 31 août 2012 - 01:17
Thanks for the responses.
@rjshae, I don't think there is..could you be talking about lower resistance from Baldur's Gate?
@Dannj, that's pretty messed up indeed. Are you sure that hasn't been patched up? I couldn't imagine any decent game company that wouldn't fix as messy as that after 2 expansions. I've played NWN-2 a long time ago, and just replaying it now...maybe that's why I don't remember dragon fights to be that hard, heck if I could recall, it might have been even easy. That explains why.
@kevL, that info would come handy. So there's no "global" setSpellResistance()? or applyeffecttoobject with spell resistance being set as parameter?
EDIT: So feat for spell resistance decrease is my best approach? Hmm..I was half-expecting a simple function call that overrides spell resistance value would do, I guess I was being too hopeful.
@rjshae, I don't think there is..could you be talking about lower resistance from Baldur's Gate?
@Dannj, that's pretty messed up indeed. Are you sure that hasn't been patched up? I couldn't imagine any decent game company that wouldn't fix as messy as that after 2 expansions. I've played NWN-2 a long time ago, and just replaying it now...maybe that's why I don't remember dragon fights to be that hard, heck if I could recall, it might have been even easy. That explains why.
@kevL, that info would come handy. So there's no "global" setSpellResistance()? or applyeffecttoobject with spell resistance being set as parameter?
EDIT: So feat for spell resistance decrease is my best approach? Hmm..I was half-expecting a simple function call that overrides spell resistance value would do, I guess I was being too hopeful.
Modifié par Illustair, 31 août 2012 - 01:22 .
#7
Posté 31 août 2012 - 01:58
it really depends on what/whose SR you're trying to decrease/remove.
there are three flavors:
1. itemproperty, remove the itemproperty with the toolset ( or just cast a spell on it in game, its bugged like Dann says )
2. feat, remove the feat ( it will likely get re-applied if its on a PC levelup )
3. effect, you could try looping through the effects on a critter and removing EFFECT_TYPE_SPELL_RESISTANCE_INCREASE, remembering there is also EFFECT_TYPE_SPELL_RESISTANCE_DECREASE, which i bet is nothing. Or, try your idea:
you might get good results using DURATION_TYPE_INSTANT, also <-- that tends to make it really permanent. Like DJ intimates, SR is really not a subject you want to mess around with, at first ....
there are three flavors:
1. itemproperty, remove the itemproperty with the toolset ( or just cast a spell on it in game, its bugged like Dann says )
2. feat, remove the feat ( it will likely get re-applied if its on a PC levelup )
3. effect, you could try looping through the effects on a critter and removing EFFECT_TYPE_SPELL_RESISTANCE_INCREASE, remembering there is also EFFECT_TYPE_SPELL_RESISTANCE_DECREASE, which i bet is nothing. Or, try your idea:
effect eSR = EffectSpellResistanceIncrease(0); //eSR = EffectSupernatural/ExtraordinaryEffect ... ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSR, oTarget);
you might get good results using DURATION_TYPE_INSTANT, also <-- that tends to make it really permanent. Like DJ intimates, SR is really not a subject you want to mess around with, at first ....
#8
Posté 31 août 2012 - 02:04
That's very informative, thanks a lot! I will try that now.
#9
Posté 31 août 2012 - 02:06
ok
#10
Posté 31 août 2012 - 04:08
Illustair wrote...
@rjshae, I don't think there is..could you be talking about lower resistance from Baldur's Gate?
I was probably thinking of Mordenkainen's disjunction.
#11
Posté 31 août 2012 - 07:42
DannJ wrote...
Even with my rampant curiosity and desire to experiment, I have no intention of figuring out this particular can of worms. I wash my hands of SR completely in this game.
Small loss. SR in D&D 3 and 3.5 has been a bone in my craw since the beginning. Even if applied correctly, it practically never has any impact - because of the math. The numbers used for most SR on items, lesser spells, and so on, are simply too low. The NWN2 OC is a perfect example. These SRs use the even numbers ranging from 10 to 20; SR 16 is above average and is considered a fairly powerful enchantment; you won't see it until late in the game. But if you're 15th Level, the only opponents you'll meet are Level 12 or higher, which means they're only going to need to roll a 4 or better to beat your mighty SR 16 - 85% chance of success; and if they're your level or better (15), their success is automatic.
The only SRs that matter are the ones that scale up - monk & Drow (barely), and the "Spell Resistance" Divine spell with its +12 (now you're talkin').
Modifié par I_Raps, 31 août 2012 - 07:54 .
#12
Posté 31 août 2012 - 07:49
rjshae wrote...
Illustair wrote...
@rjshae, I don't think there is..could you be talking about lower resistance from Baldur's Gate?
I was probably thinking of Mordenkainen's disjunction.
Also the Breach spells.
#13
Posté 01 septembre 2012 - 04:29
oops wrong thread
Modifié par Morbane, 01 septembre 2012 - 04:31 .





Retour en haut






