Page 1 of 1

Get a Poison's Spell

PostPosted: Sun Aug 09, 2009 1:33 pm
by Kieren Thomson
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?

Get a Poison's Spell

PostPosted: Sun Aug 09, 2009 3:03 pm
by Danger Mouse
. 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

Get a Poison's Spell

PostPosted: Sun Aug 09, 2009 11:34 am
by I’m my own
Thanks, that worked perfectly :D