Find
You are looking at a material called larvaltroid
Place this material on an infant metroid
Created by
omenofdoom
, last updated 23 Nov 2008
Code
if reacting to ometlifedrained then wasitme;
##tickloc:runsub checkif;
##checkif:
if $actor's healthmax > 24 then changeem else nope;
if $actor's health > 0 then checknoise else nope;
##checknoise:
runsub makenoise/5;
##makenoise:
var $what to (screeches, squees);
print "[$actor] $what loudly.";
##whattodo:runsub moveme;
##moveme:
new a note that means th2 works;
call "roam";
##checkgrow:
if $grw > 4 then growme else nope;
##growme:
$hlth = $actor's health;
$hlthm = $actor's healthmax;
add 3 to $hlthm;
set $actor's healthmax to $hlthm;
set $actor's health to $hlthm;
set $grw to 0;
set $actor's growthfactor to $grw;
##wasitme:
if $actor = $init_obj's host then incrcnt else nope;
##incrcnt:
$hlth = $actor's health;
$hlthm = $actor's healthmax;
add 1 to $hlthm;
set $actor's healthmax to $hlthm;
set $actor's health to $actor's healthmax;
print "[$actor] seems to grow slightly larger.";
##changeem:
print "Energy begins running over [$actor]'s surface, obscuring it from view";
set $actor's class to 'Alpha Metroid';
set $actor's pclass to 'Alpha Metroids';
$mat = $actor's material;
swap $mat add "_alphatroid_";
swap $mat take "_larvaltroid_";
set $actor's material to $mat;
print "The energy disappears in the blink of an eye, and [$actor] emerges, quite a bit larger and more powerful than before.";
set $actor's info to 'Large compound eyes gaze at you from between three sharp horns';
say 'changemandibs'," ";