• Check out the results of the Techtree Contest #19!
  • 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 a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Limit training of unit-type!

Status
Not open for further replies.
It acts as a max to the number of units the player can own at once. If the unit dies, or is removed, then the player will be able to train another. From your unit name I presume the unit isn't sticking around.

You can have a trigger detect when a unit of that type is trained and then limit the number to 0, preventing the player from training more.
 
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Player - Limit training of (Unit-type of (Sold unit)) to 0 for (Picked player)
Ok, so now I use this and still not working. The unit is not removed from the game, and when I buy it I can still buy another one!
The selling unit is neutral
 
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Player - Limit training of (Unit-type of (Sold unit)) to 0 for (Picked player)
Ok, so now I use this and still not working. The unit is not removed from the game, and when I buy it I can still buy another one!
The selling unit is neutral

Pretty sure thats because Units Trained by player does not apply to Units Sold in neutral shop. Pretty much only works if they're trained by training/building from player's barracks/builders. Not even sure if it applies to units sold by the player's own units.
 
Status
Not open for further replies.
Back
Top