you'll have to use the string ~ char (character~symbol) parsing commands (upon your input string 'result' ):
some of this stuff is a bit fancy~advanced~complex... just a warning...
http://docs.textadventures.co.uk/quest/functions/ (scroll down to the very bottom, the section called 'String Functions' )
and you may want to put your (string) 'result' into a list and~or use the 'for' and~or use 'Instr~InstrRev', to cycle through your (string) 'result', enabling you to use the string~char commands in the link above.
http://docs.textadventures.co.uk/quest/ ... ength.htmlhttp://docs.textadventures.co.uk/quest/ ... match.htmlhttp://docs.textadventures.co.uk/quest/ ... isint.htmlhttp://docs.textadventures.co.uk/quest/ ... ouble.htmlhttp://docs.textadventures.co.uk/quest/ ... meric.html---------------------
the concept in basic terms:
for example, let's say we got:
(I use 'get input', but the same thing applies for your use of 'ask~tell' )
get input {
// I type in: abc def, ghi, jkl, and mno
// result = "abc def, ghi, jkl, and mno"
}
placement in string ('result'):
0123456789123456789123456789
abc def, ghi, jkl, and mno
a:0
b:1
c:2
(space):3
d:4
e:5
f:6
(comma):7
(space):8
g:9
h:1
i:2
(comma):3
(space):4
// you get the idea...
then you can use the String Function commands to work with your string ('result'). moving to right~left, replacing a slot with a different character~symbol, removing~adding a character~symbol~slot, starting on the left side, starting on the right side, starting in the middle, etc etc etc