Jump to content

Detect life toggle


BlueToxic

Recommended Posts

I usually wear equipment with detect life enchantments, but I don't like it when the detect life effects are on while I'm in town and talking to people.

 

Instead of unequipping all equipment with detect life enchantments when I'm not adventuring I'd like to have mod that lets me toggle the detect life effect with a button.

 

I haven't found any mod with this function and I can't make one myself since I'm not very good at scripting.

 

Can something like this be done?

Link to comment
Share on other sites

Instead of unequipping all equipment with detect life enchantments when I'm not adventuring I'd like to have mod that lets me toggle the detect life effect with a button.

 

Why don't you use a hotkey to unequip it? I know what you mean, but using the key would be far more easy and simple for yourself.

It is just hitting the 1- 0 key!

Link to comment
Share on other sites

  • 3 weeks later...
Are you still working on this?

 

I tried but didn't succeed. My specialty isn't OBSE-Spells. :)..I still don't quite understand the properties of the functions and its difficult to work with at it accepts a lot even though its not working they way you think it will.

I got a far as the ability to change the effects (to 0) applied by enchantments without changing it on the armor itself. The problem is targeting the armor directly and knowing where the enchantments can from as shown in the list. It's very important as you can't say change this and that. Numbers are mostly used that get me quite confused ;D.

I can't trow it on bethesda unless I do know everything about those functions, as I'm either walking the wrong way or it isn't possible at all.

Link to comment
Share on other sites

Yes, it's possible. I just know a few things about modding but almost everything I've done 'til now has been spell scripting with OBSE. You can count the number of active effects on the player (GetActiveEffectCount), then go one by one checking if the effect is of kind "detect life" (GetNthEffectItemCode ref:spell long:code. To actualy get the code for the Detect life effect, you use GetMagicEffectCode DTCT), then setNthAEmagnitude to 0 (storing that value before) and besides this making a spell or whatever is meant to track the toggle.

 

I'm not 100% sure but I think detect life use the magnitude as area, so it should work. If not then I guess you should check the source of that effect using GetNthActiveEffectCaster, and then SetNthEffectItemArea.

 

I've been scripting a lot this days so I'm gonna take a break and leave this for Pronam, so he could explore a new area of oblivion scripting hehe :P no, seriously, give it a try if you want, if not I'll try to make it when I have a moment.

Link to comment
Share on other sites

Yeah I know it's possible and those functions but I couldn't get it to work somehow.

If you have a moment before tuesday please take it..I've been so busy at the moment I just can't get my head straight.

If you got this one, could you take care of that one that asks to only enable chameleon on sneak as well..it's the same thing practically :)..

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...