HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with spawn system.

02-18-2013, 04:18 PM#1
CharZard
I am having problems getting the spawn system I put in place to work. My system is set up with 2 teams that each have multiple bases and after about 500 seconds their army quality is upgraded.The system creates an army at bases every 100 seconds and will continue to do this until you have reached a food cap of 110. But this is not happening, It seems that by the way my triggers are set up it is going off of the units actually owned not the food (which is using pretty much the towers, bases, heroes and units). I have been trying to figure out a way to change the triggers to only include my units owned for each race but I am not finding a way. If any of you are familiar with a system that achieves this goal and is more efficient I would really appreciate it, or if you know what is blocking my units from being spawned I would love that 2 :)
Thnx CharZard
- Here is a list of things you might need to know.
Changed gameplay constraints to max food 110
set food for each race at 110
all units are 1 food
towers cost no food
bases grant no food
heroes cost no food
02-18-2013, 05:02 PM#2
cohadar
Post your trigger using TRIGGER tags.
[TRIGGER] your code here [/TRIGGER]

TIP: try to find this icon when you post.
02-18-2013, 06:20 PM#3
CharZard
I hope this helps :)
Trigger:
Minas anor 1
Collapse Events
Time - Every 100.00 seconds of game time
Collapse Conditions
(Number of units in (Units owned by Player 1 (Red) of type Barracks)) Greater than or equal to (>=) 1
(Number of units in (Units owned by Player 1 (Red))) Less than or equal to (<=) aovercaps[1]
(Minas Anor 0144 <gen> is alive) Equal to (==) True
Collapse Actions
Trigger - Turn on Red Rally Minas <gen>
Unit - Create 1 Soldier of Gondor for Player 1 (Red) at (Center of Red Spawn <gen>) facing Default building facing (270.0) degrees
Unit - Create 1 Soldier of Gondor for Player 1 (Red) at (Center of Red Spawn <gen>) facing Default building facing (270.0) degrees
Unit - Create 1 Soldier of Gondor for Player 1 (Red) at (Center of Red Spawn <gen>) facing Default building facing (270.0) degrees
Unit - Create 1 Archer of Gondor for Player 1 (Red) at (Center of Red Spawn <gen>) facing Default building facing (270.0) degrees
Unit - Create 1 Archer of Gondor for Player 1 (Red) at (Center of Red Spawn <gen>) facing Default building facing (270.0) degrees
Cinematic - Ping minimap for Player Group - Player 1 (Red) at (Center of Red Spawn <gen>) for 5.00 seconds
Btw this (aovercaps[1]) is a variable that is set up to track units, but like I posted earlier I think the problem lies somewhere in this step. I don't want it tracking units but food currently used.
Trigger:
Set aovercaps[1] = 110
Thnx again for your help
02-18-2013, 06:52 PM#4
Anitarf
You currently have the number of units in a group as your condition:
Trigger:
(Number of units in (Units owned by Player 1 (Red))) Less than or equal to (<=) aovercaps[1]
If you want the unit limit to be food-based, you should be using the "food used" player property instead:
Trigger:
(Player 1 (Red) Food used) Less than or equal to (<=) aovercaps[1]
Is this what your problem is?
02-18-2013, 07:46 PM#5
CharZard
yea that looks like thats the problem, I couldn't find that condition for some reason. I am pretty confident this will fix the problem thank you.