Find
You are looking at a command called absorb
absorb {object}
Use this in a battle to absorb the money from an object that has been knocked from an object.
If you
hit the battle rat
and some coins come off it, you can
absorb the coins
Be quick, the battle rat is good at absorbing things too.
read the command called hit
Note you can only have battles in designated battle areas.. of which there are few.
find the battle rat
Created by
wolis
, last updated 06 Dec 2010
Code
get $target in $loc;
if $target > 0 then checkbattle else fail;
##checkbattle:
var $thingid to $target;
find $loc,battlerat;
if $found_id > 0 then checkdoorway else end;
##checkdoorway:
if $thingid's link > 0 then end else absorbit;
##absorbit:
unhost $thingid; rem stop objects from being hosted by it;
var $mny to $thingid's worth;
var $omny to $actor's worth;
add $mny to $omny;
set $actor's worth to $omny;
set $thingid's worth to 0;
set $thingid's loc to 0;
say 'absorbs',"[$actor] absorbs $mny from [$thingid]";
msg $loc,$actor,0,0,'force',"force:look $loc";
##fail: