1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
848 B

Scriptname BoundJavelinEffectScript extends ActiveMagicEffect
Ammo Property boundJavelin Auto
MagicEffect Property _B03EnchBoundJavelinFX Auto
EVENT OnEffectStart(Actor Target, Actor Caster)
; debug.trace("Bound Javelin - Effect Starting - add and equip bound javelins")
caster.additem(boundJavelin,20,TRUE)
caster.equipItem(boundJavelin, TRUE, TRUE)
endEVENT
EVENT onLoad()
; debug.trace("Bound Javelin caught Cell Attach")
if !(getCasterActor().hasMagicEffect(_B03EnchBoundJavelinFX ))
; debug.trace("Bound Javelin - Cell Attached, script active, but effect not found on "+getCasterActor())
dispel()
endif
endEVENT
EVENT OnEffectFinish(Actor Target, Actor Caster)
; debug.trace("Bound Javelin - Effect Finishing, remove any bound javelins")
caster.removeitem(boundJavelin,caster.getItemCount(boundJavelin),TRUE)
endEVENT