thanks for the replies, everyone.
Scripts with default as part of the name like, nw_c2_default1 are for NPC/creatures. Any changes made to those scripts will do nothing for the PC. The PC uses the scripts attached to the mod properties page, as named x2_mod_def_rest- for the PC rest. I recommend you copy the script make any changes to it and rename it - then place it in the correct place on the mod properties page. Note no change will happen to any script until you compile the scripts via the build mod tab.
in fact, i wasn't talking about nw_c2_default*, there's a script called default.nss that, if present, gets called for a number of pc-related events that aren't hookable via the module's pc-related defined event system. a couple of the things i was looking at hooking were the on-attacked, on-damaged, and on-spell-cast-at events which, unfortunately, aren't catchable for pc's.
I recommend not to use default.nss. Afaik it runs only for heartbeat. Problem is that if this script exists in module another objects might fire it as well more specifically script-created traps.
aha ! really ? i didn't know it was used for anything else. have you actually seen it do this ?
The default.nss is not the best choice - I've noticed it get fired even more rapidly depending on combat situations, it definitely isn't regular 100% of the time. I think it can even fire multiple times when you get hit by physical blows - suggesting it handles much more than just heartbeats.
Just my observations, perhaps it was a fluke?
no, i don't think it was a fluke. if you were to open a bic, you'll see it listed for all sorts of events that aren't hookable in the module's editable properties. what you're saying leads me to believe that it might actually called for the on-damaged and/or on-attacked events, which is what i'd hoped. i don't suppose you happened to notice if it was called multiple times for each damaging blow ? [i know, i'm asking a lot... ;p ]
and when you say it isn't 'regular', do you mean that it sometimes doesn't fire when you think it should ?