|
game-shark Newbie
Joined: 04 Feb 2002 Posts: 2 Location: USA
|
Posted: Mon Feb 04, 2002 3:13 am
Blank Lines |
I'm taking a lot of information from my mud to put into child windows. Things like stuff my auction channel says. How do I make it get rid of the blank lines that are left behind when I gag the text? Or is there a better way than gagging it?
For example:
#TRIG {AUCTION:} {#cap auction;#gag}
Any ideas? Sry if this has been discussed before, I'm new here.
-The one really running the show. |
|
|
|
RaZ Beginner
Joined: 04 Feb 2002 Posts: 13 Location: USA
|
Posted: Mon Feb 04, 2002 4:58 am |
Im not sure if you want the auction information saved or not, but if you don't most muds offer a command to turn certain channels off. Its usually on the line of just type channel, if that dosent work then try help channel. But, if you want to save the info from that channel I don't know what to say.
RaZ |
|
|
|
Reddytedy Apprentice
Joined: 13 Oct 2000 Posts: 114 Location: USA
|
Posted: Mon Feb 04, 2002 5:10 am |
Try using #WINDOW command..
I had the same problem till I used this setup
Pattern: ^ ~* (*) joins the adventure.
Command:
#GAG
#WINDOW Events "%1 arrived. ~[" %time( tt) "~]"
I don't have the blank lines anymore
Alan |
|
|
|
game-shark Newbie
Joined: 04 Feb 2002 Posts: 2 Location: USA
|
Posted: Mon Feb 04, 2002 5:51 am |
Ok, sorry, I guess that I didn't really make that very clear. I have a main window, and it shows a lot of text. So, what I'm trying to do it to kind of break it up so that there isn't so much scroll. So, to start I'm taking all the auction information and #gag ing it so that becomes black, so I don't see it, and then #cap ing it into a different window. This works because this leaves mainly important stuff in my main window. I'm also doing this for my clan talking, and a few other things. The problem is that I end up with lots of blank lines where I have #gag ed something. So, is there any way to get rid of the blank lines? In short, I want to cut text from my main window, and put it into another window, without leaving behind a lot of blank lines in my main window?
I'm not the brightest with zmud, so you may have to be kinda specific.
I think what you are talking about Reddytedy might be what I want, I just don't really understand what are you are saying. Sorry.
Thanks, again.
-The one really running the show. |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Mon Feb 04, 2002 7:11 pm |
Heres what i do:
TR (^$} {#GAG;#T- gagblank} gagblank
then just append T+ gagblank to any place that you have a #GAG in your capture triggers, like this:
#TR {AUCTION:} {#cap auction;#gag;#T+ gagblank}
That should do it *nods self*
dacheeba |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 04, 2002 10:36 pm |
quote:
Heres what i do:
TR (^$} {#GAG;#T- gagblank} gagblank
then just append T+ gagblank to any place that you have a #GAG in your capture triggers, like this:
#TR {AUCTION:} {#cap auction;#gag;#T+ gagblank}
That should do it *nods self*
dacheeba
Basically the same thing, but check this out:
#ALIAS Gag {#GAG;#T+ Blank}
Instead of having to write #GAG;#T+ tBlank a every time you wish to gag something, you simply call the alias.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Tue Feb 05, 2002 12:26 am |
But then you'd have problems if things came concurrently. e.g.,
* HP:Healthy MV:Fresh >
PlayerX auctions 'blah blah'
PlayerY narrates 'on come'
* HP:Healthy MV:Fresh >
would turn into
* HP:Healthy MV:Fresh >
PlayerY narrates 'on come'
* HP:Healthy MV:Fresh >
in the client window. So you might change the trigger in your gagblank to #trigger {%*} {#if (%trigger =~ "^$") {#gag};#t- gagblank}
However, problems crop up if only auctioning is happening:
* HP:Healthy MV:Fresh >
PlayerX auctions 'blah blah'
* HP:Healthy MV:Fresh >
turns into:
* HP:Healthy MV:Fresh >
* HP:Healthy MV:Fresh >
So you could code in another exception for that. Even when you do get everything worked out, the up-and-down jerking makes it nearly hideous to look at with all the #gagging.
Pretty much the only way to do it cleanly is to play with the text before zMUD has a chance to display it. That's why I made (shameless plug) my (WoTMUD-specific... maybe not in the future if there is enough interest) CommsParser plugin (http://pub59.ezboard.com/fwotmud60802frm6.showMessage?topicID=122.topic ) to gag/capture/whatever for all the comm channels in the game.
- Charbal |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Tue Feb 05, 2002 4:46 am |
Well ive use the gagblank for a good time now, and never had it once gag a blank line that it wasnt suppose to, and I have a SLOW 7 year old comp...*shrug* as you can see you have many options available, go with what works best for you
|
|
|
|
|
|