WaveSync help · Actions and rules

Which gift rule runs when a viewer sends a gift

WaveSync runs one gift rule per gift: a matching named gift first, then the highest value level reached, then Any gift. Here is how to set each up.

Published November 2, 20264 minute readBy WaveSync Staff
In this guide

When a viewer sends a gift, WaveSync runs one gift rule, not every rule that could apply. It picks a rule for that exact gift if you have one. If not, it picks the highest value level the gift reaches. If neither applies, it uses your Any gift rule. This keeps one gift from setting off a stack of reactions.

The order WaveSync checks

OrderRule typeIn the gift pickerRuns when
1A named giftChoose the gift from the listThe viewer sent that exact gift
2A value levelGift total is at leastThe gift's total value reaches the level. Only the highest matching level plays
3Any giftAny giftNo more specific rule matched

Only enabled rules are considered. If two rules of the same type both match, for example two rules for the same named gift, only one of them runs, so keep one rule per gift or level.

How gift value is worked out

For a value level, WaveSync takes the gift's coin value from the gift catalog and multiplies it by the number of gifts sent together, counting at least one. A rule set to Gift total is at least 100 runs when that total is 100 or more.

If WaveSync cannot find the gift in its catalog, its value counts as zero for value levels. An Any gift rule still catches it.

Three examples

Say you have a rule for one named gift, value levels at 10 and 100, and an Any gift rule.

The viewer sendsRule that runsWhy
The named giftThe named gift ruleAn exact match always comes first
A gift worth 30 coins, sent 5 times togetherThe 100 levelIts total is 150, and 100 is the highest level reached
A gift WaveSync cannot find in its catalogAny giftIts value counts as zero, so no level matches

Set up a gift rule

  1. Open Actions.
  2. Choose Create Action and pick the Gift trigger.
  3. In the gift picker, choose a specific gift, set Gift total is at least with a minimum coin value, or choose Any gift.
  4. Add what should happen, such as a sound, a thank-you or a spoken line.
  5. Choose Try action to see and hear the result.

Neither Try action nor the stream test shows which rule a real gift will choose, so set your rules up using the order above.

Text you can insert

WriteOn a gift action it shows
{user} or {username}The viewer's username
{gift}The gift's name, or the word gift if WaveSync does not know the gift
{amount}How many of the gift were sent together, at least 1. It is not the coin value
{message}Nothing. Gifts carry no message, so leave it out of gift actions

For example, {username} sent {amount} {gift} reads as mira sent 3 Rose. Check any text with Try action before you go live, so you hear exactly what will be read out.

Other triggers work differently

Only gifts use this one-rule order. For comments, follows, likes and other triggers, every enabled rule that matches can run, so two rules for the same chat command will both fire.

Sources

How this page was checked

This page describes WaveSync as documented on the update date above.

Ready when you are

Open WaveSync and test it

Make the change, then send a test event and check it in your streaming app before you go live.

Open WaveSync →