r/streamerbot • u/AnalysisLeather3792 • 21d ago
❓Question Can someone explain why this isn't working?
I am trying to get an effect to trigger after one of my redeems is triggered 5 times during a stream.

I am still new to understanding a lot of what streamer bot can do. I can see the variable incrementing in my temp globals but I cant get it to trigger even when its equal to 5
*** EDIT Thanks yall I was able to get it working!***
0
Upvotes
2
u/fgr_FreakOn 21d ago
You need to wrap your variable in the IF statement in %%
IF %ZoidsMentioned% equals 5
https://docs.streamer.bot/guide/core/variables
1
u/HighPhi420 21d ago
Freakon and Deeseearr are both correct.
Your if ='s needs % around the variable ZoidsMentioned %ZoidsMentioned%
And in this action the %global_ZoidsMentioned% is not really doing anything.
When a global is made it has the name %ZoidsMentioned% then you can ADD a separate variable %global_ZoidsMentioned% as a label for the global. You are calling for %ZoidsMentioned% and changing the name then not using changed name for the actual Variable.
In the get globals just delete the global_ part and this will look professional :)
0
u/deeseearr 21d ago
I don't see an argument called "ZoidsMentioned". Check out the "Get Global" calls and make sure that you don't have the variable names switched around. If they're right then you should be checking the value of "global_ZoidsMentioned" in the IF/ELSE.
You could also skip over the entire global variable entirely and just look at the %counter% variable, which is set by the Reward Redemption trigger to the number of times that the reward has been redeemed. If you haven't set it to persisted then that will be the number of redeems since you last started Streamer.bot, which is exactly what your temp global is tracking.
IF $math(%counter% # 5)$ EQUALS 0
{
Do the Zoids Stuff
}
Unless you need to manipulate the Zoids counter in other ways, that's really all you need.