Use 2 count with one function

Asked Jun 17, 2020·2 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi is there a way to use 2 counter in the same function?
i'm trying to do a death counter which counts for each !death in chat by using
$(count) death
but it should also display how many deaths are left til it will trigger an event.
therefore i tried
$(count) deaths, $(eval a=1000-$(count);${a} deaths til event will start)

The problem is that this will count up 2 per !death. Is there any Solution how this can work?

2 replies

Hiya, you could wrap the whole sentence inside the $(eval) like this:

$(eval count='$(count)'; left=1000-count; `${count} deaths, ${left} deaths til event will start`)