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
ID:267135
![]() Dec 19 2002, 11:29 am
|
|
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. 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 |
First off AHHHHHHHHHHHHHHHHHHHHHH second off AHHHHHHHHHh :) ok now lets begin.