Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Goten4233
Newbie


Joined: 20 Mar 2003
Posts: 8

PostPosted: Thu Mar 20, 2003 9:58 pm   

Blank line from gag
 
Is it possible to make this go away? :)
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Mar 20, 2003 10:43 pm   
 
not that i know of, it happens from time to time. I think it has to do with the mud sending prompts.

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.55a
Zmapper Version 1.14

http://www.dartmud.com
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Mar 20, 2003 11:18 pm   
 
quote:

not that i know of, it happens from time to time. I think it has to do with the mud sending prompts.

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.55a
Zmapper Version 1.14

http://www.dartmud.com



There's a great way to remove them, if you don't mind removing ALL blank lines. Simply create a trigger to match a blank line and place a #GAG command in that trigger. Whenever you gag anything, this trigger will match the resulting blank line and will %99.999 seamlessly remove it without a lot of jumping text.

#trigger {^$} {#gag}

Most people prefer a bit more control over which blank lines get removed, and this can be almost as easily taken care of with state triggers. For instance, if you only want to remove the blank line between name and description in this text:

quote:

[Room name.]

Here is a standard MUD room. There's not much to see in this one. An object, an object, and an object are here.
This room is illuminated.

Some NPCs are here.
Some PCs are here.

Obvious exits: none.



You can create a 4- or 5-state trigger:

#trigger {~[*~]} {}
#cond {$} {#gag}
#cond {^%*$} {}
...

This will ONLY match that particular grouping of text, so there's not as much of a need to do any special parsing of room name and description to weed out false positives.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net