rendered paste body### <make hotfire> (Log + Branch)
combi=start
id=makehotfire
req=7
req=24
gen=7
gen=24
genname=make hotfire
script=start
local $nearbyfurnace;
$nearbyfurnace=0;
loop("objects",214){
local $dist;
local $id;
$id=loop_id();
$dist=distance("unit",1,"object",$id);
if($dist<100){
$nearbyfurnace=$id;
}
}
if ($nearbyfurnace==0){
msg "You need a nearby furnace!",4;
}
else{
addstate "object",$nearbyfurnace,"hotfire";
play "barkbranchfire.wav";
freestored "unit",1,24,1;
freestored "unit",1,7,1;
}
script=end
combi=end