Percentage help!

hi so I was wondering how to do something, like, I'll try to explain it best of my ability. so I wanted to know how to make it where you could make 2 choices,and have a 50% chance of doing something other then the real out come,

example

1st outcome (the one you want) : you live

2nd outcome: 50% chance of death 50% chance of living

does anyone have any tips? thanks for reading btw
Under the 2nd choice, pick a random number and store it in a variable. Have the number be from 1 - 100. You can do this using the control variables command.

Then, do a conditional check on your variable. If the random number is less than or equal to x (where x is your percentage), do outcome 1. Else, do outcome 2.
oh my god I loves you

Original thread: https://forums.rpgmakerweb.com/threads/percentage-help.50040/