Well, you'd need to do something along these lines:

Code:
alias fastwalk {
  var %cnt = 1,%total = $len($1)
  while (%cnt <= %total) {
    if ($mid($1,%cnt,1) isnum) {
      var %number = $iif(%number,%number $+ $mid($1,%cnt,1),$mid($1,%cnt,1))
    }
    else var %direction = $mid($1,%cnt,1)
    inc %cnt
    if (%direction) {
      echo -a $str(%direction,$iif(%number,$v1,1))
      unset %number %direction
    }
  }
}


Now, that will turn:
2n4w6e

into:
nn
wwww
eeeeee

If you need them all separated, you can use:
Code:
alias fastwalk {
  var %cnt = 1,%total = $len($1)
  while (%cnt <= %total) {
    if ($mid($1,%cnt,1) isnum) {
      var %number = $iif(%number,%number $+ $mid($1,%cnt,1),$mid($1,%cnt,1))
    }
    else var %direction = $mid($1,%cnt,1)
    inc %cnt
    if (%direction) {
      if (!%number) var %number = 1
      while (%number) {
        echo -a %direction
        dec %number
      }
      unset %number %direction
    }
  }
}


That will echo each movement on separate lines. Just change the ECHO to whatever command you use to move around.


Invision Support
#Invision on irc.irchighway.net