|
digits Beginner
Joined: 17 Jul 2004 Posts: 15
|
Posted: 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* |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
digits Beginner
Joined: 17 Jul 2004 Posts: 15
|
Posted: Mon Dec 13, 2004 7:16 pm |
Oh... never thought about that...
thanks |
|
|
|
|
|