|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: Fri Sep 13, 2013 11:09 pm
Separator Character not working in %pop |
The separator character is set as the default character, I haven't changed it.
If I type into the command line "n;w", cmud parses it out and sends "n" and "w" as two separate commands (moving my character once north and once west).
However, I set up a script to follow a specific path. The trigger uses %POP(x) to pop the next set of directions off the string list variable. If I put "n;w" in a row of the string list, when cmud %pop's it, it sends "n;w" as a single command to the mud. Any one ever run into this and know how to fix it? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Sat Sep 14, 2013 4:11 am |
%pop will treat the results as a verbatim string and not process it further
to force it to process the results use:
#EXEC {%pop(var)} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: Sat Sep 14, 2013 5:14 am |
Oh my g....I feel so dumb. I knew that. I really did. Thank you shalimar, you rock.
|
|
|
|
|
|