Need help to setup a fight

Report any bugs here or ask questions here!

Need help to setup a fight

Postby Stamtish » 28 December 2019, 19:13

So in my map, there is an arena type battle. wave based. I want each wave to trigger after the current enemies in that arena die. I have setup all the triggers and stuff but, how do i make it when certain actors die, 1 single trigger gets activated?


this is the situation :

3 cs actors are the first wave. after those 3 die, a trigger will spawn in the second wave. when that wave dies, the forth wave happens, and so on.
Keep your Friends close, But Keep your Enemies closer... -Blade
User avatar
Stamtish
Cyber Grub [25]
 
Posts: 41
Joined: 21 December 2019, 13:59
Location: Hell

Re: Need help to setup a fight

Postby yizhe » 29 December 2019, 15:20

Use ‘Trigger on death’
Meep!
User avatar
yizhe
Android T-01187 [200]
 
Posts: 224
Joined: 5 February 2014, 09:26
Location: Advance level editor

Re: Need help to setup a fight

Postby jeje52 » 29 December 2019, 16:31

Make a region over the entire arena. Set a variable to the number of characters alive in that region, and when there's only 1 alive (the player), you run the next set of triggers that spawn the enemies.

Another solution would be to count how many enemies die each wave and do stuff accordingly, but it would take more work to get it working.
User avatar
jeje52
Civil Security Lite [100]
 
Posts: 148
Joined: 13 April 2018, 19:52

Re: Need help to setup a fight

Postby Stamtish » 29 December 2019, 17:53

jeje52 wrote:Make a region over the entire arena. Set a variable to the number of characters alive in that region, and when there's only 1 alive (the player), you run the next set of triggers that spawn the enemies.

Another solution would be to count how many enemies die each wave and do stuff accordingly, but it would take more work to get it working.


Ah thanks, I don't really want to mess with variables but they are very reliable.
Keep your Friends close, But Keep your Enemies closer... -Blade
User avatar
Stamtish
Cyber Grub [25]
 
Posts: 41
Joined: 21 December 2019, 13:59
Location: Hell

Re: Need help to setup a fight

Postby Stamtish » 29 December 2019, 18:42

jeje52 wrote:Make a region over the entire arena. Set a variable to the number of characters alive in that region, and when there's only 1 alive (the player), you run the next set of triggers that spawn the enemies.

Another solution would be to count how many enemies die each wave and do stuff accordingly, but it would take more work to get it working.



Can you make it a map? I can't make it work.
Keep your Friends close, But Keep your Enemies closer... -Blade
User avatar
Stamtish
Cyber Grub [25]
 
Posts: 41
Joined: 21 December 2019, 13:59
Location: Hell

Re: Need help to setup a fight

Postby jeje52 » 30 December 2019, 10:52

I made an open-source map for it. I've explained what the triggers do in the map source and the map uses only 2 variables for the alive character count and the current wave.

Link: https://www.plazmaburst2.com/?s=9&a=&m= ... &id=965452
User avatar
jeje52
Civil Security Lite [100]
 
Posts: 148
Joined: 13 April 2018, 19:52

Re: Need help to setup a fight

Postby Stamtish » 30 December 2019, 11:36

jeje52 wrote:I made an open-source map for it. I've explained what the triggers do in the map source and the map uses only 2 variables for the alive character count and the current wave.

Link: https://www.plazmaburst2.com/?s=9&a=&m= ... &id=965452


Thanks man.
Keep your Friends close, But Keep your Enemies closer... -Blade
User avatar
Stamtish
Cyber Grub [25]
 
Posts: 41
Joined: 21 December 2019, 13:59
Location: Hell


Return to Bug Reporting, Help & Support

Who is online

Users browsing this forum: No registered users



cron