Getting started with Variables

FrameNinja provides high flexibility and customization with chains but there is also opportunity to customize them. There are variables which you can use to get info from your stream, generate random numbers, etc. Most of the following examples will contain chat commands for better understanding.

Introduction

Variables are present in all sections of our app - in chains, events and autoruns:

PlusButton

PlusButton

PlusButton

Some events also provide built-in variables (e.g. Nickname and Message in "On Chat Message" event)

Create variable

Chains, events and autoruns editors have "Variables" block. To add variable click on Plus Button

PlusButton

You will see popup where you should enter variable name and select its type

PlusButton

Variable Name is used to insert variable somewhere Variable Type describes what value will variable have Some of variables have additional options. For example, "Random Number" variable has "Min" and "Max" options.

PlusButton

After save you will see variable block with "Copy" button.

PlusButton

You can paste this code in commands options.

PlusButton

PlusButton

Now let's look what variables we can create now

Variables types

String and Multiline String

These variables are present only in Chains section. If chain has variables of these types, you will be asked for their values before chain call. It is useful when you need to customize something - e.g. text message or timer duration

PlusButton

PlusButton

Random Number

This variable is generated each time chain/event/autorun is called Use case example: chat command !goodboy

PlusButton

PlusButton

Result:

PlusButton

Counter Value

Imagine that we have "Greetings" counter which increases on each message with "Hello" message. And we create another chat command - !greetings Example of event with "Greetings" counter:

PlusButton

PlusButton

PlusButton

Result:

PlusButton

Global Variable

For example, you create lobby in some game for your viewers and want to share its name and password You have chain like this:

PlusButton

So you can create chat command which will send lobby name and password, as well:

PlusButton

PlusButton

PlusButton

PlusButton

Result:

PlusButton

Stream Duration

This variable contains your stream duration Random Twitch Chatter and Random Twitch Subscriber These variables will take random users from your Twitch stream. For example, !kiss command to kill random chatter.

PlusButton

PlusButton

PlusButton

Result:

PlusButton

If you create some poll using "Create Poll" function, you can use these variables later to get poll link and question.

My Twitch Nickname

Your nickname on Twitch