published on April 14, 2025   |   Category: StreamElementsTutorials

[ratings]

In this tutorial you will learn how to do a “wins” counter, complete with a “set” command and “reset” command!

We’re going to navigate to Chatbot > Commands > Custom Commands and click Add New Command.

We’re going to name the command “wins“, set the User Level to Moderator so not just any one can use our command, and use the following Response:

I currently have ${getcount wins} wins!

Now we need a command to add a win to the “wins” counter, so it will look something like this and will increase the number by 1. Add New Command, name the command “addwin“, set the User Level to Moderator, and Response type to:

I now have ${count wins} wins!

Type “!addwin” in your chat to set this to 1 and also create the “wins” counter. You can customize these commands to do what ever you please: win counter, death counter, etc. The word “wins” after “getcount” and “count” will be what ever you want your counter name to be, just make sure they match so they are talking to the same one.

Do you have numerous wins and would like the counter to start there?
You can set the counter to any number using the following command. Name the command “setwins“, User Level to Moderator, and the Response type below.

Wins now set to: ${count wins ${1}}

Type “!setwins 15” in your chat (15 being how many wins you actually have) and the counter will be set.

Are you wanting to reset this to 0 each stream?
You can reset the counter to 0 (zero) at any time by creating a reset command. Add New Command, name the command “resetwins“, User Level to Moderator, and Response type to:

Wins have been reset to ${count wins 0}

You can customize these commands to any thing you would like, keeping in mind the name of the counter inside the variable so everything is communicating with the same one!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment