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 - Kivrin

#1
Ah, I see now - the functions in the room script run to their own completion, so any loops that depend on calling other scripts should be moved to repeatedly_execute.

Thank you very much!
#2
I'm trying to make a conversation that cycles through a number of problems automatically until they're all solved.  I had it set up in a while loop in the room script like this:

while(!all_solved) {
    if(!p1_solved)
        dialog[1].Start();  (p1_solved set during the dialog)
    if(!p2_solved)
        dialog[2].Start();
  ...
    all_solved = p1_solved && p2_solved && ...
}

This is what gave me the "post-script queue full" error.  I've been trying to figure out how to move the dialog calls to the dialog_request function - I tried to make a parent dialog which would call the child dialogs through run-script x and just calling dialog[ x ].start() within the dialog_request, but when I end a child dialog the parent ends too.  Is there a way to call a specific topic within the dialog_request function?  I might be able to condense everything into one dialog structure and just switch between topics.
#3
I'm trying to script a dialog puzzle that has running loops based on conditionals.  Since there doesn't seem to be a way to test a conditional within a conversation, I thought it would be better to break it up into separate parts and call them from the room script, so that certain parts would repeat until a certain line was selected.  However, when I try to run a dialog part from within a while loop, it exits with the error "RunDialog: Cannot queue action, post-script queue full" without showing any of the dialog text.

I thought maybe the dialog was non-blocking and attempting to run itself over and over again, but reading through the forum it looks like it is, plus adding a wait(1) loop caused it to run indefinitely.  Is this something I can fix, or should I redesign the whole setup?

Thanks
SMF spam blocked by CleanTalk