Jump to content

Problem with Dark Brotherhood's Poisoned apple


XJDHDR

Recommended Posts

Hello everyone

 

I recently created a mod which allows you to use the poisoned apple to assasinate people by making them eat the apple and use it to create a poison for your weapons (previously, alchemy created a potion, not a poison). First, the mod isn't the problem.

 

After I uploaded the mod, a user here pointed out to me a bug she found. She tried to create a similar mod to mine and after she started to use it, she began to "notice dead and dying actors everywhere". After some research, I finally found that the cause is due to the way the AddSpell command is used (see the notes section). Basically, what Toutatis was seeing was the Poisoned apple's poison being added to the base actor of her victim and hence every actor that was derived from that base was also affected by the ability.

 

I should probably give an in depth explanation of what the apple does exactly for those who don't know what is going on. The poison apple is an ordinary apple in all ways except that it's only magical effect is a script effect spell called Deadly Poison (bypasses poison resistances). Here is the script for that script effect spell:

scn KillMagicEffectScript

short Eat
float EatTimer
short Die

begin ScriptEffectFinish

if IsEssential == 0
addspell AbApplePoison
endif

end

Now AbApplePoison is an ability with a single effect, Damage health 10 points per second for 1000 seconds. That is the poison apple in a nutshell.

 

As I mentioned above, the problem is that this damage health ability is added to the base actor and hence every actor that is derived from that base. I want to create a mod which fixes this problem while preserving what the apple does (effect which damages health by 10 pts per second for 1000 seconds and bypasses poison resistance).

 

Does anyone have any ideas on how I can go about fixing this problem. The only way I can think of at the moment is an activater that casts a damage health spell at the actor that eats the apple. Only problem though is magic resistances. Also, I have no problems with using OBSE so if your solution requires OBSE, I am more than happy to hear it. Your help will be greatly appreciated.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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