|
Keoteka Beginner
Joined: 06 Sep 2004 Posts: 10
|
Posted: 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 |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
Keoteka Beginner
Joined: 06 Sep 2004 Posts: 10
|
Posted: Sat Mar 19, 2005 9:54 am |
that doesn't work then i get * HP:Healthy MV:Strong > %crBend in the Road
|
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
Keoteka Beginner
Joined: 06 Sep 2004 Posts: 10
|
Posted: Sat Mar 19, 2005 10:40 pm |
yup %{cr}%4 was the key, you rock! thank you!
|
|
|
|
|
|