• 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.

Create unit when player kills ## amount of units

Status
Not open for further replies.

ram

ram

Level 2
Joined
Jun 10, 2009
Messages
13
I would like to create a trigger where:

If Player 1 kills 50 units, then spawn UberDemon in Random location in region 1

Or:

Player 2 suffers 50 unit deaths, spawn UberDemon in random location in region1.


This isnt an RPG Map so just engineering an appropriate placement wouldnt work. The maps theme is that a commander will spawn after so many of his troops die.

Thank you
 
  • Trigger0
  • Events
    • Unit - A unit dies
  • Conditions
  • Actions
    • Set PlayerKills[Player Number of (Owner of (Killing unit))] = ((PlayerKills[Player Number of (Owner of (Killing unit))]) + 1)
    • If/ Then/ Else
      • If (Conditions)
        • PlayerKills[Player Number of (Owner of (Killing unit))] Equal to 50
      • Then (Actions)
        • Set Point1 = (Random Point in (Region 0001 <gen>))
        • Unit - Create 1 Uber Demon for Neutral Hostile at Point1 facing default building degrees
        • Custom script: call Removelocation (udg_Point1)
      • Else (Actions)
 
Status
Not open for further replies.
Top