|
Ashur Novice
Joined: 25 Jul 2011 Posts: 39
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|