HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Most Efficient TD Creep Spawner

09-16-2006, 12:32 AM#1
Siphonized
I have this TD where you can play up to 6 people, and you can arrange teams when the game starts.

2v2v2, 3v3 or FFA.

Now the thing is, I have a trigger for it, but it sometimes forgets to spawn units on some people in the beginning, even though the trigger always look the same and is never changed.

I won't post it since you will just say "this looks fine to me". It is not fine.

The trigger should respond to a unit being sold, and then check each player in the game if he is allied with the one buying the unit. If he is an ally, don't spawn the unit in his TD. Pretty basic stuff, but it somehow malfunctions.

If you were to make a trigger like this, how would you construct it?

And plz don't ask me to post the trigger, I wan't your opinions, not your opinions based on my trigger.
Theoretically, my trigger should work.

Go.
09-16-2006, 01:46 AM#2
Ceo
I dont understand your reasoning for not posting the trigger/map. Do you really think yourself incapable of making simple mistakes?
09-16-2006, 03:27 AM#3
The_AwaKening
Agreed with CEO. Simple things are generally overlooked. That seems kind of lame to not post your trigger and get help looking for a bug with it. I'd prefer look at your system to find a bug rather than build you a whole new one.
09-16-2006, 06:46 AM#4
Siphonized
The purpose of this thread is not about correcting my trigger, it's about giving me a view on how other people would handle it, but whatever, here it is:

Trigger:
Spawn Unit T1
Collapse Events
Unit - A unit Sells a unit
Collapse Conditions
(Unit-type of (Selling unit)) Equal to T1 Siege Building
Collapse Actions
Set SoldSiegeUnit[(Player number of (Triggering player))] = (Unit-type of (Sold unit))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 1 (Red)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn1 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 2 (Blue) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 2 (Blue)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn2 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 3 (Teal) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 3 (Teal)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn3 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 4 (Purple) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 4 (Purple)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn4 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 5 (Yellow) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 5 (Yellow)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn5 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player 6 (Orange) slot status) Equal to Is playing
((Sold unit) belongs to an enemy of Player 6 (Orange)) Equal to True
Collapse Then - Actions
Unit - Create 1 SoldSiegeUnit[(Player number of (Triggering player))] for Player 9 (Gray) at (Center of Spawn6 <gen>) facing 270.00 degrees
Collapse Else - Actions
Do nothing
Unit - Remove (Sold unit) from the game