Find
You are looking at a torch
use the torch
if you need a little light.
Created by
wolis
, last updated 13 Dec 2008
Code
if target of use then toggleme;
##toggleme:
if $actor's material like "_light_" then switchoff else switchon;
##switchoff:
$mat = $actor's material;
swap $mat take _light_;
set $actor's material to $mat;
##switchon:
mani $actor's pocket set lightmsg to "that is glows brightly here";
$mat = $actor's material;
swap $mat add _light_;
set $actor's material to $mat;