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


Joined: 29 Sep 2001
Posts: 75
Location: Israel

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Amfitrion
Wanderer


Joined: 29 Sep 2001
Posts: 75
Location: Israel

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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