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: Mon Oct 21, 2013 8:17 pm   

String List changing entered value
 
I'm trying to enter the following into a string list:

Code:
barrowNum=%PROMPT("", "Enter barrow number or sell");#IF %MATCH(barrowNum, "sell") { sellwightscrap;grind wights; } { setWightsPath @barrowNum;kill @target; }


But when I save it, the value is being changed to:

Code:
barrowNum="%prompt("""", ""Enter barrow number or 'sell'"");#IF %match(barrowNum, ""sell"") { sellwightscrap;grind wights; } { setWightsPath @barrowNum;kill @target; }"


In short, it's putting shoving in double quotes in seemingly random spots. Coincidentally, this also prevents this code from working at all.

The desired result is for this to prompt the user, asking which barrow to go to next. If the user inputs 'sell' it'll execute the alias 'sellwightscrap', otherwise, it'll use setWightPath move to the next place. Can I just not do this within a string list variable?
Reply with quote
shalimar
GURU


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

PostPosted: Tue Oct 22, 2013 4:58 pm   
 
usually it is better to write an #alias to prompt the user, then use the aliasname in the stringlist

or #RAISE an #EVENT
_________________
Discord: Shalimarwildcat
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