Interactive Objects

@create <Object name> - makes an object with that name. Places it in your inventory.

@set #<object dbref>=i - makes you "trust" the object (identifies it as safe to you)

@set #<object dbref>=!no_command - removes the automatic block on objects preventing them from receiving commands.

&<action>-<object>-CMD #<dbref>=$<action> <object>: @pemit %#=<Description of the action FOR YOU> ; @oemit %#=%N <Description of the action for ONLOOKERS>

@pemit = what YOU see when your object performs.

@oemit = What OTHERS see when your object performs.

%N - Your name will be substituted here.

&WAVE-WAND-CMD #48=$wave wand:@pemit %#=You wave your wand. Stardust and glitter fly from the tip. Fairy! ; @oemit % #=%N waves his wand. Stardust and glitter fly from the tip. %S must be a fairy!"

Command-Trigger Objects.

You can also make interaction with objects trigger commands taking place, such as the revealing of a hidden exit:

Create, set i and no_command as before, but then drop the object in the room where it is to be used.

&pull-branch-cmd #56=$pull branch:@set #54=!dark ; @pemit %#=You tug on a nearby branch which, as it shifts, reveals a passageway beneath the boughs! <BB> ; @oemit %#=%N tugs on a nearby branch which, as it shifts, reveals a passageway beneath the boughs! <BB>"

To make the object reset itself (i.e. be hidden again) use:

&close-tree #56= ^* has left.:@set #54=dark

Don't forget to lock your object so that no-one can pick it up and take it (if it's a permanent feature):

@lock #56=me
@lock/use #56=me

Gender-related substitutions.

%s = subjective pronoun: he, she, it, they. Same as subj(%#)
%o = objective pronoun: him, her, it, them. Same as obj(%#)
%p = possessive pronoun: his, her, its, their. Same as poss(%#).
%a = absolute possessive: his, hers, its, theirs. Same as aposs(%#).

Case makes a difference: %S will return He, She, It, They (capitalised as at the start of sentences). If you need an actual % symbol, use %% to get it.

Page tags: builder staff
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License