Find
You are looking at a command called take
take {object}
Take an object you can see and put it in your pocket.
take the moon beams
You can only take objects which you created or are not locked (show in
bold
)
Yes, you can happily take doorways and locations too.
Scripting notes
This sends out the trigger word 'get' in the room where the object was taken and 'arrives' inside the taking object.
Created by
wolis
, last updated 09 Mar 2008
Code
get $target in $loc;
if $target > 0 then chklock else fail;
##chklock:
if $pw like $target's pwd then moveobj else itslocked;
##moveobj:
unhost $target;
clear $target,all;
relocate $target to $actor print "[$actor] takes [$target]~get" then "[$target] appears from nowhere~arrives";
set $target's pose to "hidden";
##fail:
if $counter > 0 then exit else listall;
##listall:
var $click_cmd to 'get';
var $desc_intro to 'Click on the object you want to take:
';
look $loc,list;
msg $loc,$actor,$actor,0,'force',"force:look $loc,list";
##itslocked:
say 'getfailed',"[$actor] could not take [$target] because it's locked";
##sample_full_msg:
msg $loc,$actor,$target,$second,'getfailed',"[$actor] could not take [$target]";