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
baldguy633
Newbie


Joined: 08 Nov 2005
Posts: 3

PostPosted: Tue Nov 08, 2005 3:44 pm   

Simple question
 
How do I keep the text that is sent to the MUD as the result of a successful trigger from being displayed?

Example:
#trigger {{*} arrives from the west} { kill %1}

Then in the screen you'll see:

kill zugg

-------------

The reasoning is, I've got several triggers that send three and four commands and they can get pretty spammy. I'd like to only see the results of the commands that were sent.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Nov 08, 2005 4:34 pm   
 
#send
I think
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Nov 08, 2005 4:48 pm   
 
*nod Guinn*
#trigger {{%w} arrives from the west} {#send kill %1}
_________________
http://www.Aardwolf.com
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Nov 09, 2005 1:08 am   
 
Actually Vitae your syntax is wrong, due to an error in the Help file. To #SEND a multi word string you need to enclose it in braces {}
#SEND {Kill %1}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Nov 09, 2005 1:49 pm   
 
heh, actually, I use #send alot.
I just forgot to use the {}'s
altho these work fine
#SEND _________________________________________________________________________
#SEND ------------|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
#SEND "~@GPortal reset order Portal reset order Portal reset order~@M"

And I don't have the {}'s around them.
I've never figured out what reasons some work and some don't.
_________________
http://www.Aardwolf.com
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Nov 09, 2005 5:37 pm   
 
a multi word string

All those examples are considered only 1 word with the exception of the last one which is quoted with " " so its treated as a literal and wont expand.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Nov 09, 2005 8:30 pm   
 
Makes sense to me :-)
<3 nexela
_________________
http://www.Aardwolf.com
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