I’m making a loot box mechanic where there is 10 solutions. It goes all the way to 10. So I started to build my piece and it has alot of memory. Each solution contains 5 triggers and 2 popups. And the pop-up has block code in it.
Is there a way I can save memory?
You could do something like this:
set Number Possibility to random integer from 1 to 5
If Number Possibility <= 5
do Broadcast Message On Channel “Time_Container2for Container 1”
For the second code you showed.
1 Like
First of all, good guide.
Next, In step 2 you had code like this
[Screenshot 2025-07-01 8.35.57 AM]
You could have just used concatenation, in which you could simplify the code. This is probably not very smart on my part because I’m just going to type it out.
[Screenshot 2025-07-01 at 1.37.38 PM]
Here is an image
The thing is, you don’t need to make 3 different if statements, using that thing I mentioned called concatenation, you could just randomize your abilities, and just concatenate t…
This post by Toothless shows you how to condense this code into something more manageable.
Try this for this:
HelloSmartie:
Broadcast Message On Channel: Create Text With: "ContainerBox"
random integer from 1 to 10
And for this:
HelloSmartie:
Broadcast Message On Channel: Create Text With: "Time_Container"
Random Integer From 1 to 5
"For Container 1"
Bro @Gaming-Phoenix how r u so fast
1 Like
system
Closed
December 9, 2025, 5:20pm
5
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.