Find
You are looking at a test ring
Created by
Xianus
, last updated 24 Jun 2009
Code
##wears: runsub isitme;
##push: runsub isitme2;
##get: runsub isitme2;
##shoots: runsub isitme2;
##isitme:
if $actor eq $target then disappear else end;
##isitme2:
if $actor eq $target then appear else end;
##disappear:
set $init_obj's host to $init_obj;
say 'msg',"[$init_obj] suddenly disappears!";
##appear:
set $init_obj's host to $actor;
set $init_obj's pose to "beside";
##rem Xianus, your reactions were simply
#push: itsme2;
instead of
#push: runsub itsme2;
I modified the itsme2 but your code would ahve worked just as well (well done!)
Now the next thing is the get the ring to react to a 'go' and make sure the $init_obj remains invisible at the ther end.
(or maybe react to an arrive as well)
Hmm I think we need a 'take' command that recognises the 'off' (take off the ring)
A command can only be a single word 'go,get,wear' but some commands check the second word and act differently. I think 'go' is one: 'go to the door' 'go the door' are the same.
There are probably others, I forget now.. maybe 'get' = 'get the cup' get into the cup' - maybe I have not coded this yet.. feel free to
code the command called get
'
As for whistle
find the command called whistle
supprisingly we already have a whistle! maybe you can meld the two together?