I want to implement a different system to handle dispel magic, SR, and calculating caster level for our mod. I see existing systems such as Fox spells or mr bumkin's prc caster level stuff (or Shadow/Zoeller's core function override tutorials), but I can't quite get my mind around how to integrate any of them into our mod with many existing spell/feat modifications. This post is to ask for some step-by-step help, and for me to think ouloud so I can be corrected.
Overriding core functions seems like it should be easy, but I've only managed to create fodder-modules by messing with it thus far. Considering that, I'm attempting to use mr bumpkin's work here:
http://nwvault.ign.c....Detail&id=1980
int nCasterLvl = (GetCasterLevel(oCaster) + GetChangesToCasterLevel(oCaster));
Mr B uses GetChangesToCasterLevel() to account for pale master levels and to check if it's a divine or arcane class to decide if the pale master levels should be added. I can edit it to add levels how I want from different prestige classes, no problems there.
1 - To make use of this in our mod, I'll have to
manually add this function to every call of GetCasterLevel() for every spell/feat/ability and add his file as an include right?
2 - Is there an easy way to do this?
3 - Is there a list of every script I'd need to update? If not, I can just look at the .erf included with his download.
The second part is the same as the first... I think. He's rewritten MyResistSpell() and it contains the same arguments as the original, so I'd have to replace every instance of MyResistSpell() with his function.
4 - If I got this much done, it would allow me to account for prestige class levels for things like duration, damage, and beating SR, yes?
That leaves handling the dispel magic checks - which I know the least about. I see Mr B has written his own method for handling this, but I'm not sure which parts of it I need to make it all work. I'm so confused about this part, I'm having trouble asking a specific question.
5 - What functions/scripts does stock NWN use to handle dispel magic? i.e. what needs to be substituted so I can include pale master levels for the purposes of dispel magic checks?
What I'm after is, a 10wizard/30PM to be considered a level20 or 25 caster so that a lowbie NPC cannot strip half or your buffs with a regular dispel.
Thanks