[END] script
Posted: November 20th, 2012, 1:52 pm
just one more thing (i'm sure you've heard that one before), i seem to be having trouble with the [END] command, and i think this is quite important in shaping dialog... my example of what i'm working on...
as you can see i've tried a few ways to workaround so the player doesnt just come back and get another apple from the NPC... and i would also use it for jumping over earlier dialog... this is a real stickler for scripting gameplay... there has to be a way
Code: Select all
//alex
include scripts/1
r_script_node "main" [result "Hello, i'm alex, C-1 S-9... i don't need a faction be-cause orge's already have a faction"] [
case (r_global_set $applequest 0)
r_response "how nice for you" "normal"
]
r_script_node "normal" [result "would you like to do a simple quest for me?"] [
r_response "maybe... what would i have to do" "normal2"
r_response "no... Goodbye"
]
r_script_node "normal2" [result "please take this apple, and that apple, to my brother Dan over there... but be careful not to talk to roger"] [
r_response "ok... whats in it for me?" "normal3"
r_response "no way... do it yourself lazy ogre."
]
r_script_node "normal3" [result "he will reward you with a mighty power... do you accept the quest?"] [
r_response "yes" "normal4"
//if case (r_global_get $applequest 0) "normal4"
//if case (r_global_get $applequest 1) "normal5"
r_response "no"
]
r_script_node "normal4" [result "horray!!"] [
case (r_global_set $applequest 1)
r_additem player 2 1
r_journal_record "Accepted Apple Quest:" "you must take 2 apples to Dan in the wastelands for an unknown reward"
] [END]
r_script_node "normal5" [result "you already have a quest"]