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


Joined: 24 Apr 2007
Posts: 4

PostPosted: Tue Apr 24, 2007 10:20 pm   

Want to reformat into a stringlist
 
Hi,
Im very new to this scripting and have been able to tackle most of my issues on my own except this one. I am very stumped. This is what I would like to be able to do.

#VAR toStore %pathfrom( ,250)

this of course stores a path to toStore in this format .2ne4sw

what I would like to do is have it converted into a stringlist so it looks like

n
n
e
s
s
s
s
w

Can anyone help me out with this? Would very much appreciate it. Thanks.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Apr 24, 2007 10:23 pm   
 
Luckily for you, there's a simple function that'll do this for you.

#var toStore %pathexpand(%pathfrom(,250))
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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