Code:
Name: 'Obj Command Example', VNum: [ 81], RNum: [ 81]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 7, Arg list: o
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
* Numeric Arg: 7 means obj can be worn, carried, or in room.
* Make sure the command is open, check for any abbrev of closet
if %cmd.mudcommand% == open && closet /= %arg%
%send% %actor% As you open the closet something runs out.
%echoaround% %actor% %actor.name% opens a closet and something comes out.
%load% mob 207
detach 81 %self.id%
else
* If it doesn't match let the command continue.
return 0
end
for TBA.