I have two new questions:
1. Is it possible to script an item carried by a NPC so that the
Detect Life shader won't play on them? Example: I'm sneaking around a bandit lair and on the other side of the closed door in front of me is a room with four Bandits in it (one boss and three underlings). I have a Detect Life in 100 ft. enchantment active, so I should see all four of them. Can I place a scripted inventory item (armor, ring, amulet or something) on the boss to prevent the shader from playing on him?
2. I have a sword with a script effect enchantment on it, with a duration of five seconds. The script plays the Fire Damage shader and adds an ability spell that does Damage Magicka 45 points for 5 seconds. After five seconds, the DM spell is removed and the FD shader stops playing. The problem: The DM effect gets added on the first strike, removed on the second, added back on the third, removed again on the fourth, etc etc. What this means is that on the first strike, 45 points of magicka are removed from the target and won't start to regenerate for five seconds. If the target is struck a second time before five seconds are up, their magicka begins to regenerate. Strike them a third time and they loose 45 more points of magicka that won't begin to regenerate for another five seconds and so on. I would like to prevent the DM effect from being removed on every other strike. The script I'm using is:
scn TestFiveSecondABAddScriptBegin ScriptEffectStartAddSpell TestDMAB ;this is the Damage Magicka Ability spellpms effectFireDamageendBegin ScriptEffectFinishRemoveSpell TestDMABsms effectFireDamageend
I've also tried:
scn TestFiveSecondABAddScriptref TargetBegin ScriptEffectStartset Target to GetSelfTarget.AddSpell TestDMAB ;this is the Damage Magicka Ability spellpms effectFireDamageendBegin ScriptEffectFinishTarget.RemoveSpell TestDMABsms effectFireDamageend
This has the exact same effect as the first script: TestDMAB is added on the first strike, removed on the second, added back on the third, etc etc. How would I go about resolving this (preferably without OBSE)?