Points System (Core)

Description

This is a new multi-platform Point System. This system works on all 4 of Streamer.bot’s Platforms.

Due to this you will NEED to be on 0.2.3 or above.

Point Systems allow your viewers to interact in many ways, it is also seen as a replacement to Twitch’s Channel Point system for non affiliates and for those on YouTube, however many user use both!

Import Code

MultiPlatformPointsSystem.sb (19.6 KB)

Installation

Download the .sb File.
In Streamer.bot in select Import from the top left.
Drag and Drop the file into the Import String.

This Import Contains 13 Actions and 9 Commands, note commands are disabled by default

Be sure to check the permissions on the commands are as you want them.

Configuration

[Currency Core] - Timed Action

This action allows you to give people points based on the time they are in your stream, this uses the present viewer Trigger on all Platforms.

The argument %pointsGivenPerTick% is in relation to how often you do your present viewer trigger, in Streamer.bot it can be from 1 to 10 mins, so this value is how much you want each user to get each time that Trigger runs.

[Currency Core] - User Current Points

This is the action the user will use to check how many points they have, you can edit the output message to suit your needs by editing the %message% argument but just note that %pointsArgs% is the amount of points the user has. The C# is written to send the message back to the platform it got the command, if you want it to go all platforms you can disable the code and enable the sub-actions below it.

[Currency Core] - Reset All Points

This Action will delete all users current point records so you can start over if you wish.

[Currency Core] Set and Add

Here you will see a Set and an Add Action for each platform, each platform has its own action because of the way Streamer.bot handles targeted commands on each of these platforms.

Each uses a separate but the same !addPoints or !setPoints command and each is the same way to use it, !addPoints <points> <name> or !setPoints <points> <name>

If you are using these on YouTube you have an additional setting, if someone did !addpoint 500 John Smith and the code discovered that they were 2 John Smiths it can either Add 500 to both of the John Smiths or none of them.

If you want both you need to change the if statement to continue if userFound is greater than 1 if you want it to do nothing leave it as break. You can tell it to run an action if you wish if you choose to break.

[Currency] Sample Redeem

Included in this version is a Sample Redeem action which explains how to create actions that cost points, if you wish to create an action like this you are best of duplicating the sample redeem 1st, Then follow the comments on the action making sure to set the cost in the 2 places are you wish. In the example its 500

You will then need to add your own trigger to it which in most cases will prob be a command.

Contributors

7 Likes

Hey I think the sub-action to get the Global Points for the user in the sample redeem needs to change source from “Global” to “User(redeemer)”

Ill Check it out, Thought i had fixed it but apparently not.