Discuss Scratch

HiveMiter
Scratcher
4 posts

Rarity System

So basically i'm making a game involving items with rarities. and i'm trying to make a percent/chance to get an item. ive been through countless of discusions on how to make a rarity system. and ive implemented more than 7 systems that never worked. help?
bbmonkey100
Scratcher
100+ posts

Rarity System

HiveMiter wrote:

So basically i'm making a game involving items with rarities. and i'm trying to make a percent/chance to get an item. ive been through countless of discusions on how to make a rarity system. and ive implemented more than 7 systems that never worked. help?
I made one but am currenting using it for my WIP game and its a little complex but still so here is an example project link: (its testing project) https://scratch.mit.edu/projects/811245696/ it also includes a pack system so if u want a opening pack for specifically swords then u add a sword pack name if u agree to use it I can give u a tour on how to use it

Last edited by bbmonkey100 (Aug. 24, 2023 01:38:01)

HiveMiter
Scratcher
4 posts

Rarity System

Yes please
coooolboy55
Scratcher
64 posts

Rarity System

if you want n% chance to get something, as long as all n add up to 100 and all rarities are put in a list then you can do
whenIreceiveroll a raritysetrtopickrandom0to100.setcounterto0settotalto0repeatuntiltotal<rorcounter=lengthofraritieschangecounterby1changetotalbyitemcounterofrarities
and counter after this will be the n thing you get after rolling a rarity

Last edited by coooolboy55 (Aug. 24, 2023 02:12:25)

Spentiline
Scratcher
100+ posts

Rarity System

I wrote a wiki article to do that already:

Probability Wheel
coooolboy55
Scratcher
64 posts

Rarity System

bbmonkey100 wrote:

HiveMiter wrote:

So basically i'm making a game involving items with rarities. and i'm trying to make a percent/chance to get an item. ive been through countless of discusions on how to make a rarity system. and ive implemented more than 7 systems that never worked. help?
I made one but am currenting using it for my WIP game and its a little complex but still so here is an example project link: (its testing project) https://scratch.mit.edu/projects/811245696/ it also includes a pack system so if u want a opening pack for specifically swords then u add a sword pack name if u agree to use it I can give u a tour on how to use it
the code is pretty long, you can make a more adjustable one for less code
bbmonkey100
Scratcher
100+ posts

Rarity System

coooolboy55 wrote:

bbmonkey100 wrote:

HiveMiter wrote:

So basically i'm making a game involving items with rarities. and i'm trying to make a percent/chance to get an item. ive been through countless of discusions on how to make a rarity system. and ive implemented more than 7 systems that never worked. help?
I made one but am currenting using it for my WIP game and its a little complex but still so here is an example project link: (its testing project) https://scratch.mit.edu/projects/811245696/ it also includes a pack system so if u want a opening pack for specifically swords then u add a sword pack name if u agree to use it I can give u a tour on how to use it
the code is pretty long, you can make a more adjustable one for less code
I prefer my lines long and with more Vars to make it more flexible.
bbmonkey100
Scratcher
100+ posts

Rarity System

Spentiline wrote:

I wrote a wiki article to do that already:

Probability Wheel
great design it has that hard complex looks to it but in the same time very readable

Powered by DjangoBB