MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Coding Problem



How do I make the following code work?  Right now, it just gives me the "ERROR: 
Could not access text on object." every time.

Thanks in advance!

otret = $string_utils:explode(args[1], "?")[1];
otrargs = $string_utils:explode($string_utils:explode(args[1], "?")[2], ",");
if ($object_utils:has_callable_verb(otret, "return_text"))
if (typeof(otrargs) != ERR)
otret:return_text(@otrargs);
else
otret:return_text();
endif
else
notify(player, "ERROR: Could not access text on object.");
move(otret, otret.owner);
endif

James Renken                                Renk0006@Gold.TC.UMN.Edu
Student, University of Minnesota          http://acm.cs.umn.edu/~jpr
"We demand that you bring this planet up to code!" - Calvin & Hobbes



Follow-Ups:

Home | Subject Index | Thread Index