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
Ziandrox
Newbie


Joined: 08 Feb 2002
Posts: 8

PostPosted: Fri Feb 08, 2002 9:14 pm   

Adding multiple lines in a memo field with script
 
I have a memo field in my equipment database. I was wondering how I could add multiple lines to it by scripting so not everything is on the same line. Is there a CR, LF, NL, or some other type of command that works with text and not MUD output (Saw #CR). If not, have any suggestions for something I should use instead...An item comes out like:

Object 'anthrox troll sergeant whip' is type weapon
Extra flags: glow hum magic auctioned.
Weight is 6, value is 3500, level is 88.
Worn take wield.
Weapon type is whip.
Damage is 10d18 (average 95).
Damage type is whip.
Affects hit roll by 7.
Affects damage roll by 7.
Affects intelligence by 3.
Affects skill whip by 10.


I just have all the affects (Affects (*).) get added to a string list variable called ItemAffects. Any help would be appreciated.
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Sat Feb 09, 2002 2:02 am   
 
I think you want the %crlf function.

#show Test %crlf Test
Outputs:
Test
Test
#show Test%{crlf}Test
Outputs:
Test
Test

- Charbal

 - Charbal
Reply with quote
Ziandrox
Newbie


Joined: 08 Feb 2002
Posts: 8

PostPosted: Sat Feb 09, 2002 10:44 am   
 
Works perfectly. 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