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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
symposes
Novice


Joined: 26 Apr 2006
Posts: 34

PostPosted: Tue Jun 23, 2009 2:58 am   

problems with #gag
 
I remember in zmud, I could make an alias

#alias {k} {kill %1;#gag}

and this would send no echo to my screen, but would send the kill command to the mud

Also worked with triggers

#tr {door} {#gag} <- Gagged all instances of the word door
#tr {door} {open door;#gag} <- Gagged the command sent, "open door" but NOT the door string.


My problem is with Cmud handling #gag

#alias {k} {kill %1;#gag} <- works as it did in Zmud

#tr {door} {#gag} <- Also works as it did in Zmud

#tr {door} {open door;#gag} <- This however is my question, this trigger, in Cmud 2.37 will not gag the command sent, but still continue to gag all instances of door

I tried this

#alias {od} {open door;#gag}
#tr {door} {od;#gag}

this appears to gag the string, AND the alias, but if i remove #gag from the trigger, it gags the string, but not the alias. :(

Id like to gag the commands i send, but not gag the text of the trigger.

Im just curious if that is still possible, and ifso, how.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jun 23, 2009 8:58 pm   
 
Instead of #GAG, use #SEND or #SENDRAW (this one is if you need to send something completely unprocessed by CMud). Neither echos anything to the screen.
_________________
EDIT: I didn't like my old signature
Reply with quote
symposes
Novice


Joined: 26 Apr 2006
Posts: 34

PostPosted: Tue Jun 23, 2009 11:48 pm   
 
That did the trick, thanks!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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