OOC:Audible-Enterable Objects
(Redirected from Audible-Enterable Objects)OOC Notes |
This is an old forum post and has been only minimally wiki formatted. |
Let's assume, for now, that you want to create the Yuri Tree - Which is the first item I know of that used this method of setting these up. The code, or at least this version of it, is, as far as I know, Phil's.
@create Yuri Tree
@set Tree=Audible
@set Tree=Enter_ok
@set Tree=!no_command
@desc Tree=A tall leafy tree where people hang out.
These create the object and set the necessary flags on it. Now to make it able to 'hear' outside of itself :
@listen Tree=*
@inprefix Tree=>
Technically, you can stop at this point. But if you want a _nice_ object, it's best to also do these things :
@parent Tree=#10
@ealias Tree=Climb
@enter Tree=You climb up the tree.
@lalias Tree=Out
@leave Tree=You climb out of the tree.
@oenter Tree=climbs up onto the tree.
@prefix Tree=(Tree)
@idesc here=You are inside the Tree. It is green and leafy.
@oleave Tree=climbs down out of the tree.
@oxenter Tree=climbs up the tree.
@oxleave Tree=climbs out of the tree.
Yes, a-e object's inside descs should still be set with @idesc, as @desc is what they show from _outside_ the object.
To add the command to talk privately :
&cmd_tt Tree=$tt *:think tt(%0, Privately\,)
&md_ttooc tree=$ttooc *:think tt(%0, Private [ansi(bh,\[OOC])]\,)
&int.inroom Tree=match(%l,%!)
@lock/use Tree=int.inroom/1
-- Thanks to Samantha for the TTOOC code.