henesua wrote...
is SetEffectSpellId -- higher ground code? Or is it in one of the NWN libraries?
It's
from NWNX structs for linux. If your problem is that the checks in
question are checking for the spell id, you can either acheive the spell
id via ActionCast with cheat cast or whatever is required, or you can
alter the checks to check for effect type, or you can alter them to check for EffectCreator, and make a custom effect creator to define the effect (and, often, to apply it as well, though that's not necessary to tag it as the effect's creator).
As I said, however, I'm not sure how much spell id is checked in vanilla nwn - most of our code with etherialness has been completely customized. It's entirely possible that you're suffering from one ot the myriad bugs related to sanc effects - including its frequent failure when applied with any kind of concealment, as another poster mentioned. If you elaborate on the problem you're having, we could probably pinpoint it somewhat.
Funky