Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » keep or skip mechanic in my new sols rng game
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
i am trying to make a new sols rng game but idk how to make a inventory system or keep or skip mechanic can someone help me
https://scratch.mit.edu/projects/1038160479/
https://scratch.mit.edu/projects/1038160479/
Last edited by Samadx8pro (June 17, 2024 15:23:48)
- Jlerpy
-
Scratcher
1000+ posts
keep or skip mechanic in my new sols rng game
I don't know the original game. How does this work?
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
so sols rng is a roblox game were you gamble to get better auras theres an keep or skip system and its connected to the inventory system and if you click keep it gets saved in your inventory and if you click skip you dont save it
- Jlerpy
-
Scratcher
1000+ posts
keep or skip mechanic in my new sols rng game
So it randomly rolls you a result, then presents it to you for a decision as to whether you keep it or discard it?
Why would you not want to keep it?
And what happens if you do?
Why would you not want to keep it?
And what happens if you do?
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
so answer1 for you first question why would you not keep it bc you prb have a better aura/rarer aura and answer2 for your 2 question and what happens if you do it will get sent to your inventory and prb fill up space and after that if you get a better aura then the one you have you either i think discard it or delete one of your auras and btw you can upgrade space in your inventory and i dont know how to add a 2x times luck and if you ask me in the original game every 10 rolls you get 2x luck to higher your chances getting rare auras
Last edited by Samadx8pro (June 19, 2024 17:37:06)
- Jlerpy
-
Scratcher
1000+ posts
keep or skip mechanic in my new sols rng game
Okay, let's take this one thing at a time:
1. What's an aura? What do they do?
2. How are you handling your inventory? As a list? Or some other method?
3. For luck boosters, my inclination would be to have your random function set a variable, which can then get multiplied by Luck, and THEN you compare that total against a set of probabilities (whether that's a List, or just a nested set of ranges)
3a. For x2 Luck on every 10th roll, you could have one of those things that alters Luck be an IF:
1. What's an aura? What do they do?
2. How are you handling your inventory? As a list? Or some other method?
3. For luck boosters, my inclination would be to have your random function set a variable, which can then get multiplied by Luck, and THEN you compare that total against a set of probabilities (whether that's a List, or just a nested set of ranges)
3a. For x2 Luck on every 10th roll, you could have one of those things that alters Luck be an IF:
if <((Rolls) mod (10)) = [0]> then
set (Number Rolled) to ((Number Rolled) * (2))
end
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
a1 an aura is a thing you can equip the better the aura the rarer it is like this: https://static.wikia.nocookie.net/sol-rng/images/d/de/GargantuaCollection.gif/revision/latest?cb=20240510211022 this is the rarest one rn
a2 another method you can upgrade it to hold more space and there is a potion inventory potions are items you can find in the map and they are luck potion increase luck for an amount of time speed potion decreases roll cooldown heavnly poition another luck potion but better heavnly 2 potion a better heavnly 1 potion the first 2 you can find them and the last 2 you can craft them using the first 2 and i think some auras and there is somthing called guantlets or gloves for short you can craft them using auras they are used to increase luck or rolling speed or both
a3 i am not a smart guy at code/i am a new scratcher but every 10 rolls “btw my roll sprite has prob 11 costumes ranging from roll 0/10 to roll 10/10” you get 2x luck and it is not perm and does not stack and the 2x luck gives you better chances of getting rarer auras
a2 another method you can upgrade it to hold more space and there is a potion inventory potions are items you can find in the map and they are luck potion increase luck for an amount of time speed potion decreases roll cooldown heavnly poition another luck potion but better heavnly 2 potion a better heavnly 1 potion the first 2 you can find them and the last 2 you can craft them using the first 2 and i think some auras and there is somthing called guantlets or gloves for short you can craft them using auras they are used to increase luck or rolling speed or both
a3 i am not a smart guy at code/i am a new scratcher but every 10 rolls “btw my roll sprite has prob 11 costumes ranging from roll 0/10 to roll 10/10” you get 2x luck and it is not perm and does not stack and the 2x luck gives you better chances of getting rarer auras
- eKliqse__
-
Scratcher
33 posts
keep or skip mechanic in my new sols rng game
the keep sprite can have different costumes that look the same for all the auras, and when it rolls something, it switches the costume to the aura's specific costume. You can make a broadcast statement from the keep button to the inventory, for instance, in the keep sprite:
when this sprite clicked
if <(costume #) = [1]> then
broadcast [this aura]
end
if <(costume #) = [2]> then
broadcast [that aura]
end
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
the keep sprite can have different costumes that look the same for all the auras, and when it rolls something, it switches the costume to the aura's specific costume. You can make a broadcast statement from the keep button to the inventory, for instance, in the keep sprite:no the skip and keep sprite/costumes arent in one sprite and the same for the auraswhen this sprite clicked
if <(costume #) = [1]> then
broadcast [this aura]
end
if <(costume #) = [2]> then
broadcast [that aura]
end
- Samadx8pro
-
Scratcher
6 posts
keep or skip mechanic in my new sols rng game
and i think i stoped on working on my project i am working on another project it may be big
- Discussion Forums
- » Help with Scripts
-
» keep or skip mechanic in my new sols rng game



