|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Fri May 10, 2002 9:41 pm
Joining two lines |
I have a prompt that consists of two lines.
How can I join the lines so the prompt will only be on one line?
Example of current prompt:
HP: 100% CP: 100%
XP: 123123
I want it to look like this:
HP: 100% CP: 100% XP: 123123
Thank you.
- Amfitrion. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri May 10, 2002 10:29 pm |
quote:
I have a prompt that consists of two lines.
How can I join the lines so the prompt will only be on one line?
Example of current prompt:
HP: 100% CP: 100%
XP: 123123
I want it to look like this:
HP: 100% CP: 100% XP: 123123
Thank you.
- Amfitrion.
Check out the #SUBSTITUTION command, but it goes something like this:
#trigger {line1 stuff here$line2 stuff here} {#sub {line1 line2}
li'l shmoe of Dragon's Gate MUD |
|
|
|
Amfitrion Wanderer
Joined: 29 Sep 2001 Posts: 75 Location: Israel
|
Posted: Fri May 10, 2002 11:13 pm |
You wrote:
#trigger {line1 stuff here$line2 stuff here} {#sub {line1 line2}
The $ sign in the middle, is it multiline trigger?
- Amfitrion. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat May 11, 2002 11:00 pm |
quote:
You wrote:
#trigger {line1 stuff here$line2 stuff here} {#sub {line1 line2}
The $ sign in the middle, is it multiline trigger?
- Amfitrion.
Yep, the $ is a special symbol used to denote the end of a line. As a further note (if you did not already realize), you'll have to precede every % with the ~ so Zmud won't get confused (I'm not sure if it will in this case, but better safe than sorry, right?)
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|