• 🏆 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!

[Trigger] Shortening GUI

Status
Not open for further replies.
Level 11
Joined
Apr 6, 2008
Messages
562
How could i shorten this?

  • Starting movie
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Sound - Set Animation and Spell Sounds to 0.00%
      • Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait 0.01 seconds
      • Cinematic - Fade in over 7.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
      • Player - Make Player 1 (Red) treat Player 9 (Gray) as an Neutral
      • Player - Make Player 2 (Blue) treat Player 9 (Gray) as an Neutral
      • Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral
      • Sound - Set Animation and Spell Sounds to 100.00%
      • Cinematic - Disable user control for Player Group - Player 1 (Red)
      • Cinematic - Clear the screen of text messages for Player Group - Player 1 (Red)
      • Cinematic - Turn subtitle display override On
      • Wait 3.60 seconds
      • Wait 1.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • skipran Equal to 1
        • Then - Actions
          • Camera - Apply Camera 001 <gen> for Player 1 (Red) over 30.00 seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • skipran Equal to 1
            • Then - Actions
              • Cinematic - Send transmission to Player Group - Player 1 (Red) from Chaplain 0018 <gen> named Chaplain: Play No sound and display Sirs, we have run i.... Modify duration: Add 0.00 seconds and Wait
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • skipran Equal to 1
                • Then - Actions
                  • Cinematic - Send transmission to Player Group - Player 1 (Red) from Antonidas 0001 <gen> named Antonidas: Play No sound and display Anything to say Pro.... Modify duration: Add 0.00 seconds and Wait
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • skipran Equal to 1
                    • Then - Actions
                      • Cinematic - Send transmission to Player Group - Player 1 (Red) from Admiral Proudmoore 0003 <gen> named Admiral Proudmoore: Play No sound and display .... Modify duration: Add 0.00 seconds and Wait
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • skipran Equal to 1
                        • Then - Actions
                          • Cinematic - Send transmission to Player Group - Player 1 (Red) from Sir Gregory Edmunson 0004 <gen> named Sir Gregory Edmunson: Play No sound and display I remember Night El.... Modify duration: Add 0.00 seconds and Wait
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • skipran Equal to 1
                            • Then - Actions
                              • Cinematic - Send transmission to Player Group - Player 1 (Red) from Admiral Proudmoore 0003 <gen> named Admiral Proudmoore: Play No sound and display Kill them and get t.... Modify duration: Add 0.00 seconds and Wait
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • skipran Equal to 1
                                • Then - Actions
                                  • Cinematic - Send transmission to Player Group - Player 1 (Red) from Eye of Sargaras 0073 <gen> named Eye of Sargaras: Play No sound and display I am the eye of the.... Modify duration: Add 0.00 seconds and Wait
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • skipran Equal to 1
                                    • Then - Actions
                                      • Camera - Shake the camera for Player 1 (Red) with magnitude 3.00
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • skipran Equal to 1
                                        • Then - Actions
                                          • Cinematic - Ping minimap for Player Group - Player 1 (Red) at (Center of Region 000 <gen>) for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 100.00%)
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • skipran Equal to 1
                                            • Then - Actions
                                              • Wait 1.00 seconds
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • skipran Equal to 1
                                                • Then - Actions
                                                  • Camera - Shake the camera for Player 1 (Red) with magnitude 1.50
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • skipran Equal to 1
                                                    • Then - Actions
                                                      • Unit - Kill Chaplain 0018 <gen>
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • skipran Equal to 1
                                                        • Then - Actions
                                                          • Cinematic - Send transmission to Player Group - Player 1 (Red) from a Player 2 (Blue) Chaplain named Chaplain at (Center of Region 008 <gen>): Play No sound and display RRaghhh. Modify duration: Add 0.00 seconds and Wait
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • skipran Equal to 1
                                                            • Then - Actions
                                                              • Unit - Suspend corpse decay for Chaplain 0018 <gen>
                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                • If - Conditions
                                                                  • skipran Equal to 1
                                                                • Then - Actions
                                                                  • Camera - Stop swaying/shaking the camera for Player 1 (Red)
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • skipran Equal to 1
                                                                    • Then - Actions
                                                                      • Cinematic - Send transmission to Player Group - Player 1 (Red) from Admiral Proudmoore 0003 <gen> named Admiral Proudmoore: Play No sound and display We must destroy it.. Modify duration: Add 0.00 seconds and Wait
                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                        • If - Conditions
                                                                          • skipran Equal to 1
                                                                        • Then - Actions
                                                                          • Cinematic - Send transmission to Player Group - Player 1 (Red) from Sir Gregory Edmunson 0004 <gen> named Sir Gregory Edmunson: Play No sound and display Yes, we must.. Modify duration: Add 0.00 seconds and Wait
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • skipran Equal to 1
                                                                            • Then - Actions
                                                                              • Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                • If - Conditions
                                                                                  • skipran Equal to 1
                                                                                • Then - Actions
                                                                                  • Camera - Reset camera for Player 1 (Red) to standard game-view over 2.00 seconds
                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                    • If - Conditions
                                                                                      • skipran Equal to 1
                                                                                    • Then - Actions
                                                                                      • Wait 2.00 seconds
                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                        • If - Conditions
                                                                                          • skipran Equal to 1
                                                                                        • Then - Actions
                                                                                          • Unit - Change ownership of Wagon 0007 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0014 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0013 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0012 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Wagon 0005 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Wagon 0006 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Wagon 0008 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Wagon 0009 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0010 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0015 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0016 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0011 <gen> to Player 1 (Red) and Retain color
                                                                                          • Unit - Change ownership of Pack Horse 0017 <gen> to Player 1 (Red) and Retain color
                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                            • If - Conditions
                                                                                              • skipran Equal to 1
                                                                                            • Then - Actions
                                                                                              • Trigger - Run Quests <gen> (ignoring conditions)
                                                                                              • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy
                                                                                              • Player - Make Player 2 (Blue) treat Player 1 (Red) as an Enemy
                                                                                              • Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
                                                                                            • Else - Actions
                                                                                              • Do nothing
                                                                                        • Else - Actions
                                                                                          • Do nothing
                                                                                    • Else - Actions
                                                                                      • Do nothing
                                                                                • Else - Actions
                                                                                  • Do nothing
                                                                            • Else - Actions
                                                                              • Do nothing
                                                                        • Else - Actions
                                                                          • Do nothing
                                                                    • Else - Actions
                                                                      • Do nothing
                                                                • Else - Actions
                                                                  • Do nothing
                                                            • Else - Actions
                                                              • Do nothing
                                                        • Else - Actions
                                                          • Do nothing
                                                    • Else - Actions
                                                      • Do nothing
                                                • Else - Actions
                                                  • Do nothing
                                            • Else - Actions
                                              • Do nothing
                                        • Else - Actions
                                          • Do nothing
                                    • Else - Actions
                                      • Do nothing
                                • Else - Actions
                                  • Do nothing
                            • Else - Actions
                              • Do nothing
                        • Else - Actions
                          • Do nothing
                    • Else - Actions
                      • Do nothing
                • Else - Actions
                  • Do nothing
            • Else - Actions
              • Do nothing
        • Else - Actions
          • Do nothing
Skipran is a integer variable that is normaly equal to 1 and when this trigger (Skip) runs it changes to 0

  • skip
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
      • Unit - Remove Chaplain 0018 <gen> from the game
      • Unit - Change ownership of Pack Horse 0015 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0014 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0013 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0012 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Wagon 0005 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Wagon 0006 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Wagon 0009 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Wagon 0007 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Wagon 0008 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0010 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0016 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0011 <gen> to Player 1 (Red) and Retain color
      • Unit - Change ownership of Pack Horse 0017 <gen> to Player 1 (Red) and Retain color
      • Set skipran = 0
      • Trigger - Run Quests <gen> (ignoring conditions)
      • Trigger - Turn off Starting movie <gen>
      • Trigger - Turn off (This trigger)
 
Last edited:
Level 19
Joined
May 1, 2008
Messages
1,130
idk convert it to JASS? i heard that maps that use a lot of triggers convert GUI in JASS to save some extra space
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
(If true (if true (if true ( if true ))))
We obviously know it is true after the first if. Why ask the same question a hundred times? (just to clarify Poot).

I also don't see what's the point of those waits, but even if there is one, why wait 3.6 seconds and then wait 1 second?
Just wait 4.6 seconds from the start. Less function calls = happier computer.
 
Status
Not open for further replies.
Top