#how do you make a value affect a chance without being the chance

1 messages · Page 1 of 1 (latest)

winged mortar
#

basically, I'm trying to make something that adjusts its chances depending on the values of 3 variables, with it increasing 1 and decreasing the rest if one of the variables increases
but cause the values are supposed to NOT just be the chances, I can't just make it be x% chance for; y% chance for; etc

#

wait I forgot to add tags

#

it's for 4x builda

covert willow
#

Let me explain

#

The formula on the right is the percentage that will be shown

#

n is the number you put in
x is the number that if put in it gives 100%
y is the number that if you put in it gives you 0%

#

Basically you choose x and y

#

And n is just a parameter

#

Better version (does the same thing)

winged mortar
#

there's 5 inputs
I might as well say it
I'm trying to make a bot for rock paper scissors that adapts based on your moves
there's 5 factors that it's meant to take into account:

  1. how many times have you played rock
  2. the above but for paper
  3. ditto but for scissors
  4. what was your last move
  5. what was your move before that
#

thanks for attempting to help though