|
McGravin Beginner
Joined: 30 May 2002 Posts: 25 Location: USA
|
Posted: Wed May 26, 2004 11:08 pm
One more for you, using #ONINPUT and #SUB. |
So I have this friend, and sometimes my friend forgets to type "say" before a line meant to be said aloud to the room. Normally, this has no ill effects, but then the commands "I" and "A" in the MOO are commands to chat over the main channels, which can lead to embarassment. Inputting "I just went up a level!" without "say" at the beginning of the line will accidentally chat "Just went up a level!" over the main channels.
So I figured I'd help my friend out and use two #ONINPUT trigger with "^I" and "^A" as the triggering phrase. However, I'm now confused as to how to continue.
Should I use a #SUB to replace "I ..." with "say I ..."? Is it possible to somehow work in a #YESNO to ask "Did you mean to say or chat that?" Any ideas? |
|
|
|
McGravin Beginner
Joined: 30 May 2002 Posts: 25 Location: USA
|
Posted: Wed May 26, 2004 11:13 pm |
Okay, I got the basic trigger to work and it looks like:
#ONINPUT {^I (*)} {#SUB {say I %1}}
However, is there still a way to work in a #YESNO? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu May 27, 2004 3:51 am |
Do it the easy way -- use an alias.
#AL I {#YESNO {Did you mean to say or chat that?} {Say:say I %-1} {*Chat:~~I %-1}} |
|
|
|
|
|