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

Messages - Questor

#1
I've used Crimson Wizard's solution and it works great. Thank you all for your help :)

Quote from: Khris on Wed 20/07/2016 13:40:12
Questor, since you tried the method suggested by me, how did you add room_RepExec()? Because it has to be linked in the room's events or it won't get called.

I've created the function through Events in room's settings and filled it just as you've instructed in that other topic.
#2
The script I've presented is just a simplified version of the real thing. There are a lot more lines for every outcome and I just don't want to copy&paste all that to every end option. If I'll have to then I will, but I was just wondering if there's a more elegant way to handle this.
As to the solution from the other topic, I've created a boolean global variable, added it at the end of every end option and created a repeatedly execute just as instructed. Nothing has changed.
#3
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