Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
McGravin
Beginner


Joined: 30 May 2002
Posts: 25
Location: USA

PostPosted: 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?
Reply with quote
McGravin
Beginner


Joined: 30 May 2002
Posts: 25
Location: USA

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net