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
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Mon Apr 11, 2005 5:21 pm   

Inserting a line break after a prompt.
 
I've got some triggers that fire during battle, but if I'm lagged (from a bash or something) when they fire things get smashed into one line. Here's kind of an example:
Code:
< 205h/205H 134v/135V >
< P: std > bash adventurer
Your bash at A well traveled adventurer sends him sprawling.

< 205h/205H 135v/135V >
< T: Sodir TC: excellent E: traveling EC: few scratches P: std >
A well traveled adventurer misses you with his hit.
You pound A well traveled adventurer very hard.

< 205h/205H 135v/135V >
< T: Sodir TC: excellent E: traveling EC: small wounds P: std >
A well traveled adventurer misses you with his hit.
A well traveled adventurer hits you.
You pound A well traveled adventurer very hard.
You pound A well traveled adventurer very hard.

< 197h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: few wounds P: std >
A well traveled adventurer misses you with his hit.
A well traveled adventurer clambers to his feet.
bash
You pound A well traveled adventurer extremely hard.

< 198h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: few wounds P: std > Your bash at A well traveled adventurer sends him sprawling.

< 198h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: few wounds P: std >
A well traveled adventurer misses you with his hit.
You pound A well traveled adventurer extremely hard.

< 200h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: nasty wounds P: std >
A well traveled adventurer misses you with his hit.
A well traveled adventurer staggers from your fearsome pound!

Cutting the middle part out, I'd like to turn this:
Code:
< 198h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: few wounds P: std > Your bash at A well traveled adventurer sends him sprawling.

Into this:
Code:
< 198h/205H 135v/135V >
< T: Sodir TC: few scratches E: traveling EC: few wounds P: std >
Your bash at A well traveled adventurer sends him sprawling.

The problem is that if I just have a trigger to insert a line break after the prompt, I get blank lines all over the place. Does anyone know how I can fix this issue? I know it's kind of a picky thing, but it sort of bugs me. Wink

Thanks.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon Apr 11, 2005 5:40 pm   
 
#TRIGGER {P: (%w)%s>%s(%w)} {#SUB {P:%1 > %cr %2}}

That should do it :D
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Mon Apr 11, 2005 10:34 pm   
 
Thanks. I'll give it a shot.
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Mon Apr 11, 2005 10:42 pm   
 
Seems to work just in offline testing with the text that I used above. I'll try it out later tonight and see if it works live. Thanks!
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