Page 1 of 1

V2.8 Scripting Conversations question

Posted: July 29th, 2012, 11:29 pm
by Lou
Hi,
I am trying to rewrite my conversation and for some reason cannot get it to work.
Here is what i have:

Code: Select all

// Lou NPC script
include scripts/1

//start conversation
r_script_node "main" [result "[Hi, My name is Bob.]"] [
     r_response "Hey Bob, I'm well." normal //goes to dialogue normal
	 r_response "Goodbye" -1 //closes the dialogue
 ]

//normal path
 r_script_node "normal" [result "[I'm glad to hear it]" ] [ 
   r_response "Goodbye" -1
 ]
When I run this I get the following error: "ERROR: No such dialogue node: 0"
What does this mean?

Re: V2.8 Scripting Conversations question

Posted: July 30th, 2012, 5:35 am
by Hirato
no idea - it looks good to me
maybe something inside script 1?

Re: V2.8 Scripting Conversations question

Posted: July 30th, 2012, 10:49 am
by kddekadenz
The dialogues are ended with " " and not with -1.
I'm not sure if you can write the nodename to link to without "".

Code: Select all

// Lou NPC script
    include scripts/1

    //start conversation
    r_script_node "main" [result "[Hi, My name is Bob.]"] [
         r_response "Hey Bob, I'm well." "normal" //goes to dialogue normal
        r_response "Goodbye" " " //closes the dialogue
    ]

    //normal path
    r_script_node "normal" [result "[I'm glad to hear it]" ] [
       r_response "Goodbye" " "
    ]
Another issue might be how to open the main dialogue window - you need to switch from <r_chat self 0> to <r_chat self "main">

Re: V2.8 Scripting Conversations question

Posted: July 31st, 2012, 12:33 pm
by Lou
Success!!!!!
It was the r_chat self "main" that did the trick.
Thanks for your help guys.