Get a Poison's Spell

Post » Sun Aug 09, 2009 1:33 pm

I was wondering if the following would be possible?

1. Poison a weapon
2. Check what that Poison is, and copy the Spell
3. Cast the Spell from a remote activator, onto an NPC
4. Remove the Poison from the weapon

I have some thoughts, but would like some advice, if possible...

1- Vanilla effect, so fine
2- Would GetSpell work for poisons?No idea on how to copy it, though.
3. Caster.Cast Spell Target, obviously-- but can I use SetNthEffectItemMagnitude, or something similar to make the Self effects of poison a Touch/Target?
4. Any way to do this without using the Poison?
User avatar
Kieren Thomson
 
Posts: 3454
Joined: Sat Jul 21, 2007 3:28 am

Post » Sun Aug 09, 2009 3:03 pm

. setEquippedWeaponPoison. The POISON MGEF is just a place holder.
. getEquippedWeaponPoison returns the objectID/editorID of the equipped poison. It's usually an alchemy item, not a spell (unless it was deliberately added using the above function)
. Use above result
. removeEquippedWeaponPoison
User avatar
Danger Mouse
 
Posts: 3393
Joined: Sat Oct 07, 2006 9:55 am

Post » Sun Aug 09, 2009 11:34 am

Thanks, that worked perfectly :D
User avatar
I’m my own
 
Posts: 3344
Joined: Tue Oct 10, 2006 2:55 am


Return to IV - Oblivion