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
Out of curiousity, why do you wish to remove only one of them?
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.
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.
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
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.
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
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)?