Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ interesting question...
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zendu
(66 posts) Bio
|
Date
| Tue 10 Feb 2004 09:01 AM (UTC) |
Message
| Okay I have another seeminly easy question...
Im working on a system to gag the majority of my text...
I recive this message on every attack
You have recovered balance on your right arm.
You have recovered balance on your left arm.
I whould like to remove one of them, however, the order is random! And I need to remove the FIRST ONE ONLY
The only thing i can think of whould be
You have recovered balance on your (right|left) arm.
SetVariable "arms", CInt (GetVariable ("arms")) + 1
and if arms count =0 dont output
if it = 1 output, and reset to 0?
Just a thought, if this is impossible/ exessivly diffucult ill give up on it, not to important
|
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Gore
(207 posts) Bio
|
Date
| Reply #1 on Tue 10 Feb 2004 07:30 PM (UTC) |
Message
| Out of curiousity, why do you wish to remove only one of them? | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #2 on Tue 10 Feb 2004 08:15 PM (UTC) |
Message
| Just have a trigger which matches either of them, then have that trigger toggle the omit_from_output flag on the trigger. That way each match, youll turn on/off omiting.
However, If they always appear together, why does it matter which one is first? Im sure it matters somehow, but if it didnt, you could just always gag one or the other. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 10 Feb 2004 11:07 PM (UTC) |
Message
| Make a trigger that matches either message:
You have recovered balance on your (right|left) arm.
This trigger sets a flag to say "message displayed". eg.
messagedisplayed = 1
Have another trigger with a higher sequence that matches everything else. This second trigger clears this flag.
messagedisplayed = 0
Thus, the first message will be displayed, and because the trigger is a lower sequence the other trigger will not be processed. However any *other* message will cause the flag to be cleared, ready for next time.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #4 on Sat 14 Feb 2004 03:31 PM (UTC) |
Message
| The Problem arises with the fact i have 3 simultanius attacks... so i should have 3 triggers like this?
(Ahh, I am truly sorry, but I do not see anyone by that name here.|I do not recognize anything called that here.|You detect nothing here by that name.|You cannot see that being here.|Nothing can be seen here by that name.)
messagedisplayed = 0
(Ahh, I am truly sorry, but I do not see anyone by that name here.|I do not recognize anything called that here.|You detect nothing here by that name.|You cannot see that being here.|Nothing can be seen here by that name.)
message displayed = 0
seq 200
(Ahh, I am truly sorry, but I do not see anyone by that name here.|I do not recognize anything called that here.|You detect nothing here by that name.|You cannot see that being here.|Nothing can be seen here by that name.)
messagedisplayed = 0
seq 300 |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sat 14 Feb 2004 10:09 PM (UTC) |
Message
| Huh? Three identical triggers? No, if you check "regular expression" then the trigger matches things between the | symbols.
eg.
Match: (dog|cat|fish)
This matches one (any) of those three words. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zendu
(66 posts) Bio
|
Date
| Reply #6 on Mon 16 Feb 2004 12:01 AM (UTC) |
Message
| Okay, lets look at it this way, I have 3 attacks, so when i try to attack something that isnt there it says (every time!!)
I cannot see that being here
I cannot see that being here
I cannot see that being here
this is annoying, however i do need to see one, therefore, i need to find a way to gag two of them |
God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url] | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #7 on Mon 16 Feb 2004 03:35 AM (UTC) |
Message
| OK, let's clarify what you want here. Say you got these messages:
I cannot see that being here
I cannot see that being here
Ahh, I am truly sorry, but I do not see anyone by that name here.
I do not recognize anything called that here.
You detect nothing here by that name.
You cannot see that being here.
Nothing can be seen here by that name
I cannot see that being here
Do you:
- Want them *all* suppressed, except the first one?
- Want consecutive identical ones suppressed?
Is there something that normally follows a group of those messages (eg. your prompt)?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
20,084 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top