I need help with a periodic event trigger. I am trying to make a plants Vs. Zombies 4 player game and I want to make it so a spire (sunflower lol) spawns a natural gas every so often. But I want the scv (Gardener) to be able to create said spires so I don't want a limit to how many spires can be made. I am not good at vague answers. I will need specific trigger setups. Can anyone help? Would greatly appreciate it!
quick question. could i use the data editor to give the spire the train ability and have it so it can only train the natural gas and then make that button Hidden? Then use triggers to make it train a unit every so often? If so I can probably figure out all but the triggers.
Okay I basically edited the barracks train and added an effect that makes it take 30 seconds to create the natural gas. The problem now is I need to know the specific triggers to make any and all spires auto train the unit indefinitely. I will need to know what to click on because I get confused when navigating functions that require even more functions.
You can do a loop without and every X seconds add the unit to the building.
While
Conditions
<some game is running condition>
Actions
Wait 30 seconds (or whatever)
Order Unit - Build Whatever
I don't exactly remember if for building something is with the order unit, I think so. If not search how to build something by triggers.
If you don't need to see a building bar, you can do it without building, just spawn the unit every X seconds, like:
While
Conditions
<some game is running condition>
Actions
Wait 30 seconds (or whatever)
Create Unit - Unit Name at unit position (barracks or whatever) with default facing
I appreciate the help but that just confused me :P
I was able to create a trigger where it created 1 natural gas for one of the buildings but I cant seem to change the 1 to any unit to make it indefinite.
thanks for all the help. Im gonna first try the youtube tutorial and see how it works. Thanks for the quick replies. Much appreciated as always.
Okay cool! That tutorial helped me get it to work. Thanks much! The only thing is that it doesn't show that the natural gas is being created but I really don't care. It doesn't show it in Plants Vs. Zombies either and that is the effect I am going for.
I need help with a periodic event trigger. I am trying to make a plants Vs. Zombies 4 player game and I want to make it so a spire (sunflower lol) spawns a natural gas every so often. But I want the scv (Gardener) to be able to create said spires so I don't want a limit to how many spires can be made. I am not good at vague answers. I will need specific trigger setups. Can anyone help? Would greatly appreciate it!
@KillerGymSox: Go
quick question. could i use the data editor to give the spire the train ability and have it so it can only train the natural gas and then make that button Hidden? Then use triggers to make it train a unit every so often? If so I can probably figure out all but the triggers.
Okay I basically edited the barracks train and added an effect that makes it take 30 seconds to create the natural gas. The problem now is I need to know the specific triggers to make any and all spires auto train the unit indefinitely. I will need to know what to click on because I get confused when navigating functions that require even more functions.
You can do a loop without and every X seconds add the unit to the building.
While
Conditions
<some game is running condition>
Actions
Wait 30 seconds (or whatever)
Order Unit - Build Whatever
I don't exactly remember if for building something is with the order unit, I think so. If not search how to build something by triggers.
If you don't need to see a building bar, you can do it without building, just spawn the unit every X seconds, like:
While
Conditions
<some game is running condition>
Actions
Wait 30 seconds (or whatever)
Create Unit - Unit Name at unit position (barracks or whatever) with default facing
I appreciate the help but that just confused me :P
I was able to create a trigger where it created 1 natural gas for one of the buildings but I cant seem to change the 1 to any unit to make it indefinite.
@KillerGymSox: Go
Auto train tutorial
hope this helps.
@KillerGymSox: Go
Ok, so you have a trigger that does what you want, but wanna do it every 30 seconds?
Just use a while, that keeps repeating the code inside it until the conditions doesn't match.
That will keep doing the Actions infininitely until the condition doesn't match. In my example until there isn't any player active.
thanks for all the help. Im gonna first try the youtube tutorial and see how it works. Thanks for the quick replies. Much appreciated as always.
Okay cool! That tutorial helped me get it to work. Thanks much! The only thing is that it doesn't show that the natural gas is being created but I really don't care. It doesn't show it in Plants Vs. Zombies either and that is the effect I am going for.