Dear NightDev’s,

I’m making a deathcounter for a fellow streamer on

I got a part of it done:
!commands add !deathcount Player has died 0 times.
!commands add !death+ -ul=moderator -a=!commands edit !deathcount Player has died $(count) times.

But now I want to get a !death- , but how do I manage that to happen?



There are different ways to do this, but there is no $(count) downwards, so we have to a bit creative.

So $(count) counts the amount of times the command has been used, so it’s counting !deaths+.

You can reset the counter to 0 with:
!commands add !resetdeath -ul=moderator -a=!commands edit !death+ \-c=0

Or you can change that command to:
!commands add !setdeath -ul=moderator -a=!commands edit !death+ \-c=$(1)

Now you can change the counter:
!setdeath 50
Remember you are changing the !death+ count, so you would have to call !death+ after to make the count change.

!deathcount = 'Player has died 10 times.'
!setdeath 50
!deathcount = 'Player has died 10 times.'
!deathcount = 'Player has died 51 times.'

Maybe an easier solution is using this:
!commands add !deathcount x
!commands add !setdeath -ul=moderator -a=!commands edit !deathcount Player has died $(query) times.

The downside is !death+ won’t work anymore, so you will need to change the up counter manually with !setdeaths:
!deathcount = 'Player has died 5 times.'
!setdeath 10
!deathcount = 'Player has died 10 times.'

Good luck!

1 Like

Thanks, I’m gonna try this!

For which game you will use this

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