Ok, here's the script I have so far:
#ALIAS strscript {#var tmpbtn 1;#TRIGGER {^~[%%s(%%d)~] (%*).} {#sub "";#math btnwidth %len( %%2)*5+%len( %%1)*5+40;#if (@btnwidth<150) {#var btnwidth 150};#EXEC %concat( "#BUTTON ", @tmpbtn, " {", %%1, " -- buy ", %%2, "} {buy ", @tmpbtn, ".} {} {} {} {} {} {Size} {", @btnwidth, "} {23} {} {} {} {} {} {} {} {_MapperRoom} {} {} {}");#add tmpbtn 1};list}
The problem I have can be demonstrated by this store output:
[Price ] Merchandise:
[ 10] a simple iron bolt.
[ 1] a long arrow of ash wood.
[ 6] a long, oak arrow.
[ 10] an iron shod arrow.
[ 25] a hard leather quiver.
[ 30] a bow of ash wood.
[ 35] an iron shod bow.
[ 500] a blue steel bolt.
[ 1300] a blue steel crossbow.
The long, oak arrow button shows up as:
6 -- buy a longoak arrow
Any ideas to fix this?