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

Automatic Unit Sending

Status
Not open for further replies.
Level 3
Joined
Oct 6, 2008
Messages
47
Ok, i'm making a map which is based off of Preschool/Micro Tournament. In those games units are automaticly sent from the buildings which you create. Now my problem is I have the units being automaticly sent. But! When one is in building progress you cannot upgrade. Now is there a way to let it upgrade without having to press escape fifteen times?

Thanks in advance.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you could use a trigger

  • Events
    • Time - every 10 seconds of the game
  • Conditions
  • Actions
    • Pick every Unit of Type <your building-type> and do Actions
      • Loop - Actions
        • Unit - create 1 Soldier at position of Picked Unit
you have to do it for every building-type you have, unless they spawn the same units

PS: welcome to the hive
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
That's not what he ment UreDe4D.... read the post better. xD

You can't upgrade a building when its training an unit. You can however make a trigger spell.
When that spell is cast on the building all units will be removed from que and it will be upgraded (if u have the money for it :p).

However I had a problem that when I stoped training all the units I could still not upgrade.. xD
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Uber upgrade skillz
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to *your ability*
      • (Target unit of ability being cast) equal to *your lv 1 building*
      • (Triggering Player) current gold is greater or equal than 9000
    • Actions
      • Unit - Replace (target unit of ability being cast) with *Your lv 2 building*
      • Player - Add -*price* to (Triggering player) current gold
Like this?
 
Level 3
Joined
Oct 6, 2008
Messages
47
I had an idea. I can have the building cast a spell automaticly to send the unit. Which means I can upgrade at any time. But! I don't have any idea of how to create something which will make a unit be spawned when an abilities cooldown is finished.
 
Status
Not open for further replies.
Top