Jump to content

Recommended Posts

Posted

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.

Posted

You'll need to post your script code before anyone can really help you. My guess is that the "associated script" isn't firing because it doesn't have the right event call inside it.

Posted


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

 

Posted
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.
Posted

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.

  • Recently Browsing   0 members

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