Candle (#2409)(an instance of generic thing made by Random)     A tall white candle. It seems to be pyrokinetic. Go to location of this object, Randomhaus. VERB SOURCE CODE: light:
if (player.location != this.location)
player:tell("You can't light that from here.");
elseif (this.lit)
player:tell("The candle is already lit.");
else
player:tell("You light the candle with a thought.");
player.location:announce(player.name, " lights a candle.");
this.lit = 1;
endif
return 0;
.
description:
if (this.lit == 0)
return pass(@args) + " The candle is unlit.";
else
return pass(@args) + " The candle is lit.";
endif
return 0;
.
snuff:
if (player.location != this.location)
player:tell("You can't extinguish that from here.");
elseif (this.lit == 0)
player:tell("The candle is already out.");
else
player:tell("You snuff the candle.");
player.location:announce(player.name, " blows a candle out.");
this.lit = 0;
endif
return 0;
.
PROPERTY DATA:       lit |