Have $command_utils:read() return an object?

1 view
Skip to first unread message

basil60

unread,
May 21, 2014, 6:03:20 PM5/21/14
to MOO-...@googlegroups.com
Hi 
is it possible to have selection = $command_utils:read("Where to today?); return an object - so the next line might be -

this:moveto(selection);
and actually have the object move to the input location?

Paul

Michael Munson

unread,
May 21, 2014, 6:06:21 PM5/21/14
to basil60, MOO-...@googlegroups.com
selection = $command_utils:read("Where to today?");
selObj = player:my_match_object(selection);
if ($command_utils:object_match_failed(selObj, selection))
   return;
endif
this:moveto(selObj);


--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at http://groups.google.com/group/MOO-talk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages