Need help with Count Command - Mod Only and User Command

I want to add a command for streamer that adds a count each time he jumps from a high place in-game and breaks his legs. I looked here in the forum to see if i can find a good solution, but no luck so far.

I have this, but not sure if it’s right.

!addcom !legs $(channel) has broken his legs 0 times.
!addcom !addleg -ul=mod -a=!editcom !legs $(channel) has broken his legs $(count) times.

I also want to add a command that regular users can run to see how many times he has broken his leg. Not sure if the first line i have is the one that users can run and the 2nd one is the one i’d run as a mod to add a count to the times he has broken his legs.

Any help is appreciated.

That’s correct, with the first command they would have the public command so anyone can check the counter, and with the second, the command to add +1 to the main command.

Hi Thanks for the response. I tried it but it’s not adding the +1.

this is the 2nd command I put in

!addcom !addleg -ul=mod -a=!editcom !legs $(channel) has broken his legs $(count) times.

I then run !addleg, and when i run !legs it’s output is still at “zero”

Figured it out! not sure what was wrong but it worked. thanks again!