• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger makes the game turn off.

Status
Not open for further replies.
Level 6
Joined
Jul 1, 2012
Messages
188
Somehow when this trigger runs Warcraft turn it' self off. No crash, simple turns itself off.


  • Victory Condition Purple
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Current research level of |cffffcc00Victory!|r for Player 4 (Purple)) Equal to 1
          • (Current research level of |cffffcc00Victory!|r for Player 5 (Yellow)) Equal to 1
          • (Current research level of |cffffcc00Victory!|r for Player 6 (Orange)) Equal to 1
    • Actions
      • Trigger - Turn on Victory Purple <gen>
      • Trigger - Run Victory Condition Purple <gen> (ignoring conditions)
      • Trigger - Turn off (This trigger)

  • Victory Purple
    • Events
    • Conditions
    • Actions
      • Camera - Pan camera for Player 1 (Red) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 2 (Blue) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 3 (Teal) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 4 (Purple) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 5 (Yellow) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 6 (Orange) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 7 (Green) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 8 (Pink) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 9 (Gray) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 10 (Light Blue) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 11 (Dark Green) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Camera - Pan camera for Player 12 (Brown) to (Center of Isle Of Memory <gen>) over 2.00 seconds
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Crab named LinkinBlade at (Center of (Playable map area)): Play No sound and display Congratulations to .... Modify duration: Set to 10.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Crab named LinkinBlade at (Center of (Playable map area)): Play No sound and display Thank you all for p.... Modify duration: Set to 10.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Crab named LinkinBlade at (Center of (Playable map area)): Play No sound and display But even if the gam.... Modify duration: Set to 15.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) DSgamer named DSgamer at (Center of (Playable map area)): Play No sound and display Rawr! You should al.... Modify duration: Set to 15.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Eagleman named Eagleman at (Center of (Playable map area)): Play No sound and display You could also leav.... Modify duration: Set to 15.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Krotos named Krotos at (Center of (Playable map area)): Play No sound and display I've teached Linkin.... Modify duration: Set to 5.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Chrucas named Chrucas at (Center of (Playable map area)): Play No sound and display I'm just here to....... Modify duration: Set to 5.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 1 (Red) Yrrgallerte named Yrrgallerte at (Center of (Playable map area)): Play No sound and display Oink!. Modify duration: Set to 5.00 seconds and Wait
      • Cinematic - Turn cinematic mode Off for (All players)
      • Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
      • Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
      • Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
      • Game - Defeat Player 1 (Red) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 2 (Blue) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 3 (Teal) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 7 (Green) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 8 (Pink) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 9 (Gray) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 10 (Light Blue) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 11 (Dark Green) with the message: Red, Blue and Teal ...
      • Game - Defeat Player 12 (Brown) with the message: Red, Blue and Teal ...
 
Last edited:
Level 16
Joined
Mar 27, 2011
Messages
1,349
Well, for starters please explain what you mean by "warcraft turns itself off". Do you mean the game ends
and back into the scorescreen?

Like said above, you dont have a wait in between the victor/defeat code and the transmissions. I am aware
the messages have waits in them, just dont add any waits in them and add 1 wait code to the trigger.

Off Topic

  • And you can do this to remove a lot of lines of code:

    • Player Group - Pick every player in (All players) and do (Actions) Loop - Actions
      • Camera - Pan camera for (Picked player) to (Center of (Playable map area)) over 0.00 seconds
    This is so you dont have to do the action for each player. Let it pick the players and do 1 action for all of them.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
The first trigger creates an infinite loop.
Here, I'll simplify the trigger for you so it's easy to see:
  • Victory Condition Purple
    • Events
      • Unit - A unit Finishes research
    • Conditions
    • Actions
      • Trigger - Run Victory Condition Purple <gen> (ignoring conditions)
You may have turned off the trigger, but a "Run (trigger)" can still run it.
Infinite loop -> Warcraft shuts down.

What you meant to do is "Run Victory Purple <gen>".
 
Level 6
Joined
Jul 1, 2012
Messages
188
Oh... fuck. Now I feel retarded... embarrassing. Anyway thanks again ap0calypse. You've helped me much the triggers lately, going to give you credit within my game.
And thanks for trying Radicool.
 
Status
Not open for further replies.
Top