Dialogue Question

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

Dialogue Question

Postby lzrstrm » November 26th, 2012, 8:12 pm

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
Current Project
The Shadow People

Image
Image

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

Re: Dialogue Question

Postby Hirato » November 26th, 2012, 11:11 pm

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
Location: Canada

Re: Dialogue Question

Postby lzrstrm » November 27th, 2012, 12:04 am

thx i figured it out by looking at the scripts from the default rpg game
;)
thx anyway
Current Project
The Shadow People

Image
Image

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

Re: Dialogue Question

Postby kddekadenz » November 27th, 2012, 2:50 am

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
Location: Canada

Re: Dialogue Question

Postby lzrstrm » November 27th, 2012, 6:57 pm

Im brand new to the RPG scripting so.... How do I make a quest? I'v always used the FPS part of the game
Current Project
The Shadow People

Image
Image


Return to “RPG Maker Mode”

Who is online

Users browsing this forum: No registered users and 1 guest