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

How make every 60 second random natural creep like dota?

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set creepType[1] = Footman
      • Set creepType[2] = Knight
      • Set creepType[3] = Rifleman
      • Set creepType[4] = Mortar Team
      • Set creepType[5] = Spell Breaker
  • Create Units
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Set tempLoc = (Center of {Region})
      • Unit - Create 1 creepType[(Random integer number between 1 and 5)] for {Player} at tempLoc facing 0.00 degrees
      • Custom script: call RemoveLocation(udg_tempLoc)
Something like that is what you asked (every 60 seconds a random creep from a list you previously set up).

Variables:
Unit-type array "creepType"
Point "tempLoc"
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
What's the difference? All he has to do is preset creeps where he wants (even groups) and they'll be revived each 60 seconds.
I'm not sure if that's what he wants, but nothing else comes to my mind (though ap0c's solution might be right too) considering he's saying 'random natural creep'.
 
Status
Not open for further replies.
Top