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


Joined: 02 Nov 2002
Posts: 27
Location: USA

PostPosted: Fri Jan 09, 2004 9:13 am   

Adding more then one space...
 
My problem is relatively simple, but I don't know how to fix it. I would like to create an alias that simply has two statements in it, but the second statement should have about 30 spaces or so before it, depending on the size of the first. This is for muds where I want to have some gossips displayed on two lines. At any rate, I need to have pretty printing and non-one-line-commands for all the scripting I do, but if I have it on and try to add more then one space, zmud in turn reduces it to one. Is there a way I can avoid this?
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Fri Jan 09, 2004 10:47 am   
 
What I used to do to accomplish that is just alternate tildes and spaces... like:
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~... essentially "~ " is one extra space
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Fri Jan 09, 2004 11:15 am   
 
Not sure if it still works, but for illusions I used to put " " around the spaces, and it worked once... a long time ago.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Fri Jan 09, 2004 11:45 am   
 
Try: %format("&"%eval(%len(%2)+30)"s","%2")

This will return the second parameter of the alias, prepadded with 30 spaces in front.
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