controlled variables influencing controlled branches (also npc help needed in general?)

I need assistance with a feature for npcs im trying to set, Im trying to set up a system where after the player interacts with a blank npc, a controlled variable will be set to select a npc role from a range of numbers set to select one of the numbers by random, then depending on the number rolled, a controlled branch, in theory, will be triggered to play to tell the player which one they got, but the issue ive ran into is that it simply won't show the text within each conditional branch no matter what. Nor does the controlled variable seem to want roll any number but the only one it's been rolling this whole time.

And besides that ive been struggling on how to make these npcs act like a proper dynamic npc in general that can hold their own info seperate from the player, im not sure if it's possible but still.
if it didn't work for you, then you made a mistake in the event - done correctly it will work.

However we can't tell you what you did wrong without seeing what you did.
so please post screenshots of the entire event.
if it didn't work for you, then you made a mistake in the event - done correctly it will work.

However we can't tell you what you did wrong without seeing what you did.
so please post screenshots of the entire event.
Alright! I Attached them below!
2 mistakes:

random variable 9...16 is NEVER assigned to your condition.
so that variable does nothing.

the other mistake are the pages, does they have a condition or none?
if none, it start at the highest page number (in your case 9) if no condition).

so what do you want achieve with the different npc names or variable name?
2 mistakes:

random variable 9...16 is NEVER assigned to your condition.
so that variable does nothing.

the other mistake are the pages, does they have a condition or none?
if none, it start at the highest page number (in your case 9) if no condition).

so what do you want achieve with the different npc names or variable name?
well that's the thing, im choosing between multiple variables, not just one, and yeah they do have conditions, they even work, well, again in theory cause the conditional variable always lands on the last variable, the reason im using multiple variables is because i personally had no clue how to make npcs that can be completely randomized [besides sprite] and was trying to set up a npc event where the player finds a blank npc, "looks" at them and then the npc would fall into one of many roles i have set for my game that would define them as a character, how they act, how they interact with the world. i thought the best way from what i understand would be to use variables!
It looks to me like you are setting a random variable from ID 9-16 to a random number between 9-16. Your conditional branches are looking for them to equal 1. If you change your control variable to "constant: 1" does that work? As is your variables will never equal 1.

Also you could just roll a single variable, and assign each result a branch or does it need to be different variables for later use? Personally I would roll the variable 1-8, and just check the single variable.
It looks to me like you are setting a random variable from ID 9-16 to a random number between 9-16. Your conditional branches are looking for them to equal 1. If you change your control variable to "constant: 1" does that work? As is your variables will never equal 1.

Also you could just roll a single variable, and assign each result a branch or does it need to be different variables for later use? Personally I would roll the variable 1-8, and just check the single variable.
on your first question, when i do that, all of the branches become activated, yet when the sprite changes, it still shows it's just the last variable, and i really need it to multiple different variables, mainly because that way the game can not only choose different sprites depending on variables, but the npc in question can act within their varible/role when the player speaks to them more and attempts to develop a friendship and all that.
Lol, yupp and now I see why, dunno why I thought that was a random range of variables.
a variable is like a box - you can only check a single box with a conditional branch at a time, and what changes is the content (number) inside the box.
if you need more than one variable, they need to be checked at a later time.

so a correct sequence would be:

control variable random = 9,,16
if random == 9 do whatever
if random == 10 do whatever
if random ==11 do whatever

you CANNOT check everything to 1 like you did, and you can only check ONE variable at a time.

what you probably meant to do is something like

if random == 9
>> [NPC] = Angel Heart
if random == 10
>> [NPC] = The Heart of a true fighter

and so on

I strongly suggest that you go search for tutorials on logic, because what you did in your events never had any logic behind them, that was randomly clicking on commands without understanding what each option did.
to extend on Andars, if you want the [NPC] to increase (if its a variable)

if random = 9
angels heart [NPC] += 1
end

and do so for the rest, this make the NPC variable increase by 1.
but like I said, your random variable does nothing on the logic
what you check against (which should be true).
to extend on Andars, if you want the [NPC] to increase (if its a variable)

if random = 9
angels heart [NPC] += 1
end

and do so for the rest, this make the NPC variable increase by 1.
but like I said, your random variable does nothing on the logic
what you check against (which should be true).
This worked perfectly actually! thank you both!

Original thread: https://forums.rpgmakerweb.com/threads/controlled-variables-influencing-controlled-branches-also-npc-help-needed-in-general.182048/