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

dont know the problem in here

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
Fails to work sometimes (need to reenter sometimes....)

  • Suprise Circle Enter
    • Events
      • Unit - A unit enters Suprise Circle <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 18) Equal to 1
        • Then - Actions
          • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
          • Player - Add 100000 to (Owner of (Triggering unit)) Current gold
          • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
          • Custom script: call DestroyForce(udg_PlayerGroup)
          • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
          • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
          • Trigger - Turn on Suprise Circle Countdown <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 18) Equal to 2
            • Then - Actions
              • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
              • Hero - Create |cFFFFFF00Tome of Insanity and give it to (Triggering unit)
              • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
              • Custom script: call DestroyForce(udg_PlayerGroup)
              • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
              • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
              • Trigger - Turn on Suprise Circle Countdown <gen>
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 18) Equal to 3
                • Then - Actions
                  • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                  • Player - Add 50000 to (Owner of (Triggering unit)) Current gold
                  • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                  • Custom script: call DestroyForce(udg_PlayerGroup)
                  • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                  • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                  • Trigger - Turn on Suprise Circle Countdown <gen>
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 18) Equal to 4
                    • Then - Actions
                      • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                      • Hero - Create |cFFFFFF00Life Steal and give it to (Triggering unit)
                      • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                      • Custom script: call DestroyForce(udg_PlayerGroup)
                      • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                      • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                      • Trigger - Turn on Suprise Circle Countdown <gen>
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Random integer number between 1 and 18) Equal to 5
                        • Then - Actions
                          • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                          • Hero - Create |cFFFFFF00Keleen's Dagger and give it to (Triggering unit)
                          • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                          • Custom script: call DestroyForce(udg_PlayerGroup)
                          • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                          • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                          • Trigger - Turn on Suprise Circle Countdown <gen>
                          • Trigger - Turn off (This trigger)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Random integer number between 1 and 18) Equal to 6
                            • Then - Actions
                              • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                              • Hero - Create |cFFFFFF00Tome of Knowledge and give it to (Triggering unit)
                              • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                              • Custom script: call DestroyForce(udg_PlayerGroup)
                              • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                              • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                              • Trigger - Turn on Suprise Circle Countdown <gen>
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Random integer number between 1 and 18) Equal to 7
                                • Then - Actions
                                  • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                  • Hero - Create |cFFFFFF00Tome of Secret and give it to (Triggering unit)
                                  • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                  • Custom script: call DestroyForce(udg_PlayerGroup)
                                  • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                  • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                  • Trigger - Turn on Suprise Circle Countdown <gen>
                                  • Trigger - Turn off (This trigger)
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Random integer number between 1 and 18) Equal to 8
                                    • Then - Actions
                                      • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                      • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Units\Demon\Infernal\InfernalBirth.mdl
                                      • Special Effect - Destroy (Last created special effect)
                                      • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                      • Custom script: call DestroyForce(udg_PlayerGroup)
                                      • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                      • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                      • Trigger - Turn on Suprise Circle Countdown <gen>
                                      • Trigger - Turn off (This trigger)
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Random integer number between 1 and 18) Equal to 9
                                        • Then - Actions
                                          • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                          • Hero - Create |cFFFFFF00Ankh of Reincarnation and give it to (Triggering unit)
                                          • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                          • Custom script: call DestroyForce(udg_PlayerGroup)
                                          • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                          • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                          • Trigger - Turn on Suprise Circle Countdown <gen>
                                          • Trigger - Turn off (This trigger)
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Random integer number between 1 and 18) Equal to 10
                                            • Then - Actions
                                              • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                              • Hero - Create |cFFFFFF00Inferno Stone and give it to (Triggering unit)
                                              • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                              • Custom script: call DestroyForce(udg_PlayerGroup)
                                              • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                              • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                              • Trigger - Turn on Suprise Circle Countdown <gen>
                                              • Trigger - Turn off (This trigger)
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Random integer number between 1 and 18) Equal to 11
                                                • Then - Actions
                                                  • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                  • Hero - Create |cFFFFFF00Wand of Illusion and give it to (Triggering unit)
                                                  • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                  • Custom script: call DestroyForce(udg_PlayerGroup)
                                                  • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                  • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                  • Trigger - Turn on Suprise Circle Countdown <gen>
                                                  • Trigger - Turn off (This trigger)
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Random integer number between 1 and 18) Equal to 12
                                                    • Then - Actions
                                                      • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                      • Hero - Create |cFFFFFF00Furbolg Tracker and give it to (Triggering unit)
                                                      • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                      • Custom script: call DestroyForce(udg_PlayerGroup)
                                                      • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                      • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                      • Trigger - Turn on Suprise Circle Countdown <gen>
                                                      • Trigger - Turn off (This trigger)
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • (Random integer number between 1 and 18) Equal to 13
                                                        • Then - Actions
                                                          • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                          • Player - Add 25000 to (Owner of (Triggering unit)) Current gold
                                                          • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                          • Custom script: call DestroyForce(udg_PlayerGroup)
                                                          • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                          • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                          • Trigger - Turn on Suprise Circle Countdown <gen>
                                                          • Trigger - Turn off (This trigger)
                                                        • Else - Actions
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • (Random integer number between 1 and 18) Equal to 14
                                                            • Then - Actions
                                                              • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                              • Player - Add 250 to (Owner of (Triggering unit)) Current lumber
                                                              • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                              • Custom script: call DestroyForce(udg_PlayerGroup)
                                                              • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                              • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                              • Trigger - Turn on Suprise Circle Countdown <gen>
                                                              • Trigger - Turn off (This trigger)
                                                            • Else - Actions
                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                • If - Conditions
                                                                  • (Random integer number between 1 and 18) Equal to 15
                                                                • Then - Actions
                                                                  • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                                  • Hero - Create |cFFFFFF00Healing Potion and give it to (Triggering unit)
                                                                  • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                                  • Custom script: call DestroyForce(udg_PlayerGroup)
                                                                  • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                                  • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                                  • Trigger - Turn on Suprise Circle Countdown <gen>
                                                                  • Trigger - Turn off (This trigger)
                                                                • Else - Actions
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • (Random integer number between 1 and 18) Equal to 16
                                                                    • Then - Actions
                                                                      • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                                      • Hero - Create |cFFFFFF00Mana Potion and give it to (Triggering unit)
                                                                      • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                                      • Custom script: call DestroyForce(udg_PlayerGroup)
                                                                      • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                                      • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                                      • Trigger - Turn on Suprise Circle Countdown <gen>
                                                                      • Trigger - Turn off (This trigger)
                                                                    • Else - Actions
                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                        • If - Conditions
                                                                          • (Random integer number between 1 and 18) Equal to 17
                                                                        • Then - Actions
                                                                          • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                                          • Hero - Create |cFFFFFF00Potion of Invulnerability and give it to (Triggering unit)
                                                                          • Game - Display to PlayerGroup the text: |c00FFD700Congratul...
                                                                          • Custom script: call DestroyForce(udg_PlayerGroup)
                                                                          • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                                          • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                                          • Trigger - Turn on Suprise Circle Countdown <gen>
                                                                          • Trigger - Turn off (This trigger)
                                                                        • Else - Actions
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • (Random integer number between 1 and 18) Equal to 18
                                                                            • Then - Actions
                                                                              • Set PlayerGroup = (Player group((Owner of (Triggering unit))))
                                                                              • Game - Display to PlayerGroup the text: |c00FFD700Unfortuna...
                                                                              • Custom script: call DestroyForce(udg_PlayerGroup)
                                                                              • Countdown Timer - Start SupriseCircle_Timer as a One-shot timer that will expire in 180.00 seconds
                                                                              • Floating Text - Change text of Suprise_Text to (|c0000FFFFCooldown: + (|c0000FFFF + ((String(SC_Minutes)) + (|c0000FFFF + (: + (String(SC_Seconds))))))) using font size 15.00
                                                                              • Trigger - Turn on Suprise Circle Countdown <gen>
                                                                              • Trigger - Turn off (This trigger)
                                                                            • Else - Actions
 
Level 4
Joined
Jan 19, 2008
Messages
69
The random integer numbers in the different segments are independent. You should make a global integer variable and refer to it instead.

Edit: In case that is unclear this it what you should do:
  • asdasd
    • Events
    • Conditions
    • Actions
      • Set INTEGERVAR = (Random integer number between 1 and 18)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • INTEGERVAR Equal to 1
        • Then - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • INTEGERVAR Equal to 2
            • Then - Actions
            • Else - Actions
And so on..
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
you should really save the rewards into globals to eliminate the size of that monster.

but MoleKyte is right about why it wont function occasionally
 
Status
Not open for further replies.
Top