• 🏆 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] Why This Trigger doesn t work?

Status
Not open for further replies.
Level 6
Joined
Aug 10, 2010
Messages
77
  • Rewards
    • Events
      • Unit - A unit owned by Player 5 (Yellow) Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Treasure Chest
    • Actions
      • Set Randomer_EVENTS = (Random integer number between 1 and 15)
      • For each (Integer A) from 1 to 1, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Randomer_EVENTS Equal to (Integer A)
            • Then - Actions
              • Quest - Display to (All players) the Hint message: - - Opening - -
              • Wait 3.00 seconds
              • Quest - Display to (All players) the Hint message: You received 200 pe...
              • Item - Create 200 Pearls at (Random point in Rewards <gen>)
            • Else - Actions
              • For each (Integer A) from 2 to 2, do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Randomer_EVENTS Equal to (Integer A)
                    • Then - Actions
                      • Quest - Display to (All players) the Hint message: - - Opening - -
                      • Wait 3.00 seconds
                      • Quest - Display to (All players) the Hint message: You received 1000 g...
                      • Item - Create 200 Pearls at (Random point in Rewards <gen>)
                      • Item - Create 1000 Gold at (Random point in Rewards <gen>)
                    • Else - Actions
                      • For each (Integer A) from 3 to 3, do (Actions)
                        • Loop - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Randomer_EVENTS Equal to (Integer A)
                            • Then - Actions
                              • Quest - Display to (All players) the Hint message: - - Opening - -
                              • Wait 3.00 seconds
                              • Quest - Display to (All players) the Hint message: You received Repair...
                              • Item - Create Repair Booster at (Random point in Rewards <gen>)
                            • Else - Actions
                              • For each (Integer A) from 4 to 4, do (Actions)
                                • Loop - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Randomer_EVENTS Equal to (Integer A)
                                    • Then - Actions
                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                      • Wait 3.00 seconds
                                      • Quest - Display to (All players) the Hint message: You received 2000 G...
                                      • Item - Create 2000 Gold at (Random point in Rewards <gen>)
                                    • Else - Actions
                                      • For each (Integer A) from 5 to 5, do (Actions)
                                        • Loop - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • Randomer_EVENTS Equal to (Integer A)
                                            • Then - Actions
                                              • Quest - Display to (All players) the Hint message: - - Opening - -
                                              • Wait 3.00 seconds
                                              • Quest - Display to (All players) the Hint message: You received 2000 G...
                                              • Item - Create 2000 Gold at (Random point in Rewards <gen>)
                                            • Else - Actions
                                              • For each (Integer A) from 6 to 6, do (Actions)
                                                • Loop - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • Randomer_EVENTS Equal to (Integer A)
                                                    • Then - Actions
                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                      • Wait 3.00 seconds
                                                      • Quest - Display to (All players) the Hint message: You received Heavy ...
                                                      • Item - Create Heavy Cannon at (Random point in Rewards <gen>)
                                                    • Else - Actions
                                                      • For each (Integer A) from 7 to 7, do (Actions)
                                                        • Loop - Actions
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • Randomer_EVENTS Equal to (Integer A)
                                                            • Then - Actions
                                                              • Quest - Display to (All players) the Hint message: - - Opening - -
                                                              • Wait 3.00 seconds
                                                              • Quest - Display to (All players) the Hint message: You received 250 mu...
                                                              • Item - Create Munition(250) at (Random point in Rewards <gen>)
                                                            • Else - Actions
                                                              • For each (Integer A) from 8 to 8, do (Actions)
                                                                • Loop - Actions
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • Randomer_EVENTS Equal to (Integer A)
                                                                    • Then - Actions
                                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                      • Wait 3.00 seconds
                                                                      • Quest - Display to (All players) the Hint message: You received Kraken...
                                                                      • Item - Create |cff00FF00Kraken's cannon at (Random point in Rewards <gen>)
                                                                    • Else - Actions
                                                                      • For each (Integer A) from 9 to 9, do (Actions)
                                                                        • Loop - Actions
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • Randomer_EVENTS Equal to (Integer A)
                                                                            • Then - Actions
                                                                              • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                              • Wait 3.00 seconds
                                                                              • Quest - Display to (All players) the Hint message: You received 10 000...
                                                                              • Item - Create 10 000 Gold at (Random point in Rewards <gen>)
                                                                            • Else - Actions
                                                                              • For each (Integer A) from 10 to 10, do (Actions)
                                                                                • Loop - Actions
                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                    • If - Conditions
                                                                                      • Randomer_EVENTS Equal to (Integer A)
                                                                                    • Then - Actions
                                                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                      • Wait 3.00 seconds
                                                                                      • Quest - Display to (All players) the Hint message: You received 2250 G...
                                                                                      • Item - Create 2250G at (Random point in Rewards <gen>)
                                                                                      • Item - Create 370Pearls at (Random point in Rewards <gen>)
                                                                                    • Else - Actions
                                                                                      • For each (Integer A) from 11 to 11, do (Actions)
                                                                                        • Loop - Actions
                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                            • If - Conditions
                                                                                              • Randomer_EVENTS Equal to (Integer A)
                                                                                            • Then - Actions
                                                                                              • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                              • Wait 3.00 seconds
                                                                                              • Quest - Display to (All players) the Hint message: You received Bronze...
                                                                                              • Item - Create Bronze Cannon at (Random point in Rewards <gen>)
                                                                                            • Else - Actions
                                                                                              • For each (Integer A) from 12 to 12, do (Actions)
                                                                                                • Loop - Actions
                                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                    • If - Conditions
                                                                                                      • Randomer_EVENTS Equal to (Integer A)
                                                                                                    • Then - Actions
                                                                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                                      • Wait 3.00 seconds
                                                                                                      • Quest - Display to (All players) the Hint message: You received 5000 G...
                                                                                                      • Item - Create 5000 Gold at (Random point in Rewards <gen>)
                                                                                                    • Else - Actions
                                                                                                      • For each (Integer A) from 13 to 13, do (Actions)
                                                                                                        • Loop - Actions
                                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                            • If - Conditions
                                                                                                              • Randomer_EVENTS Equal to (Integer A)
                                                                                                            • Then - Actions
                                                                                                              • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                                              • Wait 3.00 seconds
                                                                                                              • Quest - Display to (All players) the Hint message: You received 750Pea...
                                                                                                              • Item - Create 750 Pearls at (Random point in Rewards <gen>)
                                                                                                            • Else - Actions
                                                                                                              • For each (Integer A) from 14 to 14, do (Actions)
                                                                                                                • Loop - Actions
                                                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                                    • If - Conditions
                                                                                                                      • Randomer_EVENTS Equal to (Integer A)
                                                                                                                    • Then - Actions
                                                                                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                                                      • Wait 3.00 seconds
                                                                                                                      • Quest - Display to (All players) the Hint message: You received Iron C...
                                                                                                                      • Item - Create Iron Cannon at (Random point in Rewards <gen>)
                                                                                                                    • Else - Actions
                                                                                                                      • Quest - Display to (All players) the Hint message: - - Opening - -
                                                                                                                      • Wait 3.00 seconds
                                                                                                                      • Quest - Display to (All players) the Hint message: You received 250 mu...
                                                                                                                      • Item - Create Munition(250) at (Random point in Rewards <gen>)


I made it again and it works for now, i don t know where mistake was :) ... This trigger Should Do nothing at number 15 but why it was every 3 Treasure chest the God knows :) ... Och
 
Last edited:
Status
Not open for further replies.
Top