Find
You are looking at a light switch switched on
A lovely glow-in-the-dark light switch.
use the light switch
Created by
omenofdoom
, last updated 16 Mar 2008
Code
if target of use then doit;
##doit:
if $actor's extra like 'switched on' then darkit else lightit;
##darkit:
$room = $loc's material;
swap $room take '_light_';
set $actor's extra to 'turned off';
relook $loc;
##lightit:
swap $room add '_light_';
set $actor's extra to 'switched on';
relook $loc;