In my game I want a kid running around the town saying random things to you when you speak to him.
It seemed pretty straight forward, but of course it wasn't!
I just made an normal NPC event and when you select him, the event generates a variable randomly between, say 1 and 5.
then there are 5 conditional branches. when variable =1 then he says one thing, if its 2, then he says something else etc.
So each time you click on him he says one of the 5 things at random, because the variable generates a different number each time.
BUT, what actually happens is the random number just generates the number of lines shown in the text box! So if its 5, ALL chat boxes from that
point onwards are 1 line bigger, and if a character says something else after, the game puts the first line of that text into the 5th line!
I thought it was a bug so i went back and found that only when i talk to the child does this happen.
I really don't understand why the random variable is changing the number of lines in the text boxes. There's no reason why it should do that.
So to get round it, i tried to make 5 tabs within the event, one for each random number, but you can only set conditions based on variable being
a specific number OR HIGHER, you can't just put variable = 3 for example. This is really annoying.
Any ideas on why my random variable event is doing this to my text boxes? Or how I can easily make a random conversation event like this.
Thanks!
It seemed pretty straight forward, but of course it wasn't!
I just made an normal NPC event and when you select him, the event generates a variable randomly between, say 1 and 5.
then there are 5 conditional branches. when variable =1 then he says one thing, if its 2, then he says something else etc.
So each time you click on him he says one of the 5 things at random, because the variable generates a different number each time.
BUT, what actually happens is the random number just generates the number of lines shown in the text box! So if its 5, ALL chat boxes from that
point onwards are 1 line bigger, and if a character says something else after, the game puts the first line of that text into the 5th line!
I thought it was a bug so i went back and found that only when i talk to the child does this happen.
I really don't understand why the random variable is changing the number of lines in the text boxes. There's no reason why it should do that.
So to get round it, i tried to make 5 tabs within the event, one for each random number, but you can only set conditions based on variable being
a specific number OR HIGHER, you can't just put variable = 3 for example. This is really annoying.
Any ideas on why my random variable event is doing this to my text boxes? Or how I can easily make a random conversation event like this.
Thanks!