Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Questor

#1
Hi, I have this problem which might be simple, but unfortunately I can't come up with any solution.
I have a room script. Let's say it looks like this:

Code: ags

dMain.Start();
if (res == 0) {cEgo.ChangeRoom(1);}
else if (res == 1) {cEgo.ChangeRoom(2);}
else {cEgo.ChangeRoom(3);}


dMain starts a branching dialog, where the end options set the value of the global variable res. When I run it, the dialog is being "ignored" and res still holds its default value.
I've tried to use the solution provided in this topic, but it didn't work.
SMF spam blocked by CleanTalk