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