Simple game script (calculating chance to win)

Hi,

I am wondering how I could define a winner between 2 players.

Player 1 have 90% chance to win while Player 2 have 75% chance to win.

I need some help to define a way to define the winner.

Thank you

not sure what you mean :confused2:

do you want to build a game where player 1 has a 90% chance of winning and player 2 has a 75% chance of winning?

if so, then the easiest type of game I can think of is a numbers guessing game.

Thank for your quick reply.

Yes, imagine a hockey faceoff situation. Player 1 has 90% chace to win the faceoff in front a Player 2 that has 75% chance to win … how to make a script that can output a winner?

Any link, sample script or tutorial?

ok, but first I had to google “hockey face off” to see what you were talking about :lol:

now that I know :slight_smile: then the %'s don’t make sense to me because on each face off one of the 2 players will win and so the 2 %'s should add up to 100%.

eg…out of 100 face offs one player can’t win 90 times and the other win 75 times.