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
[_SnArF_]
Beginner


Joined: 16 Nov 2000
Posts: 20
Location: USA

PostPosted: Wed Jul 31, 2002 6:49 am   

Gagging, and multi-line triggers...
 
I have a trigger, it consists of two lines. How do I gag both lines?



The text from the mud:
When worn, it protects you against piercing for 8,
bashing for 8, slashing for 8 and magic for 0 points each.

My trigger:
#TRIGGER {When worn, it protects you against piercing for (%d),$bashing for (%d), slashing for (%d) and magic for (%d) points each.} {#sub {P: %1 B: %2 S: %3 M: %4}}

Output:
When worn, it protects you against piercing for 8,
P: 8 B: 8 S: 8 M: 0


Thanks

---------------
We're going to eat all of your food and steal all of your beer.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jul 31, 2002 1:14 pm   
 
You can make zMUD gag the previous line and the current one by doing this:
#GAG -1
#GAG

I'm guessing that you are not going to be able to do it with #SUB. So, you need to use the above and then use #SH to display your text.

Kjata
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