Find
You are in a command called reexit
reexit {object}
This will make an exit in the named object. This is useful if somehoe the exits in a location have been eaten.
eg Assuming you are in a location with an object called a kitchen:
reexit the kitchen
See also
fixexit
,
outof
and
into
Created by
wolis
, last updated 25 Dec 2010
Code
get $target in $loc;
if $target > 0 then addexit else fail;
##addexit:
var $target1 to $target;
new new_exit;
set $target1's link to $target;
# set $target's link to $target1;
# set $target's loc to $target1;
# set $target's extra to 'from here';
# set $target's pwd to $target1's pwd;
# set $target's class to 'exit';
set $tpwd to $target1's pwd;
update $target to "link=$target1,loc=$target1,extra='from here',pwd='$tpwd',qty=1";
say 'fixed',"[$actor] makes [$target1] into a location";
relook $loc;
##fail:
say 'fail',"[$actor] could not find $cmd_text";
a newexit from here
beyond this you see
a book of construction