verb/heal()
set src in view(1)
if(usr.med >=1)
if(locate(/obj/Medikit) in (usr.contents))
usr << "Vilager: Thank you"
could someone tell me why im gettting an undifined proc error?
ID:176917
Nov 28 2002, 3:30 pm
|
|
Nov 28 2002, 3:33 pm
|
|
You dont need ( )s around "usr.contents".
|
In response to Delita12345
|
|
no that just gives me another error and it does not fix the undifined proc error. I dont know why that error is comming up ive used this code before
|
In response to Treasurecat
|
|
sorry i couldn't help :(
|
Treasurecat wrote:
verb/heal() Delita was right: You don't need to put parentheses around usr.contents here. In fact, "in usr" ought to be plenty. The exact problem you're having is with indentation. If you take another look at your post, which you clearly cut and pasted, the if() line isn't lined up with the set src line. You've got a mix of tabs and spaces that doesn't show up in monospace format, so while entering it in DM and the forum it looks fine. (Incidentally, who uses 8-space tabs anymore? Switch to 4; it will not only show up your error, but it looks better. I know you're using 8-space tabs because, foolishly, Mozilla and any other browser also default to showing tabs as 8 spaces. And since the code looks normal in this monospace font, obviously that's the same issue you're having in DM.) A secondary problem you may be having is that everything after the verb line is indented a tab or two too far. They should be indented by only one tab after the verb. Lummox JR |