Skip to main content

Chance

Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.

The Chance node introduces controlled randomness into your flows. Every time data arrives at its input, it rolls a random number and compares it against the configured percentage. If the roll falls within that percentage, the data continues down the Pass path; otherwise it goes down the Fail path. The input data itself is not inspected — only the random roll matters.

Use Chance to make events feel less predictable. Instead of firing the same alert every time a viewer follows, you could route 30% of follows to a surprise reaction while the rest get the standard treatment. Pair it with a Cooldown check to ensure you don't accidentally spam rare effects on a very busy stream.

Inputs

NameTypeDescription
inputanyAny input data. Passed through unchanged on whichever output fires.

Outputs

NameTypeDescription
passpass-throughThe input data, forwarded when the random roll succeeds.
failpass-throughThe input data, forwarded when the random roll fails.

Configuration

  • Chance: A percentage from 0 to 100. Set with the slider or by typing a number directly. A value of 75 means the Pass output fires roughly three out of every four times.

Example

Add a Chance node (set to 20%) after a Chat Command trigger for !loot. On the Pass path, award a rare item and send a "You found a legendary sword!" message. On the Fail path, send a "You got nothing but dust." message. Only one in five uses of the command will yield the rare reward.