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

Drop down menu macro and in-line table rolls

I am attempting what I thought was a simple macro, select the season from a drop down list - the choice prompting a roll for one of four random tables. The result I get, regardless of table selected, is a whisper formatted as " Weather 0". The tables are valid and populated. Does anyone see a misstep in my formatting? Thanks. !rt /w gm &{template:default} {{name=Weather}}{{Weather = [[?{Season |Spring, [[1t[Weather-Spring]]] |Summer, [[1t[Weather-Summer]]] |Autumn, [[1t[Weather-Autumn]]] |Winter, [[1t[Weather-Winter]]]}]]}}
1489758935

Edited 1489758947
I don't think it currently works with /w gm . I know someone is working on that limitation, but as of now it won't work.
1489762135

Edited 1489762508
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ed's got the right of it regarding the whisper. Currently recursive tables cannot respect slash commands and roll templates at the same time, roll templates override slash commands currently. As for the 0 showing up after the weather, this is most likely due to a difference in how the API evaluates inline rolls vs how the chat evaluates inline rolls. Both of these issues will be fixed in the coming update for RT. I swear it really does exist, Aaron just needs to finish it. EDIT: Actually, I think you do have an error in your macro. You've double nested the rolls for the tables. I'd have to check the script, but I'm not sure how that will affect it's ability to properly expand a table roll. As part of fixing this, you can also simplify your roll query. Try this weather field: {{Weather = [[1t[Weather-?{Season|Spring|Summer|Autumn|Winter}] ]]}}
Thank you Scott. That simplified query was eluding me. I appreicate the help. 
1489762801
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Np, let me know if it works