Summon on equip?

Post » Sun Nov 10, 2013 10:09 am

I'm wanting to mod an item in such a way that it conjures a familiar, atronach or non-vanilla summons when it is equipped, but I can't seem to work out how to do it. It might be easier to implement the summons as a power that is then triggered with the Z key, but I'd rather do it when the item is equipped rather than force the player to manually select it from favorites, then pressing the key. Is there any way to do this?

User avatar
Tyler F
 
Posts: 3420
Joined: Mon Aug 27, 2007 8:07 pm

Post » Sun Nov 10, 2013 12:42 am

Maybe something like this? You might want to do something with the spell or the Cast() function, otherwise the summon could spawn far away depending on where the player is looking.

Scriptname _test_testscript extends ObjectReference;script attached to the weapon of choiceSpell Property SummonSpell AutoEvent OnEquipped(Actor akActor)    SummonSpell.Cast(akActor)endEvent
User avatar
Taylrea Teodor
 
Posts: 3378
Joined: Sat Nov 18, 2006 12:20 am

Post » Sun Nov 10, 2013 2:40 pm

Thanks for responding. I hope it's that simple. What I'm shooting for is a summons that will last until the item is unequipped. If, for example I used a thrall spell, would the spell last until the item is unequipped? Or would the effect last as long as the spell duration? Is there a Dispel function I'd have to call in the script?

User avatar
BrEezy Baby
 
Posts: 3478
Joined: Sun Mar 11, 2007 4:22 am


Return to V - Skyrim