Page 1 of 1

Comma in radio control in Input

Posted: Thu Apr 27, 2017 10:17 pm
by xavram
I've messed with encode/decode and strformat and I'm having no luck.

I have an input for the players that shows a list of radio options, based on text strings they enter for their characters (battle cries, for flavor). So for example, you might have...

Taste Steel!
Goram, guide my blade!
Please let this hit...

Now, the problem is, when I cycle through the strings saved by the token, if there's a "," in there, my list of buttons looks like...

Taste Steel!
Goram
guide my blade!
Please let this hit...

Obviously, not what I want! Is there some way to format possible commas so that I can use it this way?

Re: Comma in radio control in Input

Posted: Fri Apr 28, 2017 8:07 am
by aliasmask
I would use Wiki: replace() on the text and replace , with "&#44". It's similar to the html entities, but without the ending ; because that messess with Wiki: input() as well. You will have to surround the text with <html>text</html> as well.

Code: Select all

[H: battleCries = "Taste Steel!,<html>Goram&#44 guide my blade!</html>,Please let this hit..."]

Re: Comma in radio control in Input

Posted: Fri Apr 28, 2017 3:50 pm
by xavram
I will give that a shot AM, thanks for the tip!

Re: Comma in radio control in Input

Posted: Sat Apr 29, 2017 5:30 pm
by xavram
Had to do some tweaking to get it it to work in the full concept, but this got me over the hump...thanks!