Need Unit Limit Help

Middy

Member
Joined
Aug 9, 2004
Messages
6
Reaction score
0
Website
Visit site
I have a trigger that makes one unit at a time but keeps making them with the preservetrigger action. I need a way to keep my civilian on the beacon (that triggers the action) but i want only 65 units to be made. so when 1 unit dies another will automatically be made.
 

Middy

Member
Joined
Aug 9, 2004
Messages
6
Reaction score
0
Website
Visit site
Player 1

Bring(P1, Exactly, 1, Civilian, Blue Zergling);

CreateUnit(1, Zergling, Blue Maker, P1);
PreserveTrigger();

I want it to keep making zerglings until 65
 

aphextwin

BattleForums Senior Member
Joined
May 20, 2003
Messages
4,394
Reaction score
0
isnt there like
if there is 66 units at location
then kill 1 unit?
 

Kao

Drives an Evo IX ;)
Joined
Dec 9, 2002
Messages
5,109
Reaction score
0
Location
England
Or, just make it so that if there are =< 65 units at that location, then it won't make any. If you have Preserve Trigger, it will continue to make it for ever and ever if you have always in the conditions.
 

Middy

Member
Joined
Aug 9, 2004
Messages
6
Reaction score
0
Website
Visit site
well the people will move the 65 units all over the map, i guess i could make the location the whole map
 

Middy

Member
Joined
Aug 9, 2004
Messages
6
Reaction score
0
Website
Visit site
Originally posted by Kao
Or, just make it so that if there are =< 65 units at that location, then it won't make any. If you have Preserve Trigger, it will continue to make it for ever and ever if you have always in the conditions.
how do i make it "not make any"
 

Kao

Drives an Evo IX ;)
Joined
Dec 9, 2002
Messages
5,109
Reaction score
0
Location
England
I don't think this is exactly how to do it, but I'm pretty sure you would have to use switches. I have never used switches before, so I can't guarantee my work.
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
Take the easy way:
CONDITIONS
Bring(P1, Exactly, 1, Civilian, Blue Zergling);
Bring(P1,AtMost, 65, Zergling, Anywhere);
ACTIONS
CreateUnit(1, Zergling, Blue Maker, P1);
PreserveTrigger();

If you do it this way, the trigger will not fire once Player 1 has 65 or more zerglings anywhere in the map.

This must be your first time here at BattleForums. Please post ocassionally as you see BattleForums is a cool place to hang out or if you have another problem with making a map.
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
Actually you got to say at most 64 units. Because the trigger will fire creating the 65th.

PS. why do you write your triggers out in SF syntax, its annoying.
 

Taligaro

Furyan Merc
Joined
Jul 17, 2004
Messages
462
Reaction score
0
Originally posted by Bolt Head
PS. why do you write your triggers out in SF syntax, its annoying.
The answer is obvious and simple Bolt...
If you use SF more, you get used to doing the triggers the SF way...
If you use SE or X-tra more, you get used to doing the triggers the 'old' way...

BTW, both Lwek and Bolt are right. I've seen it done a little different, but the results are the same:

PLAYERS:
Player 1
CONDITIONS:
Player 1 commands at most 64 Zerglings
Player 1 brings exactly 1 Civilian to 'get lings'
ACTIONS:
Create 1 Zergling at 'p1 lings' for Player 1
Preserve trigger

That's similar to what a friend used in an old mass map. It will give you the result you want. However, even though there is not wait trigger in there, it will wait 1 second before it creates each ling. If you want speed, I suggest you look into hyper triggers.

If you ask me, mass maps are the easiest maps to make. Even though I am fairly new to map making myself, I could make a mass map in my sleep.
 

New threads

Top