Why does this trigger get stuck halfway

mastah_

New Member
Reaction score
5
ok well this isn't the entire trigger but just the part i'm guessing it gets stuck at
Code:
win
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Trigger - Turn off (This trigger)
        Set winner = (Killing unit)
        Trigger - Turn off Dies <gen>
        Trigger - Turn off create <gen>
        Game - Display to (All players) the text: ((Name of (Owner of winner)) +  has attained the rank of Stealth Master!)
        Trigger - Run end allys <gen> (ignoring conditions)
        Wait 5.00 seconds
        Cinematic - Turn cinematic mode On for (All players)
[B]        Unit Group - Pick every unit in (Units of type Stealth Assassin) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                    Then - Actions
                        Hero - Instantly revive (Picked unit) at (Random point in Region 004 <gen>), Hide revival graphics
                    Else - Actions
                        Unit - Move (Picked unit) instantly to (Random point in Region 004 <gen>), facing (Center of Region 005 <gen>)
                Camera - Apply ending cam <gen> for (Owner of (Picked unit)) over 0.00 seconds
        Unit - Move winner instantly to (Center of Region 005 <gen>), facing (Center of Region 004 <gen>)
        Visibility - Disable fog of war
        Visibility - Disable black mask[/B]
        Cinematic - Send transmission to (All players) from winner named (Name of (Owner of winner)): Play No sound and display The battle has ende....  Modify duration: Add 0.00 seconds and Wait
        Wait 2.00 seconds
        Special Effect - Create a special effect at (Center of Region 006 <gen>) using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
        Special Effect - Create a special effect at (Center of Region 006 <gen>) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
        Unit Group - Pick every unit in (Units in Region 006 <gen>) and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
                Unit - Kill (Picked unit)
        Wait 10.00 seconds
        Player Group - Pick every player in (All enemies of (Owner of winner)) and do (Actions)
            Loop - Actions
                Game - Defeat (Picked player) with the message: Failure is Death!
        Game - Victory (Owner of winner) (Show dialogs, Show scores)
at the bolded part is the place i believe it gets stuck at...whats ment to happen is all units that are dead revive then move to a specific place (different place from "winner" (which is a variable set to a unit who has won the game...der ) )which all works fine then a couple seconds later the camera changes to a different place on map ...nowhere near anything thats going on...then the whole event stops and it dosn't go anyfurther... anyhelps great thxs
 

HalosNTariff

New Member
Reaction score
13
Possibly because you are turning off the trigger before the other actions? try moving 'turn off-this trigger' to the end.
 

mastah_

New Member
Reaction score
5
no because
1) if u read the description on turn off trigger it says it just dosn't let it start again but it plays the rest of the actions out (which its half doing)
2)its doing half of the triggers
 

gameman

It's been a long, long time.
Reaction score
96
Possibly because you are turning off the trigger before the other actions? try moving 'turn off-this trigger' to the end.

If you turn it off the trigger, the actions will continue to run.

mastah said:
Code:
             If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                    Then - Actions
                        Hero - Instantly revive (Picked unit) at (Random point in Region 004 <gen>), Hide revival graphics
                    Else - Actions
Maybe its getting stuck because you are moving a dead unit?
 

mastah_

New Member
Reaction score
5
no no its reviving the dead unit at the point.. its picking every one of my heros (includes dead ones) and then it says if anyof them units are dead...revive them and move them to the point... which it does...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top