Why doesn't my script effect work?

Post » Sun Nov 18, 2012 3:17 pm

I want to make a spell that would force the target into a bleedout animation until the effect expires.

I wrote this (largely copied from the Wiki):

Scriptname BleedSpellEffectScript extends activemagiceffect  actor victimEvent OnEffectStart(Actor akTarget, Actor akCaster)        victim = akTarget    Debug.Trace("Magic effect was started on " + victim)    Debug.SendAnimationEvent(victim , "ActionBleedoutStart")endEventEvent OnEffectFinish(Actor akTarget, Actor akCaster)        Debug.Trace("Magic effect fades from " + victim)    Debug.SendAnimationEvent(victim, "ActionBleedoutStop")endEvent

The effect is added to a spell and it has duration greater than 0 seconds. However, I don't even receive the debug messages, the script doesn't even seem to fire. Any idea what could be messing me up?
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am

Post » Sun Nov 18, 2012 4:19 pm

Maybe you forgot to add a projectile? I do that all the time.
User avatar
Haley Cooper
 
Posts: 3490
Joined: Wed Jun 14, 2006 11:30 am

Post » Mon Nov 19, 2012 12:18 am

Thought so, and no, it's using Soul Trap's projectile. Projectile flies and hits.
User avatar
Kari Depp
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:19 pm

Post » Sun Nov 18, 2012 10:12 pm

I have had this happen when the MagicEffect Target and delivery dont match the spell definition target and delivery.
User avatar
bimsy
 
Posts: 3541
Joined: Wed Oct 11, 2006 3:04 pm


Return to V - Skyrim