Shinokage Posted December 16, 2012 Share Posted December 16, 2012 So I had this script to cast this spell on a boss character once they hit a certain HP level. It worked fine, but then after some more modding work on non-scripting things, it stopped working. Here's what i'm working with. The HPThreshold is so high so I can smack the enemy a few times in game to see if it works. Scriptname ShinoGloryTF3 extends actor actor property selfRef auto hidden float property HPthreshold = 0.95 auto spell property ShinoEnvyBlazeofGloryBoss auto magicEffect property ShinoEnvyGloryBlazeofGloryCloak auto EVENT OnEffectStart(Actor Target, Actor Caster) selfRef = caster endEVENT EVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) if (selfRef.getActorValuePercentage("Health") < HPthreshold) && !(selfRef.HasMagicEffect(ShinoEnvyGloryBlazeofGloryCloak)) && !(selfRef.isDead()) debug.trace ("It's working!") ShinoEnvyBlazeofGloryBoss.cast(selfRef,selfRef) endif endEVENT I'm willing to bet it's something small. that i'm over looking. Compiles fine though. I'm lost, any help is appreciated! Link to comment Share on other sites More sharing options...
steve40 Posted December 19, 2012 Share Posted December 19, 2012 (edited) The script is for a magic effect on a spell, so it must extend ActiveMagicEffect. Actor scripts can't use the OnEffectStart event. Edited December 19, 2012 by steve40 Link to comment Share on other sites More sharing options...
Recommended Posts