Use 2 count with one function

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?

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`)
2 Likes

Thank you for your help!!! :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.