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?
Comma in radio control in Input
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Re: Comma in radio control in Input
I would use Wiki: replace() on the text and replace , with ",". 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, guide my blade!</html>,Please let this hit..."]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Comma in radio control in Input
I will give that a shot AM, thanks for the tip!
Re: Comma in radio control in Input
Had to do some tweaking to get it it to work in the full concept, but this got me over the hump...thanks!