Help With a random potion mechanic

So i have this thing in my game,and it says “potion time” and this happens every 5 minutes in my game.
So basically, I want to make it so that when you click drink potion, you either get something good or bad. (I want it to be a 50/50% chance)

also the drink potion button is a popup call to action if that changes anything.

Does anyone know how to do this?

Thanks!

Make the call to action emit a channel that a trigger will pick up and make its’ block code into this:


then use the channels to add the effects desired.

uhh the call to action doesnt have blocks

you talkin about this one?

1 Like

No, put the blocks in the trigger.
not the call-to-action.

i also want this mechanic to happen every 5 minutes once the trigger is triggered for the rest of the game

1 Like

how would i do this exactly
i would like some of the bad effects to be lose 100$, or Slow for 1 minute.
and the good effects would be get 100$, or speed buff for 1 minute.
and i would like to announce it on screen to the triggering player that says whether or not they got a good/bad potion,and what effect they got.
(sorry i’m kinda a beginner to block code :sweat_smile:)

1 Like

Have you got the effects finished? if so, then use the channels from the block code to activate the effects.

its alr I was like that too.
(I still kinda am…)

you can also activate this with the channels, too.
Hit two birds with one stone

1 Like

is this what i click?
Screenshot 2025-03-02 4.22.19 PM
and also idk how to program those effects into gkc

Ok, I can help you.
What are you using to track your currency?

a game overlay text on the screen
topright
which shows how much money you have
looks like this:
(i don’t have any money rn :cry:)

1 Like

update:
yeh
been messing around with the block code
and i still have no idea what im doing