Find
You are looking at the strong acid
Created by
omenofdoom
, last updated 01 Jul 2009
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',"[$fromhit] sprays [$actor] on [$tohit]!";
say 'msg',"[$tohit] is engulfed in caustic fluid!";
set $actor's counter to 1;
set $actor's host to $tohit;
set $actor's hosthow to 'on';
##dodamage:
var $hlth to $tohit's health;
take 2 from $hlth;
if $hlth < 0 then zeroit;
set $tohit's health to $hlth;
$t = $target;
$target = $tohit;
$verb = (burned,poisoned,sickened);
say 'burn',"[$tohit] is burned 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] dissolves into a puddle.";
set $actor's counter to 4;
##alldone:
say 'msg',"[$actor] becomes dilute";
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;