Is there a way to do something like the PROPS option in an input() box, but it displays a list of checkboxes (ideally with text and images) and creates the PROPS variables?
Goal:
Take in list of selected tokens
Present tokens (with names and pictures) to player with checkboxes. Allow them to select zero, one, or many of the tokens.
Get the results of this.
Current status:
Confused
I can get the list of selected tokens, and via a FOR loop and some HTML in the CHECK labels I can build an input() that displays each token by name and picture, with checkboxes. That all works. eval() is being difficult and won't let me check the value of ... anything, really.
Code: Select all
[h:count0 = "Q"] [h:count1 = "R"][h:countOfTokens=2][for(x,0,countOfTokens): eval("count" + string(x))]
Instead, it prompts me for the values of count0 and then count1, and prints out what I entered, if anything. SO apparently this isn't a thing? It's bizarre, because Eval is clearly putting together the string correctly, and is clearly understanding that it's a variable... but can't figure out that it's an EXISTING variable.