Hilariously buggy spell

Post » Thu Jun 21, 2012 5:52 pm

I tried to make force choke, and what ensued is more interesting than the code would indicate. Basically it starts out fine, looks perfect. Then the target spazzes around at blinking in and out of existence, lands, and if they are na animal, it dies. If it is an NPC it wakes up, and starts moonwalking around. Hitting the same NPC with the spell at this point causes them to randomly start turning around. I got nothing.

Scriptname SummonSingularity extends activemagiceffect Activator Property SoulTrap  Auto STATIC Property XMarkerHeading Auto Actor TargetObjectReference HoleInstanceEvent OnEffectStart(Actor akTarget, Actor akCaster)   Target = akTarget   HoleInstance = akTarget.PlaceAtMe(SoulTrap, 1, false, true)   HoleInstance.MoveTo(akTarget, 0, 350, 0)   if HoleInstance.IsDisabled()==true	  HoleInstance.enable()   endIf   ObjectReference ExplosionMarker = Target.PlaceAtMe(XMarkerHeading, 1)   ExplosionMarker.PushActorAway(Target, 3.00)   Target.SplineTranslateToRef(HoleInstance, 1, 30)   Utility.Wait(2)   HoleInstance.MoveTo(akTarget, 0, -60, 0)   Target.SplineTranslateToRef(HoleInstance, 1, 100)     ;Target.StopTranslation()   Target.KillSilent()        ;Target.Disable()   ;Target.Delete()   ;self.Dispel()endEvent
User avatar
Dewayne Quattlebaum
 
Posts: 3529
Joined: Thu Aug 30, 2007 12:29 pm

Post » Thu Jun 21, 2012 12:30 pm

Nice, I'll have to try this later :)
User avatar
Smokey
 
Posts: 3378
Joined: Mon May 07, 2007 11:35 pm


Return to V - Skyrim