Find
You are looking at a material called dtendril
Created by
omenofdoom
, last updated 18 Mar 2008
Code
##tickday:runsub whattodo;
##think:runsub finddoor;
##whattodo:runsub finddoor/2 or witherme/5;
##finddoor:
find $loc,random doorway;
if $found_id > 0 then growthrough else end;
##growthrough:
var $linked to $found_id's link;
var $nloc to $linked's loc;
set $actor's host to $found_id;
set $actor's hosthow to "on";
set $actor's pose to "growing";
copy $actor;
var $mny to random 10;
set $new_id's worth to $mny;
set $new_id's host to $linked;
set $new_id's loc to $nloc;
set $new_id's pwd to "";
set $new_id's class to "tendril";
say 'msg',"[$actor] grows out through [$found_id]";
msg $loc,$actor,0,0,'force',"force:look $loc,look",$actor;
msg $nloc,$new_id,0,0,'msg',"[$new_id] grows in from [$found_id]",$new_id;
msg $nloc,$new_id,0,0,'force',"force:look $loc,look",$new_id;
runsub witherme/5 or end;
##witherme:
var $mny to random 20;
set $actor's worth to $mny;
set $actor's colour to "darkgoldenrod";
set $actor's extra to "";
set $actor's info to "This tendril used to grow so well but is dead now";
set $actor's pose to "withered";
set $actor's material to '';
say 'msg',"[$actor] dries up and dies";
msg $loc,$actor,0,0,'force',"force:look $loc,look",$actor;