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


Joined: 14 Jan 2007
Posts: 2

PostPosted: Sun Jan 14, 2007 4:58 am   

#GAG/#UNGAG
 
I made a trigger to #gag a few strings.

Code:
#TRIGGER {You have gained a level.} {#gag You;#gag Health:;#gag Endurance:;score;#ungag You;#ungag Health:;#ungag Endurance:}


Because I have a separate trigger to look for a value in my score and keep it as a variable, but I didn't want to see it all EVERY time I levelled up.

Code:
#TRIGGER {^Health: %d/&HPMax}


Needless to say, I screwed up the #GAGs.

But the problem is that I can't see ANY lines containing "You" or "Health:" or "Endurance:"

I've done #UNGAG over 50 times, and I know that I didn't gain 50 levels. -_-

I've tried rebooting zMUD as well.

Any help?

Thanks,

Lansain
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Jan 14, 2007 5:37 am   
 
Ok, what you have done is you created a trigger for the words You, Health:, and Endurance!! Furthermore every time you level up Your
"You have gained a level." Trigger fires your script is trying to create more triggers.
#gag You
#gag Health:
#gag Endurance

#gag {What I want to gag here}
Is the syntax for creating a Gag trigger!!!

What you want to do is create a trigger and use the gag matched line syntax.

#TRIGGER {You have gained a level.} {#gag}

The line that matches the trigger is gagged when you do this.

Now, you need to go find the triggers you created and didn't mean to and delete them.

Also #UnGaG is meant to be used to temporarily stop a #gag trigger from gagging a line of text that might match a gag trigger. This isn't what you are attempting to do, so it isn't helping you, confusing I know.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Lansain
Newbie


Joined: 14 Jan 2007
Posts: 2

PostPosted: Sun Jan 14, 2007 5:56 am   
 
Thanks! It made more triggers.

And I know I messed up the commands, I found that out after looking through the help files.

What I wanna use is #gagon and #gagoff
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jan 14, 2007 10:58 pm   
 
#GAGON gags everything that comes from the game or from ZMud (ie, system messages, echoed commands, etc), regardless of whether you want it to or not. You will need to #GAG the line that matches the pattern of the trigger that fired off the #GAGON command as it doesn't also gag that line. With #GAGON active, you will need to make #UNGAG triggers for stuff you want to still see.
_________________
EDIT: I didn't like my old signature
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