Find
You are looking at a material called larvalmandibs
Place this material on the mandibles of an infant metroid
Created by
omenofdoom
, last updated 23 Nov 2008
Code
if reacting to changemandibs then isitme;
if second of hit then doit;
##doit:
$hh = $init_obj's health;
$hm = $init_obj's healthmax;
take 3 from $hm;
if $hh < $hm then healit else fullme;
$th = $target's health;
$tm = $target's healthmax;
if $th < 3 then deadit else hurtit;
##healit:
add 3 to $hh;
set $init_obj's health = $hh;
print "[$init_obj] drains some of [$target]'s life force";
print "[$init_obj] seems healthier";
##fullme:
print "[$init_obj] is fully replenished";
set $init_obj's health to $init_obj's healthmax;
##deadit:
set $th = 0;
say 'ometlifedrained',"[$target] falls to the floor, drained of all life";
##hurtit:
take 3 from $th;
print "[$target] is weakened from [$actor]";
set $target's health = $th;
##isitme:
if $actor's host = $init_obj then changemenow else nope;
##changemenow:
set $actor's healthmax = 25;
set $actor's health = 25;
$mat = $actor's material;
swap $mat take "_larvalmandibs_";
swap $mat add "_alphamandibs_";
set $actor's material to $mat;
set $actor's class to 'small horns';
set $actor's pclass to 'small hornses';