• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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: 42
Status
Not open for further replies.
Top