I made a trigger for creating 4 firebats when i make a bunker and they go in the bunker, to make it do this for everytime i make a new bunker i need to preserve trigger but when i do this it makes 4 firebats rapidly and wont stop. How can i make it only repeate when i make a new bunker?
QUOTE(joscpe @ Nov 12 2006, 02:30 AM)
I made a trigger for creating 4 firebats when i make a bunker and they go in the bunker, to make it do this for everytime i make a new bunker i need to preserve trigger but when i do this it makes 4 firebats rapidly and wont stop. How can i make it only repeate when i make a new bunker?
[right][snapback]587516[/snapback][/right]
I think i know the problem but i dont understand how your trigger is set up, can you write it out please?
Somehow you need to make it that the conditions are no longer met once the firebats are in the bunker. Perhaps you could make your map like Tower Defense, where you build, say, a Supply Depot and it is then removed and replace by a bunker with units.
I'm not sure about this, but does the Bring condition detect units in bunkers? If so, then just add "current player bring exactly 0 firebat to location" to your conditions.
Trigger |
Description: |
Player One Makes A Bunker |
|
Players: |
¤ Player 1 |
Conditions: |
¤ Current player brings exactly 1 'Hideout' to 'Anywhere'. |
Actions: |
¤ Center location labeled 'Hideout1' on 'Hideout' owned by Current player at 'Anywhere'.
|
¤ Create 4 Terran Firebat at 'Hideout1' for Current player.
|
¤ Move Builder for Current player at 'Hideout1' to 'temparea'.
|
¤ Execute AI scriptEnter Closest Bunker' at 'Hideout1'.
|
¤ Wait for500 milliseconds.
|
¤ Move Builde for Current player at 'temparea' to 'Hideout1'.
|
¤ Preserve trigger |
do what DTBK said. it WILL work. and also, be careful of wait blocks since you're using a wait.
Your condition is never cleared. That "hideout" remains where it is and thus the trigger will fire again and again.
You can a) get rid of that bunker or b) don't start off with a bunker in the first place, but replace it like DTBK mentioned.
How do I build
QUOTE(DT_Battlekruser @ Nov 12 2006, 01:19 PM)
a Supply Depot and it is then removed and replace by a bunker with units.
[right][snapback]587744[/snapback][/right]
you cant place a bunker filled with units...
...
have your triggers detect for a supply depot and replce it with a bunker in your trigs...
QUOTE(Heimdal @ Nov 12 2006, 01:39 PM)
I'm not sure about this, but does the Bring condition detect units in bunkers? If so, then just add "current player bring exactly 0 firebat to location" to your conditions.
[right][snapback]587883[/snapback][/right]
I was under the impression that, like units in dropships, units in bunker satisfy the Bring condition.
QUOTE(joscpe @ Nov 12 2006, 06:05 PM)
How do I build
you cant place a bunker filled with units...
[right][snapback]588057[/snapback][/right]
Remove the old building, place a bunker, place units, use AI order enter bunker, then disable the bunker if you don't want the unit leaving it.Its working now, but how can I disable the bunker? Also how do I change the name of the building when you click Build?
the second part is impossible
oh,
well how can i dissable the bunkers? its not in properties...
Thank you!!
I have a small problem though, 1 firebat is too slow to go in the bunker and it locks, I have tried resizing the location and changing the wait, its now at 1100 miliseconds. He still doesnt make it in...
make it so that there has to be 4 firebats in the location the bunker is centered on for it to be disabled.
Its working!
Thanks alot guys!!
QUOTE(spinesheath @ Nov 12 2006, 04:59 PM)
Your condition is never cleared. That "hideout" remains where it is and thus the trigger will fire again and again.
You can a) get rid of that bunker or b) don't start off with a bunker in the first place, but replace it like DTBK mentioned.
[right][snapback]587898[/snapback][/right]
A) is not true
If you get rid of the bunker IE kill/remove then the units inside will no longer be loaded there. If you move the bunker it is still in the location "anywhere"
I didn't specify as of how to get rid of it. You have to see it in a broader sense; what I wanted to say is that the bunker must not be fulfilling the condition anymore - this might also involve changing the condition.
Can't people understand laziness?
They can when it doesn't mislead them, spine
"At most" doesn't recognize units in bunkers, while "Exactly" does. Funky, huh.
Really sure about that?
That would be REALLY weird