How do I create a chance event?

I want to set up an event that would have 50/50 chance of success for both options. For clarity it is roulette the only options are red and black. I want it so the player can select both and have a chance of success at either one. Is this possible with a variable switch or do I need a plugin?
You can use:
  • Control Variables -> Set -> Random - store a random number, e.g. 1~2.
  • Conditional Branch -> Variable - check the value, e.g. 1 = black, 2 = red.
Example:

◆Control Variables:#0001 Check = Random 1..2 ◆If:Check = 1 ◆Text:None, None, Window, Bottom : :Black! ◆ :Else ◆Text:None, None, Window, Bottom : :Red! ◆ :End
This approach can be used for many different kinds of random check. 👋
Thank you so much! I haven't had a chance to check it out yet but I'll update when I'm home!

UPDATE: I did what you said it works like a charm. But now I've come across another problem. I want 5 rounds of roulette and depending on how many times the MC has won they either move on or die. Is there a way to do that? Like let's say even winning just two times?
You could copy+paste further rounds into the winning branch each time, and track wins with another variable.

Alternatively, and more elegantly, you could use a variable to count which round you're on, and use the Loop and Break Loop commands to repeat until that many rounds have passed, e.g.
Spoiler: event example
◆Control Variables:#0003 Round Num = 1 ◆Control Variables:#0004 Win Count = 0 ◆Loop ◆Comment:Get player input. ◆Text:None, None, Window, Bottom : :Pick a colour! ◆Show Choices:Black, Red (Window, Right, #1, #2) :When Black ◆Control Variables:#0002 Guess = 1 ◆ :When Red ◆Control Variables:#0002 Guess = 2 ◆ :End ◆Control Variables:#0001 Result = Random 1..2 ◆Comment:Check if guess = result. ◆If:Guess = Result ◆Text:None, None, Window, Bottom : :You win! ◆Control Variables:#0004 Win Count += 1 ◆ :Else ◆Text:None, None, Window, Bottom : :You lose! ◆ :End ◆Comment:End after 5 rounds played. ◆If:Round Num ≥ 5 ◆Break Loop ◆ :Else ◆Control Variables:#0003 Round Num += 1 ◆ :End ◆ :Repeat Above ◆Text:None, None, Window, Bottom : :You won \v[4] times!
You can see I've used 4 variables here:
  1. Result (random: black = 1 or red = 2);
  2. Guess (user input: gets compared to Result);
  3. Round Num (counts which round we're on, for ending the loop);
  4. Win Count (counts number of wins, for checking afterwards).
You might want something different, but hopefully the example helps~ 👋

(Label and Jump to Label can be used in a similar way, I just personally prefer loops.)
@caethyril has offered a straightforward and great solution for your specific request.

If you want to explore a bit more in the spirit of learning different things you can do, here is a demo of a high-low dice rolling gambling event that I made. If it interests you, I have a full explanation of how it is built as well.

Conceptually, it is similar to what you are doing at its foundation. Comparing two results and moving forward.

It is much more than what you were originally asking, but it might be something you want to check out to see if there are other things that might be useful in the future for what you want to make.

Good luck and happy game developing!

Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-chance-event.157638/