Having issues with conditional branches and variables

So attached it is checking the slots for personality slots, but when I open the separate event to check if it can read the personality slots it doesn’t read them.

This isn’t the first time I’ve had this issue
It skips over the conditional branch, reading the variable even if the player doesn’t have it.

My game uses a system similar to yours, so perhaps I can help. Have you already defined what the player has selected (see image 2)? You need to assign a value to a variable first, and only then can you check what the player has chosen.

The game needs to know what the player has chosen.

For example, if Tina is selected, set Tina’s variable to 1 (if not specified, it defaults to 0).

Then, use the “Conditional Branch” command to check and display the outcome based on the player’s choice.

I’m wondering if the Introvert and Extrovert in your Control Variables and Conditional Branch are set to Variable instead of Constant. When it’s Constant the event list shows a number, like Personality Slot 1 = 1. Yours shows a name, which makes me think there are variables called Introvert, Extrovert and so on being used as the value.

If those variables never get set to anything, they’d all still be 0. Picking Ender would set Personality Slot 1 to 0, and the check would ask if 0 = 0, which is true every time. That could explain why it goes into the first branch even when the player doesn’t have it. You can check during a test play by picking a character and pressing F9. The debug window shows what Personality Slot 1 and the Introvert/Extrovert variables actually hold.

What I’d probably do is switch both commands to Constant and give each trait a number. Since each slot is its own variable, every slot can use 1 and 2. Something like this in your character select:

◆Comment:1 = Extrovert/Intuition/Feeling/Judging, 2 = Introvert/Sensing/Thinking/Perceiving
◆Show Choices:Ender, Tina, Sans, Create Your Own, Go Back
:When Ender
  ◆Control Variables:#0192 Personality Slot 1 = 2
  ◆Control Variables:#0193 Personality Slot 2 = 1
  ◆Control Variables:#0194 Personality Slot 3 = 1
  ◆Control Variables:#0195 Personality Slot 4 = 1
:When Tina
  ◆Control Variables:#0192 Personality Slot 1 = 1
  ◆Control Variables:#0193 Personality Slot 2 = 1
  ◆Control Variables:#0194 Personality Slot 3 = 1
  ◆Control Variables:#0195 Personality Slot 4 = 1

Then the check event compares against the same numbers:

◆If:Personality Slot 1 = 1
  ◆Text:None, None, Window, Bottom
  :    :This only show if you have \C[5]Extrovert \C[0]in your first slot.
:Else
  ◆If:Personality Slot 1 = 2
    ◆Text:None, None, Window, Bottom
    :    :This only show if you have \C[5]Introvert \C[0]in your first slot.
  :End
:End

If you’d rather keep the names, you could set each of those variables to its own number in a common event that runs once at the start of the game, before any of the checks. Since each slot only has two options, four switches (Extrovert, Intuition, Feeling, Judging, each ON or OFF) might also be simpler.