Find
You are in a microphone which is on
This microphone is hooked up to a speaker in a room in the hospital in the sky scraper.
Just
push the microphone
to turn it on or off.
Everything you say can then be heard in the hospital room by the poor patients who need some comic relief.
Created by
wolis
, last updated 01 Aug 2011
Code
##any:runsub whattodo;
##whattodo:
var $myswitch to $actor's switch;
if $myswitch eq "on" then echoit else end;
##echoit:
set $actor's output to 2625;
var $outobj to $actor's output;
var $outloc to $outobj's loc;
var $outmsg to "$init_msg";
swap $outmsg so "force:.*" is "";
swap $outmsg so "_ping.*" is "";
msg $outloc,$actor,0,0,'msg',"[$outobj] squarks '$outmsg'";
##push:runsub flipswitch;
##flipswitch:
var $myswitch to $actor's switch;
if $myswitch eq "on" then switchoff else switchon;
##switchoff:
set $actor's switch to "off";
set $actor's extra to 'which is off';
say 'msg',"[$actor] is now off";
##switchon:
set $actor's switch to "on";
set $actor's extra to 'which is on';
say 'msg',"[$actor] is now on";
the output
the switch