• 🏆 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] Spawn Rare Creep

Status
Not open for further replies.
Level 2
Joined
Jul 10, 2012
Messages
12
  • Elite Creep Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
      • (Custom value of (Triggering unit)) Greater than 0
    • Actions
      • Set RandomInt = (Random integer number between 1 and 100)
      • Set Elite_Creep[1] = |c00FF7F00Bandit|r|n(Elite)
      • Set Elite_Creep[2] = |c00FF7F00Assasin|r|n(Elite)
      • Set Elite_Creep[3] = |c00FF7F00Brigand|r|n(Elite)
      • Set Elite_Creep[4] = |c00FF7F00Rogue|r|n(Elite)
      • Set Elite_Creep[5] = |c00FF7F00Rogue|r|n(Elite)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomInt Less than or equal to 5
        • Then - Actions
          • Wait EliteCreep_RespawnTime game-time seconds
          • Unit - Create 1 Elite_Creep[1] for Neutral Hostile at Creep_Point[Temp_Int] facing 270.00 degrees
          • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RandomInt Less than or equal to 5
            • Then - Actions
              • Wait EliteCreep_RespawnTime game-time seconds
              • Unit - Create 1 Elite_Creep[2] for Neutral Hostile at Creep_Point[Temp_Int] facing 270.00 degrees
              • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RandomInt Less than or equal to 5
                • Then - Actions
                  • Wait EliteCreep_RespawnTime game-time seconds
                  • Unit - Create 1 Elite_Creep[3] for Neutral Hostile at Creep_Point[Temp_Int] facing 270.00 degrees
                  • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • RandomInt Less than or equal to 5
                    • Then - Actions
                      • Wait EliteCreep_RespawnTime game-time seconds
                      • Unit - Create 1 Elite_Creep[4] for Neutral Hostile at Creep_Point[Temp_Int] facing 270.00 degrees
                      • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • RandomInt Less than or equal to 5
                        • Then - Actions
                          • Wait EliteCreep_RespawnTime game-time seconds
                          • Unit - Create 1 Elite_Creep[5] for Neutral Hostile at Creep_Point[Temp_Int] facing 270.00 degrees
                          • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
                        • Else - Actions
Anything wrong with the above trigger? I want to spawn the so call elite creep by chance. But the thing is,the trigger above spawn more than 1 elite creep.Point out where i do the wrong thing lol. Thanks in advance.
 

Attachments

  • village test with BUY QUEST SYSTEM FROM THE HIVE WORKSHOP 2 working trigger 2.w3x
    172.6 KB · Views: 40
Status
Not open for further replies.
Top