 |
Lansain Newbie
Joined: 14 Jan 2007 Posts: 2
|
Posted: 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 |
|
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
 |
Lansain Newbie
Joined: 14 Jan 2007 Posts: 2
|
Posted: 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 |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
|
|
|