Predictions Overlay from Commands

Description

Create and Show Predictions on screen from commands.

Be aware that Prediction’s overlay can be sent only one at a time. the gif above is just to show you it takes all cases.

Prerequisite obs plugins :

source copy to import scenes in obs
move
obs shaderfilter

Import Code

IMPORT CODE Streamer.bot Prediction Overlay.sb (60.1 KB)

Assets

assets.zip (128.7 KB)

Contains :
source copy file (1) ( 3 scenes )
images files (10)
font file (1)

Installation

1- To get this extension, you need to import the code to streamer.bot by clicking the Import Button and drag and drop the file downloaded to the string field.

2- Download the assets, it’s a zip file containing source copy files (.json), images and a font file.
unzip it in the desired location.
Make sure the source copy obs’s plugin is installed. You should see it under Tool tab in obs.
Import the 2 files : source copy - PREDICTION OVERLAY -.json then source copy - PREDICTION TIMER -.json
Now you will have to link images to their sources, use check for missing files in Scene Collection tab in obs , and select the folder where you unzipped the zip file.
Optional : you can add the Font _Digital Dismay .otf file to your operating system, so the time will display it like a numeric calculator digits for the Timer.

Configuration

  • Set websocket connection & default prediction’s duration in the action Creating_Prediction
    image

  • Optionnal Overlay Behaviour :- By Default the prediction will stay in place but this can be modified by enabling 2 subactions in 2 actions in I Creating _Prediction & IV Resolved_Prediction:

Overlay Behaviour enabled :
As shown below, the Prediction will be displayed on screen until the countdown timer get finished,
waiting for a resolve action to be triggered ( from commands or any other trigger to the dedicated action directly )

Available Commands

commands Note that all commands are disabled after importation, don’t forget to enabled them
!prediction main command for prediction’s creation ( see informations above to understand the formatting )

Formatting a prediction from chat :

  • the command : !prediction
  • the question ( 45 chars limit )
  • a separator : |
  • choice ( 25 chars limit ) ( min 2 choices max 10 choices , with a | separator char between them )

e.g. : !prediction Prediction → Question 2 Choices Template | choice 1 | choice 2

optionnal parameter

You can use a custom duration with the extra parameter at the end of the command line,
its separator is : #

  • option separator : #
  • time in seconds

e.g. : !prediction Prediction → Question 2 Choices Template | choice 1 | choice 2 # 120

The extension comes with 9 preformated commands ( so you can edit them easily )

presets Launch preformated commands sent by your bot account
!predi02 !prediction Prediction → Question 2 Choices Template | choice 1 | choice 2
!predi03 !prediction Prediction → Question 3 Choices Template | choice 1 | choice 2 | choice 3
!predi04 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4
!predi05 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5
!predi06 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5 | choice 6
!predi07 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5 | choice 6 | choice 7
!predi08 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5 | choice 6 | choice 7 | choice 8
!predi09 !prediction Prediction → Question 9 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5 | choice 6 | choice 7 | choice 8 | choice 9
!predi10 !prediction Prediction → Question 10 Choices Template | choice 1 | choice 2 | choice 3 | choice 4 | choice 5 | choice 6 | choice 7 | choice 8 | choice 9 | choice 10
Resolving Resolve the current prediction
!prediWin # Replace # with the number of the prediction you select as the wining answer
Aborting Cancel the current prediction
!prediAbort Replace # with the number of the prediction you select as the wining answer