Hello guys, I’m trying to create a "steal something" game. While looking for ideas and stuff, I found this JSON from the "steal a fish" game. I was wondering if someone could help me figure out how the "drop" value is used to spawn fishes. I guess the higher the value, the rarer the fish, but I can't understand how to use there values in a lua script. (Of course I don't want to use his value I want to create my own game)
#Need help understanding how to manage drop probabilities
1 messages · Page 1 of 1 (latest)
I suppose it depends on how the randomization script works.
For example, the higher the value compared to another, the higher the chances of getting it (e.g. fish 1: 400, fish 2: 800, so you have twice the chance of getting fish 2 than fish 1).
** You are now Level 1! **
Yeah I agree with you but I don't have any idea how to implement this in a lua script
I already made a script like that a long time ago, but I don't remember exactly how it worked. I'll see if I can do something if I have the time.
What exactly do you want to do? Is it just for practice or for a specific project?
It’s for a specific projet. I want to make a steal game. But I am really bad with math and probabilities
sry I forgot about your thing did you find a solution or still need help?
and I found back the script I've made which worked like that
No problem, I made my custom system. Thank you