|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Fri Sep 10, 2010 5:44 am
gag deleting lines |
I have an enemy tracker that checks users every 10 seconds. It gags each line from users and it gags the command users
The issue is, each time it runs, it also deletes the line above it. This means I frequently miss tells, says, people entering my room, etc
Is there any way to fix this? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Sep 10, 2010 4:33 pm |
Probably, but without saying the actual code doing the GAGing and some sample text there's not much help we can provide.
I would strongly recommend reading up on the #GAG command and also make sure the text you trigger on to GAG is as specific as possible. |
|
_________________ Asati di tempari! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Sep 10, 2010 4:38 pm |
stop using #GAG -# or #GAG #. These commands don't care what the content of each line is, which can sometimes change on you when events happen close together or when an IMM/Developer makes a typo or otherwise is inconsistent with the formatting (ie, you expected there to be 2 lines but only 1 line was sent).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Fri Sep 10, 2010 6:42 pm |
Quote: |
#ALIAS checkpla {resetpla;#CLASS gagusers 1;users;#GA -1;#ala +2 {#CLASS gagusers 0};#ala warcheckin +10 {checkpla}}
#CLASS {warcheck|gagusers}
#TRIGGER {o---------------------------------------------------------------------------o} {#GA}
#TRIGGER {* players, * wizard.} {#GA}
#TRIGGER {* players, * wizards.} {#GA}
#TRIGGER {|(*)|(*)|(*)|(*)|} {#GA}
#TRIGGER {|---------------------------------------------------------------------------|} {#GA}
#CLASS 0
|
Code: |
o---------------------------------------------------------------------------o
|Valyn [Wiz]| | | |
|---------------------------------------------------------------------------|
|Amroth 24/20|Eirlys 36/20|Ledue 19/19|Teek 19/19|
|Chay 22/20|Elomar 15/15|Matrim 18/17|Umm 17/17|
|Cobalt 36/20|Kalush 1/1 |Ryker 26/20| |
|Edana 36/20|Khair 34/20|Sionell 24/20| |
14 players, 1 wizard.
|
So the second item is what I am using to check for the players on. The first item is the set of triggers doing the gagging
is there a way to make this not delete lines?
I enter a room and it shows the desc and the room exits, then checkpla goes off (its a +10 alarm) and the room exits disappear, if I sit there and I get a tell, the tell disappears when the alarm goes off again. Is there a way to make this work better? |
|
Last edited by surge4883@yahoo.com on Fri Sep 10, 2010 6:44 pm; edited 1 time in total |
|
|
|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Fri Sep 10, 2010 6:44 pm |
the spacing is all off in the quoted selection, but I don't think that should make a big difference.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Sep 10, 2010 9:38 pm |
Try using ^ at the beginning.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Sep 11, 2010 5:12 am |
The reason why it's gagging the line above users is because you have the command users and #GAG -1 in the alias. What happens is that MUD commands are slower to process than zMUD commands, so while it may seem like #GAG -1 should fire after users is entered, it's actually fired BEFORE the MUD receives the output.
You may need to get rid of the #GAG -1 and just make a trigger to #GAG "users".
At least, I'm pretty sure that's correct.
Charneus |
|
|
|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Sat Sep 11, 2010 5:17 am |
Matt, I don't understand what you mean about the ^
Do I put it with the #GA, or do I put it at the beginning of all of the trigger syntaxes?
and Char, I actually updated an older version of the code. I already removed the #GA -1 and it still keeps deleting upwards |
|
|
|
|
|