proc/set_obj_desc(obj/fountain,desc = "Drink water from fountains to restore health")
fountain.desc = desc
world << "Drink water from fountains to restore health."
obj
fountain
icon = 'fountain.dmi'
name = "stone fountain"
density = 1
/proc/set_obj_desc
world <<"Drink water from fountains to restore health"
mob
var
set_obj_desc = /proc/set_obj_desc
verb
call_set_obj_desc()
call(set_obj_desc)("Drink water from fountains to restore health")
Problem description:
I have worked on this all day and finally got it in a form the compiler would accept. I no longer get an error message so I assume that it is good code. What I want to do is disply the text listed whenever a player mouses over a fountain in the game. I tried to do this with mouse entered but it always told me I could not put a proc inside another proc and the usr << was undefined. Since I need to learn procs I started messing with this and I think I am almost there but I still get no response when I run the code.
Thanks
SD