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.
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?
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.
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).