Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

V2.8 Scripting Conversations question

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

V2.8 Scripting Conversations question

Post 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?
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: V2.8 Scripting Conversations question

Post by Hirato »

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

Post 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">
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

Post by Lou »

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