Jump to content

[LE] Summoning scripted items?


Recommended Posts

Hey everyone, does anyone if it's possible and if so how to create essentially a bound weapon spell that summons in a scripted weapon?

 

The weapon when acquired normally outside of papyrus works great, but when it is acquired via the bound weapon archtype, the weapon is summoned in like you would expect, however the weapon's scripted effect does not fire.

 

Is there a means via papyrus to summon/equip the bound weapon and have the associated script fire as designed?

 

As usual thanks.

Link to comment
Share on other sites


Scriptname Scriptname extends ObjectReference

Ammo Property Arrow auto
Actor Property PlayerRef Auto

Event OnEquipped(Actor akActor)
akActor = PlayerRef
akActor.Additem(Arrow, 200)
akActor.EquipItem(Arrow, true)
EndEvent

Event OnUnEquipped(Actor akActor)
akActor = PlayerRef
akActor.UnequipItem(Arrow)
akActor.RemoveItem(Arrow, 10000, true, none)
EndEvent

 

Link to comment
Share on other sites

Realistically, I think the script for the weapon itself is likely fine. The issue seems to be a limitation in the engine to initiate the script when the item is called into the game via a spell using at the very least, the bound weapon archtype that is used by the game for the normal bound weapon summons.
Link to comment
Share on other sites

Your setup is a little wrong for how the bound bow works. A spell is cast, that spell has a magic effect with the script BoundBowEffectScript attached to it. This script is what handles the arrows while the bow itself is given elsewhere in the effect. There is no script on the bound bow itself.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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