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.

Dialogue Question

Chat and ask questions about the RPG Maker Mode here.
Post Reply
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Dialogue Question

Post by lzrstrm »

Im Making an RPG right now and im wondering how to make a script that will remember something for a quest


For example if i want

Code: Select all

r_script_node "Old Man" [result "Can you do something for me?"] [
 r_response "Sure, I would be glad to help you" "sure"
 r_response "Sorry but im really busy right now" ""
]

r_script_node "sure" [result "Thank you so much, I need you to collect 5 apples for me"] [
 r_response "Ok I'll be right back" "finish"
 r_response "You go get them I don't want to" ""
]

r_script_node "finish" [result "Did You get them?"] [
 r_response "Yes here they are" "thank you"
 r_response "No not yet" ""
]


r_script_node "thank you" [result "Thank You"] [
 r_response "No Problem" ""
]

I want it so after i have accepted the quest, to skip the first part of the script and go straight to

Code: Select all

r_script_node "finish"
how do i do this?

p.s. this is not the script im using, this one is just for an example
Virus 44
Image
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Dialogue Question

Post by Hirato »

Um... not sure what you want at all...

If you want to open future dialogues at "finish" override the "talk" signal for that NPC to ope the dialogue there, eg...

Code: Select all

r_script_signal "talk" [
    if (quest has been accepted) [
        r_chat self "finish"
    ] [
        r_chat self "main"
    ]
]
If you just want to go straight to "finish" after accepting the quest, just do as you are doing now.
This is not a url, clicking it is pointless
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Dialogue Question

Post by lzrstrm »

thx i figured it out by looking at the scripts from the default rpg game
;)
thx anyway
Virus 44
Image
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Dialogue Question

Post by kddekadenz »

I would set a global variable to check if the quest is completed or not.
Kelgar is an advanced RPG beeing developed in Sandbox
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Dialogue Question

Post by lzrstrm »

Im brand new to the RPG scripting so.... How do I make a quest? I'v always used the FPS part of the game
Virus 44
Image
Post Reply