Author Topic: I need an automatic winner event - could someone make it?  (Read 903 times)

I need a event that I can use to trigger other events n stuff to make a player a sinner.

Basically it could detect when there is only 1 player left within the zone brick, and work like this;
[on1PlayerLeft] > etc etc
It would need to be compatible with named bricks and minigame events too.

Thanks.

if you want to get creative with events, it should be possible already
just with a bit of work

you could try having a zone brick with onenterzone count on some print bricks, and onleavezone decrement the print bricks
then when it detects there's only 1 player left based off of the onleavezone, you can do your stuff, and if you need an input for the player you can get another zone to be created and destroyed and have the onenterzone on that brick for only the winner

Do you use slayer for your minigame  ?

if you want to get creative with events, it should be possible already
just with a bit of work

you could try having a zone brick with onenterzone count on some print bricks, and onleavezone decrement the print bricks
then when it detects there's only 1 player left based off of the onleavezone, you can do your stuff, and if you need an input for the player you can get another zone to be created and destroyed and have the onenterzone on that brick for only the winner
I've tried with events and it is possible but it's kinda glitchy. I don't recall what the exact issue was, but the only solution was to add an admin reset command for it which only required more admins moderating the games, not less.

Do you use slayer for your minigame  ?
Yes.

hmm
onleavezone might not work correctly if somebody leaves by disconnecting
if you can get a stable loop running, you could check how many people are in the zone every so often by setting the counter to 1, then decrementing each time a player enters the zone when you flash it (create and destroy it quickly), if it printcountunderflows, don't do anything, but if it doesn't, then there should only be one player left