ID:267135
 
Hi, i combined Rae-Kwon's hub demo with my old NPC Talking code and got the following code. I have supplied the erros. If you have an idea of how to clear this problem up please help, understood if you can't.

Code//

turf/deskofficer//I set this to turf because If it is a mob it will be attacked, and if it is an obj, it will be picked up.
icon = 'agents.dmi'
icon_state = "deskofficer"
density = 1
verb/Talk()
set src in oview(2)
usr.textonscreenbackground(1,1,13,5)
usr.textonscreenTEXT(1,5,12,5,1,5,"Officer Gordon: Hello, how may I help you?")in list("What is this place?","Cancel"))
if("What is this place?")
usr.textonscreenTEXT(1,5,12,5,1,5,"This is Capsule City, one of the largest cities in Metopolis, you are currently in the Police Station."
if("Cancel")
sleep(5)
usr.close_menu()

errors//

error):expected }
location of top-most unmatched {

The Conjuror
The Conjuror wrote:
Hi, i combined Rae-Kwon's hub demo with my old NPC Talking code and got the following code. I have supplied the erros. If you have an idea of how to clear this problem up please help, understood if you can't.
First off AHHHHHHHHHHHHHHHHHHHHHH second off AHHHHHHHHHh :) ok now lets begin.
Code//

turf/deskofficer//I set this to turf because If it is a mob it will be attacked, and if it is an obj, it will be picked up.
icon = 'agents.dmi'
icon_state = "deskofficer"
density = 1
verb/Talk()
set src in oview(2)
usr.textonscreenbackground(1,1,13,5)
usr.textonscreenTEXT(1,5,12,5,1,5,"Officer Gordon: Hello, how may I help you?")in list("What is this place?","Cancel")) <---- is that ) suppose to be there?
if("What is this place?")
usr.textonscreenTEXT(1,5,12,5,1,5,"This is Capsule City, one of the largest cities in Metopolis, you are currently in the Police Station." <--- What about putting a ) there?
if("Cancel")
sleep(5)
usr.close_menu()

errors//

error):expected }
location of top-most unmatched { basicly its going out of bounds or missing (,{,},),[,].

The Conjuror
The Conjuror wrote:
Hi, i combined Rae-Kwon's hub demo with my old NPC Talking code and got the following code. I have supplied the erros. If you have an idea of how to clear this problem up please help, understood if you can't.

Code//

turf/deskofficer//I set this to turf because If it is a mob it will be attacked, and if it is an obj, it will be picked up.
icon = 'agents.dmi'
icon_state = "deskofficer"
density = 1
verb/Talk()
set src in oview(2)
usr.textonscreenbackground(1,1,13,5)
usr.textonscreenTEXT(1,5,12,5,1,5,"Officer Gordon: Hello, how may I help you?")in list("What is this place?","Cancel"))
if("What is this place?")
usr.textonscreenTEXT(1,5,12,5,1,5,"This is Capsule City, one of the largest cities in Metopolis, you are currently in the Police Station."
if("Cancel")
sleep(5)
usr.close_menu()

errors//

error):expected }
location of top-most unmatched {

The Conjuror

usr.textonscreenTEXT(1,5,12,5,1,5,"Officer Gordon: Hello, how may I help you?")in list("What is this place?","Cancel"))

Is you're problem. this is text-on-screen, not menus-on-screen. Sorry, that's not possible with the demo yet.

RaeKwon