• 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 do I set timers that at which when they end, spawn a hero

Status
Not open for further replies.
Level 3
Joined
Jan 30, 2013
Messages
32
How to a set a timer so when it's up a new hero spawns into the game? I need to learn how to do this for a few heros in my spawn based game, please respond with a easy explanation as I am a noob to map editor, or link screenshots.


Also, how do I make specific hero start out as a certain level?
 
Level 10
Joined
Apr 18, 2009
Messages
601
Do you know how to declare Timer variables and create regions on the map?

There is an action under Countdown Timer - Start Timer that you can use to start your timer.

This is how you spawn a new hero when a timer expires:
  • Spawn Hero
    • Events
      • Time - HeroSpawnTimer expires
    • Conditions
    • Actions
      • Unit - Create 1 Lich of Unspeakable Terror for Player 4 (Purple) at (Center of The Unholy Region Of Terrible Taste <gen>) facing Default building facing degrees
This is one way of setting the initial hero level when a unit (could be a hero) of a specific type enters the map:
  • Hero Level Setup
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Lich of Unspeakable Terror
    • Actions
      • Hero - Set (Triggering unit) Hero-level to 4711, Hide level-up graphics
Please note that these triggers aren't leak free nor bug free. I'm just using as simple triggering as possible to communicate the general concept.
 
Status
Not open for further replies.
Top