I want gag MUD channels from main world window (for example <newbie>, <chat>,...) to separated windows.
How can i do that in VBScript?
Thanx RedHat
Blah ooc's 'yadda yadda'
Example ooc channel.
Trigger:* ooc's '*'
send: %1 ooc's '%2"
checked: Enabled, omit from output
On the right side of the trigger part it lets you change where you send into to, you put it to notepad new
mmh, i'm not sure, but won't this method opens every time the trigger matches a _new_ notepad window ?
i think you have to send it to "notepad (append)"
am i wrong ?
but going on by this method, there's a more complexiv problem. what will be done if you receive a message from the MUD which is multiline, like:
Blah ooc's 'yadda yadda yadda yadda yadda
yadda yadda yadda yadda '
the trigger will yust match the first line and sent just the first line to notepad. up to now i fixed this problem by setting a variable, like "varTextFollowing" to 1 in the first trigger, which catches the "* ooc's *" and gets the first line in another variable, like "varText", i will do so with every following line (concatenating the text in the variable "varText" as long as my variable "varTextFollowing" is set to 1) until i get a line with the prompt or a " " in the beginning (i think this is different in every MUD). i could't use a CR or LF because my MUD sends it on every line, grmpf, otherwise it would be easier. after i receive the "end-sequence" like my prompt or " " i send everything to notepad (append) and reset my first variable "varTextFollowing" to 0, which indicates that the text has ended.
any other advice ?
Kerrigan
You are right, append is the way to go.
You could do without the variable, provided the first trigger simply enabled the second one (eg. one matching *). The second one could use world.AppendToNotepad to append its text to the same notepad window.
Also have a third trigger with a lower sequence number than the * trigger, that matches on the prompt line or the line with a space at the start, and use that to disable the second trigger.