Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: 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?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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