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


Joined: 17 Jul 2004
Posts: 15

PostPosted: Sun Dec 12, 2004 10:26 am   

String manipulation
 
i play aard with a special command for speedwalking 'run' which is solved in an earlier post.
now to the tricky part, if theres one or more doors in the way it barfs...
what i need is to manipulate the string containing the sw (which is fetched from my map), when i use shortname of room.

example:
Code:
#sa %pathcompress(%right(%walk(questor),1))
outputs: .(open south;s)se;.7s2w2s

what is need is a way to manipulate it to a working speedwalk...
Code:
open south;run sse;run 7s2w2s

anybody have any ideas? i've tried regex variations, but i'm not good at all with it, my regex's break when there isn't a door there... *sigh*
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Dec 13, 2004 10:52 am   
 
I think there is a check box in the mapper settings under Strings and Doors that lets you not include the door commands in %walk results.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
digits
Beginner


Joined: 17 Jul 2004
Posts: 15

PostPosted: Mon Dec 13, 2004 7:16 pm   
 
Oh... never thought about that... Embarassed
thanks Wink
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