How to refresh aliases without Stoping and Starting the ques

Post » Fri Dec 07, 2012 10:24 am

Hey guys! Currently and for the last year I've been working on "Spell Sneak attacks" and its now in it's second(and more robust version). The problem is that when I fill NPC's with the alias that has my script if they are in a synchronized event(Like faralda lighting the bridge with magelight, or the beginning people following you on horses.) will cause the event to act very funny. Currently I am using the code:


Spoiler
Scriptname AerSpellCastUpdate extends ReferenceAlias

Quest property AerSpellSneakNPC auto
Perk Property AerSneakSpellPerk Auto

Event OnSpellCast(Form akSpell)

if (Game.GetPlayer().HasPerk(AerSneakSpellPerk)==1)
if(Game.GetPlayer().IsInCombat())
return
else
AerSpellSneakNPC.Stop()
AerSpellSneakNPC.Start()
endif
endif

endEvent

Does anyone know of a way I can refresh the aliases located in "AerSpellSneakNPC" WITHOUT stopping and starting it again? (The quest grabs the nearest 40 people to the player every time they cast a spell for the mod to work.)
User avatar
Mistress trades Melissa
 
Posts: 3464
Joined: Mon Jun 19, 2006 9:28 pm

Return to V - Skyrim