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

Unit spawn limit remove my hero.

Status
Not open for further replies.
Level 4
Joined
Oct 14, 2008
Messages
67
IIm trying to make a map where you are an hero andyou have to level up by wpawning creeps, but when i enter a trigger there teleport you to the level zone there will be spawned 25 creeps for you to fight, but i have made an limit to 100 creeps so the 4 hero there enter vill get removed :S ? 3hero and 75 creeps is 78 mobs adn then the last hero enter its 104 creeps at all then it remov the last 4 creep spawn/teleported

antilagg1
Events
Unit - A unit enters 0 til 10 area <gen>
Conditions
(Number of units in (Units in 0 til 10 area <gen> owned by Player 12 (Brown))) Greater than 100
Actions
Unit - Remove (Triggering unit) from the game


how to fix so the hero don't get removed?
 
Level 4
Joined
Oct 14, 2008
Messages
67
Would this help?:
Conditions: ("choose the first and set to": )
((Entering unit) is a Hero) Equal to False

antilagg1
Events
Unit - A unit enters 0 til 10 area <gen>
Conditions
(Number of units in (Units in 0 til 10 area <gen> owned by Player 12 (Brown))) Greater than 100
Actions
Unit - Remove (Triggering unit) from the game

can you replce or put in the text where it has to be plesae ? :) And thanks :p
 
Level 3
Joined
Oct 18, 2008
Messages
17
Unit - A unit enters 0 til 10 area <gen>
Conditions:
(Number of units in (Units in 0 til 10 area <gen> owned by Player 12 (Brown))) Greater than 100
((Entering unit) is a Hero) Equal to False
Actions
Unit - Remove (Triggering unit <-- i would call that (entering unit) isted of Triggering ;)) from the game
 
Level 4
Joined
Oct 14, 2008
Messages
67
Thanks alot dude! ;D

EDIT:
Lol, im feeling like an retard -.- with one under Conditions shall i take?
 
Last edited by a moderator:
Level 15
Joined
Aug 14, 2007
Messages
936
Correction:

Condition

When All conditions are True( the two triggers )

Actions:

-- --
-- --

Thats all, the problem is actually in the conditions, if you just leave 2 conditions there, the wc3 editor chooses a random one condition from the two, by using all conditions are true, it actually checks both then conclude instead of random choosing

Hope it helped! :)
 
Status
Not open for further replies.
Top