Why do I die and then rez with buff? onhit effect

Post » Tue Jun 19, 2012 1:49 am

When I get hit, theres a 50% chance that this script will run, what happens is it kills me, rezzes me and then buffs me.
Buff used for testing was just all 3 cloaks at once added on me.
(Death animation actually does happen, then I stand back up all while buffing me) lol

EVENT OnEffectStart(Actor Target, Actor Caster)selfRef = casterendEVENTEVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)if (selfRef.getActorValuePercentage("Health") < HPthreshold) && \  !(selfRef.HasMagicEffect(xxxElementalxxx)) && \  !(selfRef.isDead())   float dice = utility.RandomFloat(0,1);   debug.trace("You rolled: "+dice)   if dice <= effectChance;	debug.trace("Elemental Trinket effect Proc'd")	selfRef.placeAtMe(fakeForceBall1024)	selfRef.knockAreaEffect(1,1024)	GrandHealing.cast(selfRef,selfRef)	xxDoneElementalxxx.cast(selfRef,selfRef)   endif   if dice <= rareEffectChance && !(selfRef.hasMagicEffect(rareEffect));	debug.trace("Elemental Trinket's very rare effect Proc'd")	rareSpell.cast(selfRef,selfRef)   endifendifendEVENT
User avatar
Jani Eayon
 
Posts: 3435
Joined: Sun Mar 25, 2007 12:19 pm

Post » Mon Jun 18, 2012 2:46 pm

Morning bump
User avatar
Vera Maslar
 
Posts: 3468
Joined: Wed Sep 27, 2006 2:32 pm

Post » Mon Jun 18, 2012 6:47 pm

Anyone know why this script is killing me and then rezzing me before it buffs me?
The death animations do happen, then all of a sudden I'm back alive and all is well until I get hit again. lol
User avatar
Elisabete Gaspar
 
Posts: 3558
Joined: Thu Aug 31, 2006 1:15 pm

Post » Tue Jun 19, 2012 1:49 am

3rd page :(
User avatar
Inol Wakhid
 
Posts: 3403
Joined: Wed Jun 27, 2007 5:47 am

Post » Mon Jun 18, 2012 3:31 pm

Nobody still? :(
User avatar
gary lee
 
Posts: 3436
Joined: Tue Jul 03, 2007 7:49 pm

Post » Tue Jun 19, 2012 12:19 am

Can anybody provide suggestions on what could be killing me?
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Mon Jun 18, 2012 1:20 pm

I guess I found it myself, :P
Looks like it was the explosion thingy thats in the script, just removed it.

Weird tho as the ultra mask has it there. Does that item kill you ingame?
User avatar
Beat freak
 
Posts: 3403
Joined: Thu Dec 14, 2006 6:04 am


Return to V - Skyrim