Page 1 of 1

I'm so confused scripting

Posted: January 31st, 2013, 4:58 pm
by Ghostman Gaming
ok to start i coded all my code in 2,7,1 and coped it into 2.8.2 and it all does not work???? idk how to fix it here is a example code i wrote its for a computer.

Code: Select all

// Your laptop

include scripts/1


r_script_node "[Welcome to you laptop awaiting input:]" [ //0
		r_response "My documents" 7
		r_response "E-mail" 2
		r_response "[Log off]" -1
]

r_script_node "[file not accessible at this time.]" [ //1
		r_response "Back" 7
]
		
			]
]

r_script_node "[Welcome to your E-mail. Select a message to read it.]" [ //2
	r_response "Cheap airfare at C airlines" 3
	r_response "My associate awaits" 4
	r_response "Welcome" 5
	r_response "Hello son" 6
	r_response "[Back]" 0
]

r_script_node "[From: Capital Airlines Message: Fly anywhere in the world for only $500.00 all this month for special members.]" [ //3
	r_response "[Back]" 2
]

r_script_node "[From: Mr,Davis Message: My associate is waiting for you outside with a car he will tell you more -Mr,D]" [ //4
	r_response "[Back]" 2
	r_global_new 3
]

r_script_node "[From: Ghostman gaming Message: Thank you for taking a interest in our products and we hope to see you playing more games from Ghostman gaming]" [ //5
	r_response "[Back]" 2
]

r_script_node "[From: Dad Massage: Hello son I hope you have been well with your business job. Your brother Tony was just released from prison today Mama's very excited to see him I hope you can come down to we will cook a big meal.  I hope to hear from you soon -Don Mangino]" [ //6
	r_response "[Back]" 2
]
r_script_node "[Welcome to your documents awaiting input:]" [ //7
	r_response "[My pictures]" 1
	r_response "[My videos]" 1
	r_response "[My Music]" 8
	r_response "[My Computer]" 1
	r_response "[Back]" 0
]

r_script_node "[Welcome to your music 1 file found]" [ //8
	r_response "[Play Music]" 9
	r_response "[Back]" 7
]

r_script_node "[Now Playing: Hooves Instead Of Feet, By: Even The Slept, Album: Paper Vulturs]" [ //9
	r_sound "tyler/even the slept - Paper Vultures - 04 Hooves Instead of Feet"
	r_response "[Back]" 8
]
I tried to figure it out but i am still lost any help is appreciated
i also wanted to have the computer play a secret song but the audio will not play idk how to gt it to play.
:oops: :?: :?:

Re: I'm so confused scripting

Posted: January 31st, 2013, 8:44 pm
by Hirato
You're still using the old syntax, but you've changed it to use the new command, I changed the name of the command to avoid exactly this issue.

Old

Code: Select all

r_script say "Thingies and Stuffies" [
        r_response "Thingies and Stuffies" 1
]

r_scripy_say "Yay!" [

]
New

Code: Select all

r_script_node "thingies" [ result "Thingies and Stuffies" ] [
        r_response "Thingies and stuffies" "stuffies"
]

r_script_node "stuffies" [ result "Yay!" ] [

]

Re: I'm so confused scripting

Posted: February 1st, 2013, 7:58 pm
by Ghostman Gaming
I'm still a little confused How do i close the dialogue box
no offence but i liked the old coding system more :D