Find
You are looking at a phazon radiation
Created by
omenofdoom
, last updated 21 Aug 2008
Code
##tickloc:runsub ticked;
##ticked:
var $cnt to $actor's counter;
var $fromhit to $actor's slot1;
var $tohit to $actor's slot2;
var $weapon to $actor's slot3;
case $cnt do doinit,dodamage,dodamage,dodamage,alldone;
##doinit:
say 'msg',"A burst of [$actor] blasts out of [$weapon] towards [$tohit]!";
say 'msg',"[$tohit] is engulfed in deadly radiation!";
set $actor's counter to 1;
set $actor's host to $tohit;
set $actor's hosthow to 'around';
##dodamage:
var $hlth to $tohit's health;
take 3 from $hlth;
if $hlth < 0 then zeroit;
set $tohit's health to $hlth;
$t = $target;
$target = $tohit;
$verb = (irradiated,burned,mutated);
say 'burn',"[$tohit] is irradiated by [$actor]!";
$target = $t;
add 1 to $cnt;
set $actor's counter to $cnt;
if $hlth < 1 then saydead;
##zeroit:
$hlth = 0;
##saydead:
say 'msg',"[$tohit] is $verb to death.";
set $actor's counter to 4;
##alldone:
say 'msg',"[$actor] fades out";
set $actor's loc to $weapon;
unhost $actor;
set $actor's host to 0;
set $actor's hosthow to '';
set $actor's counter to 0;
relook $loc;
switch $actor off;