Sorry if my title is not precise; I wasn't sure how else to word this.
I have a treasure chest (in the game, not in real life lol)
Inside the treasure chest there is the possibility of there being one of four different items (Item A, Item B, Item C, Item D).
I have a Variable (VAR 1) that rolls a random number between 1 an 4 (one for Item A, B, C, D).
I then created a Conditional Branch that checks VAR 1 and then awards the player with the matching item. For example, if VAR 1 = 2, award Item B.
Super simple, and so far so good. I'm sure this is how we all do this sort of thing.
However, what I want to do is make it more (or even less) likely for the player to get (for example) Item B.
So I adjusted my variable (VAR 1) to roll between 1-6.
I then adjusted my Conditional Branch to check for all 6 numbers and then if VAR 1 = 2, 3, or 4, Item B is awarded. In effect I just made it more likely for the RNG to land on a number that awards Item B.
But this is not very efficient for what I'm trying to do.
I want to be able to adjust the frequency of finding certain items up and down at will. For example, let's say I want to create a piece of gear that give a 10% increased chance of finding Item C and a 10% decreased chance of finding D (for example - these are all just basic examples, I'm not looking to adjust everyting in only increments of 10%, just only for this example).
As I'm doing it now, there's no good way to account for every possibility and then write out all those conditionals.
So what I'm asking help with is for a more efficient / elegant way to do this?
Sorry if this is a super obvious thing to solve, my brain just can't seem to figure this out lol.
Thanks, everyone!
I have a treasure chest (in the game, not in real life lol)
Inside the treasure chest there is the possibility of there being one of four different items (Item A, Item B, Item C, Item D).
I have a Variable (VAR 1) that rolls a random number between 1 an 4 (one for Item A, B, C, D).
I then created a Conditional Branch that checks VAR 1 and then awards the player with the matching item. For example, if VAR 1 = 2, award Item B.
Super simple, and so far so good. I'm sure this is how we all do this sort of thing.
However, what I want to do is make it more (or even less) likely for the player to get (for example) Item B.
So I adjusted my variable (VAR 1) to roll between 1-6.
I then adjusted my Conditional Branch to check for all 6 numbers and then if VAR 1 = 2, 3, or 4, Item B is awarded. In effect I just made it more likely for the RNG to land on a number that awards Item B.
But this is not very efficient for what I'm trying to do.
I want to be able to adjust the frequency of finding certain items up and down at will. For example, let's say I want to create a piece of gear that give a 10% increased chance of finding Item C and a 10% decreased chance of finding D (for example - these are all just basic examples, I'm not looking to adjust everyting in only increments of 10%, just only for this example).
As I'm doing it now, there's no good way to account for every possibility and then write out all those conditionals.
So what I'm asking help with is for a more efficient / elegant way to do this?
Sorry if this is a super obvious thing to solve, my brain just can't seem to figure this out lol.
Thanks, everyone!