Jump to content

Kunai Daggers. Script advice for switching equipped items.


Recommended Posts



I'm trying to develop a set of Kunai style throwing daggers for my Akiviri Collection mod. I already have the weapon, casting art and animated spinning projectile for the scroll type working, but It would be cool if the dagger was usable as a weapon or throw-able depending on how it was "held".

I've tried to get my head around this but i'm going around in circles.

Is it possible with scripts to add and equip a power when the weapon is equipped so that it is toggle-able between a weapon version and a scroll version.


ie...


dagger is equipped > add toggle power 1>


Use toggle power 1 > remove dagger, add and equip scroll type


(so that when the scroll is cast it disappears as usual and the dagger is already gone.)


or



scroll is equipped> add toggle power 2>


Use toggle power 2> remove scroll, and add and equip dagger




I'm assuming an OnEquipped script extending Object reference for the dagger/ scroll that adds the power and remove item stuff, and an EquipItem on actor to force add and equip the scroll/dagger, but when i comes to how to phrase and implement that I'm lost and losing enthusiasm.

I would love advice from someone versed in this.

Link to comment
Share on other sites

Quick a dirty for I need to dash out to work. I only have time to cover the dagger bit.

 

Example on how to handle equipping stuff and doing something when they are equipped:

 

 

Weapon property DaggerWep
 

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
 
    if akBaseObject as Weapon == DaggerWeap
        ...toggle bits here
    endif
 
EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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