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

How do I nest results of an API that calls a rollable table called by a macro in a template?

1499109435

Edited 1499109512
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Here is my macro: !rtm Critical-Hit-Table And here is the  game
1499111571
The Aaron
Pro
API Scripter
If you're using the RecursiveTable API script and the table is named Critical-Hit-Table, the command would be: !rt [[1t[Critical-Hit-Table]]]
1499113423
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
What I want to do is put the result into a template so it looks good. 
1499113872
The Aaron
Pro
API Scripter
Anything after the !rt command will be presented back as the message after all substitutions are made: !rt &{template:default}{{name=Critical Hit!}}{{Location=[[1t[Critical-Hit-Table]]]}}
1499114370

Edited 1499114536
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Hrmmm not working here is the script I am using  !rtm My macro !rtm &{template:default}{{name=Critical Hit!}}{{Location=[[1t[Critical-Hit-Table]]]}}
1499114845

Edited 1499114878
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
figured it out only only command per line...so !rtm &{template:default}{{name=Critical Hit!}}{{Location=[[1t[Critical-Hit-Table]]]}}
1499116163
The Aaron
Pro
API Scripter
Yeah, I don't know anything about that script.   But if you got it working, sounds great. =D
1499116444
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
turns out I was just making something complicated.. :( that above did the same as this below &{template:default}{{name=Critical Hit!}}{{Result=[[1t[Critical-Hit-Table]]]}}
1499116753
The Aaron
Pro
API Scripter
I wondered about that, but I didn't know what !rtm was supposed to do...  Nice that you sorted it out though!
1499118868
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
yea I thought it might be useful, alas no