V2.8 Scripting Conversations question

Chat and ask questions about the RPG Maker Mode here.
Lou
Member
Member
Posts: 59
Joined: May 29th, 2012, 11:46 am
Name: Lou

V2.8 Scripting Conversations question

Postby Lou » July 29th, 2012, 11:29 pm

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?

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: V2.8 Scripting Conversations question

Postby Hirato » July 30th, 2012, 5:35 am

no idea - it looks good to me
maybe something inside script 1?
This is not a url, clicking it is pointless

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: V2.8 Scripting Conversations question

Postby kddekadenz » July 30th, 2012, 10:49 am

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">
Kelgar is an advanced RPG beeing developed in Sandbox

Lou
Member
Member
Posts: 59
Joined: May 29th, 2012, 11:46 am
Name: Lou

Re: V2.8 Scripting Conversations question

Postby Lou » July 31st, 2012, 12:33 pm

Success!!!!!
It was the r_chat self "main" that did the trick.
Thanks for your help guys.


Return to “RPG Maker Mode”

Who is online

Users browsing this forum: No registered users and 1 guest