Welcome to the Builder Academy

Question Request: Emote Targeting

More
18 Mar 2018 22:45 #7712 by Chime
I'm after an emote command snippet that accepts object and player targets.

For example, say there is a player in the room with "a grey-eyed man" as their shortdesc. My shortdesc is "a black-haired man":
Code:
emote looks at /grey-eyed and frowns.

The above would display, to me:
Code:
Chime looks at a grey-eyed man and frowns.

To others in the room:
Code:
A black-haired man looks at a grey-eyed man and frowns.

To the target:
Code:
A black-haired man looks at HisName and frowns.

Injecting /self into an emote would target yourself. For example:
Code:
emote Looking around, /self frowns.

I would see:
Code:
Looking around, Myname frowns.

Others would see:
Code:
Looking around, a black-haired man frowns.

Targeting objects would work similarly, but with a different symbol.

Say I have "a big beachball" worn or in my inventory. I could then do:
Code:
emote Looking around, /self throws @beachball around.

Which would output to me as:
Code:
Looking around, Myname throws a big beachball around.

And to others as:
Code:
Looking around, a black-haired man throws a big beachball around.

I think it would be mad cool for RP games using tbaMUD.

Please Log in or Create an account to join the conversation.

Time to create page: 0.324 seconds