Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Adding variables to pulldown lists and accessing tables - confused...

1501287732

Edited 1501287756
So I added all of the Art Objects from the DM guide and I am having an issue with my macro. I want it to ask the value of the Art Item(s), then how many items from that table to output. !rt /w gm &{template:default}{{name=Art Objects}}{{Art=?{Value?|25gp,[[?{Howmany|1}t[25gpArtObjects]]]|250gp, [[?{Howmany|1}t[250gpArtObjects]]]|750gp, [[?{Howmany|1}t[750gpArtObjects]]]|2500gp, [[?{Howmany|1}t[2500gpArtObjects]]]|7500gp, [[?{Howmany|1}t[7500gpArtObjects]]]}}} It is not working, though... Any ideas?
1501288254
The Aaron
Pro
API Scripter
Nesting Roll Queries is tricky business.  try getting a simpler one working, then apply what you learn to this one. ?{Value?|1,?{Howmany|1}|2,?{Howmany} } I think, if it's possible at all, it will require some HTML Entity substitutions.  Scott or Silvyre hopefully will drop by and solve this...
This is the result:
I'll try that
This should do it: !rt /w gm &{template:default} {{name=Art Objects}} {{Art=[[ ?{Howmany|1}t[?{Value|25gp|250gp|750gp|2500gp|7500gp}ArtObjects] ]]}}
1501289268
The Aaron
Pro
API Scripter
So clever!
You are amazing!!! Thank you!
You're very welcome! Happy rolling!