Find
You are looking at a light
A simple light.. acts as you would expect it to.
switch on the light
switch off the light
of if you want to just switch the light on or off depending on its current state you can:
switch the light
Created by
wolis
, last updated 31 Jan 2015
Code
if target of switch then toggleme;
if target of switchon then turnmeon;
if target of switchoff then turnmeoff;
##toggleme: $clr to $actor's colour; runsub setcolour;
##setcolour:
cycle $clr through (chocolate,yellow);
set $actor's colour to "$clr";
relook $loc;
##turnmeon: $clr = 'chocolate'; runsub setcolour;
##turnmeoff: $clr = 'yellow'; runsub setcolour;