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
Keoteka
Beginner


Joined: 06 Sep 2004
Posts: 10

PostPosted: Sat Mar 19, 2005 9:25 am   

syntax problem - a trigger with #subst and %cr to work
 
ok here's what i'm trying to do....on my mud, when i spam rooms fast, it puts the roomname on the end of th prompt without a linefeed.

i.e.

* HP:Healthy MV:Strong > Bend in the Road

i want to substitute it with

* HP:Healthy MV:Strong >
Bend in the Road

here's what i got

#tri {(?) HP:(%w) MV:(%w) > (*)} {#subst {%1 HP:%2 MV:%3 > %cr %4}}

what i then get is

* HP:Healthy MV:Strong >
<space>Bend in the Road

How can I get rid of the space before the roomname? i can't figure the syntax. I used <space> cuz in forums it justifies left if i type a space before Bend.

Thanks
Keo
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sat Mar 19, 2005 9:45 am   
 
remove the space between %cr and %4 in your trigger so insteand of %cr %4, have %cr%4
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Keoteka
Beginner


Joined: 06 Sep 2004
Posts: 10

PostPosted: Sat Mar 19, 2005 9:54 am   
 
that doesn't work then i get * HP:Healthy MV:Strong > %crBend in the Road
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sat Mar 19, 2005 10:31 am   
 
how about %{cr}%4 or %{cr}%{4}
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Keoteka
Beginner


Joined: 06 Sep 2004
Posts: 10

PostPosted: Sat Mar 19, 2005 10:40 pm   
 
yup %{cr}%4 was the key, you rock! thank you!
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