State help in scripts

Post » Mon Nov 19, 2012 8:45 pm

Ok guys,

I have made this script and it compiles fine and worked the first time I tried it. Now it will not fire state 2 of the trigger. If i jump in and out of the trigger than sometimes it will fire. State 1 always works fine but it seems the script is having trouble sending to state 2. Any ideas?


;FIGHT 1auto state StartHereEvent OnTriggerEnter(ObjectReference akActionRef)    if myQuest.GetStage() == preReqStage								 Game.DisablePlayerControls(True, True, True, False, True, False, True)								 fight1sound.play(self)   Utility.Wait(12.5)								 NPCFight1Burkhart.StartCombat(Game.GetPlayer())								 Game.EnablePlayerControls()								 Door.Lock()endif  gotoState("mystate2")endEVENTendState;Fight 2state mystate2Event OnTriggerEnter(ObjectReference akActionRef)  if myQuest2.GetStage() == preReqStage2								 Game.DisablePlayerControls(True, True, True, False, True, False, True)								 fight2sound.play(self)   Utility.Wait(12.5)								 NPCFight2Witch.StartCombat(Game.GetPlayer())								 Game.EnablePlayerControls()								 Door2.Lock()Debug.MessageBox(" blah blah blah blah")endifendeventendstate
User avatar
Dewayne Quattlebaum
 
Posts: 3529
Joined: Thu Aug 30, 2007 12:29 pm

Return to V - Skyrim