Hi, so basically I have a 4 player tower defense. All four players go against the AI and you attempt to beat all the waves. This is my first map, and I'm almost done with it. However, I can't seem to make a trigger that stops spawning waves after the last wave.
For example, as of now, I'm using a timer to end the game. When the boss at wave 30 spawns, he'll go through the course and hit the exit like normal. But, how do I make it so it stops after the one spawn? If the game goes beyond the time it takes for the boss to reach the end. The boss will simply spawn again. I know there has to be a way to make it that once the boss spawns, make it never spawn again.
That also bring me to the second question, how exactly would I use a trigger to end the game? I tried to make it so once the boss reaches the end, the game would end in victory. The issue is that since it's a four player map, only one boss must reach the end. Is there a way to make the game end only after the bosses have died or they have made it to the end of the map?
Your questions are very generic, and I would have to say: Yes, there is a way to make the map work the way you want it. Until we know the specific triggers of your map however, it will be hard to find out, whats wrong with your triggers, and we can just guess
I have no idea, how your triggers would be set up to unintentionally spawn another wave of bosses. You did set them up, either you spawn them once and don't get that issue, or you spawn periodically somehow, in which case you want some check before spawning. And for the victory thing, there are various possibilities. You could count the dying bosses in a variable and end the game if the count is high enough. You could check, if the number of living bosses on the map is > 0. You could flag the players as victorious using a boolean and check those after each boss kill. Whatever you like.
yeah id go with turning the trigger off, if its a separate trigger from the rest of the waves just do "turn (current trigger) off", if its part of the same trigger that controls other waves just have a new trigger. the event could be anything like Boss enters region then just turn off the boss spawn trigger
for the end game trigger id just have either number of living units (boss) in region or count of units in region = 0 condition, the region being all the playable area besides where they end up
you mean put a thread in a thread so you can trigger while you trigger. =)
In all fairness Kueken is right; it all depends on how it was actually done as i doubt the triggering was done complete smoothly. In an ideal system all you would need a simple loop with some waits, switchs, returns inside to handle the waves and then the boss after the loop has run that just ends the game once there is one less boss.
Rollback Post to RevisionRollBack
When I want your opinion...I'll give it to you!
To post a comment, please login or register a new account.
Hi, so basically I have a 4 player tower defense. All four players go against the AI and you attempt to beat all the waves. This is my first map, and I'm almost done with it. However, I can't seem to make a trigger that stops spawning waves after the last wave.
For example, as of now, I'm using a timer to end the game. When the boss at wave 30 spawns, he'll go through the course and hit the exit like normal. But, how do I make it so it stops after the one spawn? If the game goes beyond the time it takes for the boss to reach the end. The boss will simply spawn again. I know there has to be a way to make it that once the boss spawns, make it never spawn again.
That also bring me to the second question, how exactly would I use a trigger to end the game? I tried to make it so once the boss reaches the end, the game would end in victory. The issue is that since it's a four player map, only one boss must reach the end. Is there a way to make the game end only after the bosses have died or they have made it to the end of the map?
Thanks in advance!
Your questions are very generic, and I would have to say: Yes, there is a way to make the map work the way you want it. Until we know the specific triggers of your map however, it will be hard to find out, whats wrong with your triggers, and we can just guess
I have no idea, how your triggers would be set up to unintentionally spawn another wave of bosses. You did set them up, either you spawn them once and don't get that issue, or you spawn periodically somehow, in which case you want some check before spawning. And for the victory thing, there are various possibilities. You could count the dying bosses in a variable and end the game if the count is high enough. You could check, if the number of living bosses on the map is > 0. You could flag the players as victorious using a boolean and check those after each boss kill. Whatever you like.
Ill take a stab at it,
try turning off the spawn trigger. u can do it via action.
yeah id go with turning the trigger off, if its a separate trigger from the rest of the waves just do "turn (current trigger) off", if its part of the same trigger that controls other waves just have a new trigger. the event could be anything like Boss enters region then just turn off the boss spawn trigger
for the end game trigger id just have either number of living units (boss) in region or count of units in region = 0 condition, the region being all the playable area besides where they end up
or u can turn the trigger on that turns the trigger off that turns the trigger on.... that would be awsome
@SoulTaker916: Go
you mean put a thread in a thread so you can trigger while you trigger. =)
In all fairness Kueken is right; it all depends on how it was actually done as i doubt the triggering was done complete smoothly. In an ideal system all you would need a simple loop with some waits, switchs, returns inside to handle the waves and then the boss after the loop has run that just ends the game once there is one less boss.