Find
You are looking at a button
You might have to push me if you create a new zone object here.
Created by
thorn
, last updated 17 Mar 2008
Code
if target of push then pushed;
if reacting to arrives then pushed;
if reacting to create then pushed;
##pushed:
foreach in $loc do checkit not me;
##checkit:
if $for_id's class == player then continue else checkit2;
##checkit2:
if $for_id's host > 0 then continue else checkit3;
##checkit3:
//runsub remmat;
find $for_id,button;
if $found_id > 0 then continue else addbutton;
##addbutton:
new "a button";
multiset $new_id = "loc='$for_id',info='Push this button after placing your encounter here',colour='white',material='_beastiary_',pwd='qwerty'";
print "[$new_id] has been placed in [$for_id]";