Dialogue system that I've made stopped working

Get help using Construct 2

Post » Tue Jan 19, 2016 12:15 am

I've made a dialogue system for my game and it was working pretty well until I messed something up. I've just added "if talk = 3" expression and now it's broke for some reason. I can't find any problem in events, maybe you can help me, please?
Image
B
6
Posts: 20
Reputation: 266

Post » Tue Jan 19, 2016 5:01 pm

This is the classic example of JavaScript asynchronicity.

All of your "global" events (i.e. anything not subsidiary to another event) is executed once per tick. Your variable 'talk' cannot be 1, 2, and 3 at the same time, but that is how you are telling Construct to interpret it presently.

You need to put those events together using the "Else" statement, otherwise you will continue to get those crazy logical errors. If "Else" doesn't work then you need to put some other condition in there to make your conditions adequately unique as to trigger independently of one another.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,365
Reputation: 4,724


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, FabianB, lukezero, RoaringPixels, Yahoo [Bot] and 10 guests