- Joined
- Jan 21, 2015
- Messages
- 5
Hey guys, just started editing about a week ago so I'm downright amateur with trigger building, however I've made everything work so far with the following outside of one thing that bothers me about it.
The triggers I have start training units automatically once the structure has been created. My intention is that regardless of how many structures are alive, they only spawn a maximum of 100 units collectively before they stop, or are removed from the game, is the only way I've been able to make it work so far.
Everything works except the following problems:
-When I reach the unit limit, it destroys my structures.
-When I reach the unit limit and build the structure again, it removes the structure but creates one extra unit that remains after the limit, this happened after I changed the limit of units to: greater than or equal to 100 because when I had equal to 100, building a new structure caused the process to repeat itself to the next interval of 100.
My intentions:
1-My structures to remain once I've hit the unit limit.
2-My structures to remain and continue training units when the limit is below cap.
3-My structures buildable at unit limit, but it doesn't train anything unless the limit is below cap and doesn't remove the structure.
4-To allow only a maximum of 5 structures (of any combination, ie: 5 barracks, or 2 barracks and 3 town halls, or 3 barracks, 1 town hall, 1 blacksmith, etc) for each player (there are only 3 available structures total on the map) to be built at any one time. (I do not have a trigger for this one yet)
I'm sure I've just worded the conditions poorly or what have you but here are the ones i am currently using, and any help to redesign or make them functional would be hugely appreciated, thank you
Please note that this is a 2 player only map, if that makes any outcome easier.
The triggers I have start training units automatically once the structure has been created. My intention is that regardless of how many structures are alive, they only spawn a maximum of 100 units collectively before they stop, or are removed from the game, is the only way I've been able to make it work so far.
Everything works except the following problems:
-When I reach the unit limit, it destroys my structures.
-When I reach the unit limit and build the structure again, it removes the structure but creates one extra unit that remains after the limit, this happened after I changed the limit of units to: greater than or equal to 100 because when I had equal to 100, building a new structure caused the process to repeat itself to the next interval of 100.
My intentions:
1-My structures to remain once I've hit the unit limit.
2-My structures to remain and continue training units when the limit is below cap.
3-My structures buildable at unit limit, but it doesn't train anything unless the limit is below cap and doesn't remove the structure.
4-To allow only a maximum of 5 structures (of any combination, ie: 5 barracks, or 2 barracks and 3 town halls, or 3 barracks, 1 town hall, 1 blacksmith, etc) for each player (there are only 3 available structures total on the map) to be built at any one time. (I do not have a trigger for this one yet)
I'm sure I've just worded the conditions poorly or what have you but here are the ones i am currently using, and any help to redesign or make them functional would be hugely appreciated, thank you
Please note that this is a 2 player only map, if that makes any outcome easier.
-
Untitled Trigger 001
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Felblood Rift Green
-
-
Actions
-
Unit - Order (Constructed structure) to train/upgrade to a Felspawn Hunter
-
-
-
Untitled Trigger 001 Copy
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Felfire Rift Red
-
-
Actions
-
Unit - Order (Constructed structure) to train/upgrade to a Felspawn Soldier
-
-
-
Untitled Trigger 001 Copy 2
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Felshard Rift Blue
-
-
Actions
-
Unit - Order (Constructed structure) to train/upgrade to a Felspawn Conjuror
-
-
-
Untitled Trigger 002
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
Actions
-
Unit - Order (Triggering unit) to train/upgrade to a (Unit-type of (Trained unit))
-
-
-
Untitled Trigger 003
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Number of units in (Units owned by (Owner of (Triggering unit)))) Greater than or equal to 100
-
-
Actions
-
Unit - Remove (Triggering unit) from the game
-
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: General, our army h...
-
-
Last edited: