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

[Request] Script to verify results in table

Hello guys, does anyone could create or help me create a script that reproduces the results in the table below? Works as follows, each table row (-7 to 20) refers to the characters skill level and the colored columns are the possible outcomes in 1d20 categorized by color (green, white, yellow, orange, red, blue and gray ). What the script needs to do is check the ability of the value in the character sheet and use this value as a test column, rolls 1d20 and check that column which the result (color) obtained.
1476794978
The Aaron
Pro
API Scripter
I don't suppose you have that information in a google sheet or similar, do you?  What game is this for, there might be a script already?
The name of the game is Tagmar is a Brazilian rpg. I have a table in google: <a href="http://www.tagmar2.com.br/wiki/Default.aspx?PageName=Tabela%20de%20Resolu%C3%A7%C3%A3o" rel="nofollow">http://www.tagmar2.com.br/wiki/Default.aspx?PageName=Tabela%20de%20Resolu%C3%A7%C3%A3o</a> Here the wiki this system <a href="http://www.tagmar2.com.br/wiki/default.aspx" rel="nofollow">http://www.tagmar2.com.br/wiki/default.aspx</a>
Aaron, sorry messed up, I can make the table on google sheet this afternoon, okay?
1476798712
The Aaron
Pro
API Scripter
Any text based format would be fine. &nbsp;CSV, or even a web page with it on there. &nbsp;Don't go to a lot of trouble. &nbsp;It would be useful if you had it, but it's not worth the time to make it if you don't.
Thiago, I hid your post to prevent others from tampering with spreadsheet. Since Aaron is a Mod, he can still access the link.
1476812178
The Aaron
Pro
API Scripter
And has. =D &nbsp;Thanks Silvyre. Thiago, this should work fine. I'll see what I can whip up.
Ok!
1476838206
The Aaron
Pro
API Scripter
See how this works for you: &nbsp; <a href="https://app.roll20.net/forum/post/4131773/script-t" rel="nofollow">https://app.roll20.net/forum/post/4131773/script-t</a>...
It worked very well
Aaron, could you help me with this script you did? I would like to change the values that appear in the colored box to: 0 = F 1 = E 2 = 25% 3 = 50% 4 = 75% 5 = 100% 6 = 125% 7 = C I imagine I should just swap these values for what I like on each line from -7 to 20, correct?
1478702428
The Aaron
Pro
API Scripter
That's close but not quite right. &nbsp;I've updated the script with your labels: The numeric result is still available via the hover text. &nbsp;v0.1.1 is pushed to the repo and should get merged soon but you can get it early by going to:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/Ta" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Ta</a>... Happy Rolling!
Very good! Your work is excellent! I made a modest contribution to patreon, it's not much but it's a way to show my thanks beyond words! Hugs!
1478716486
The Aaron
Pro
API Scripter
Thanks! &nbsp;Happy Rolling and let me know if you need anything else! &nbsp;=D
Hello Aaron, it's not really a script question but could you help me with this topic: <a href="https://app.roll20.net/forum/post/4197877/how-to-change-the-values-of-a-list-based-on-other" rel="nofollow">https://app.roll20.net/forum/post/4197877/how-to-change-the-values-of-a-list-based-on-other</a>
1478823070
The Aaron
Pro
API Scripter
That's a quite complicated question for which I don't have a ready answer. &nbsp;Probably better if the CSS Gurus can answer it.
Aaron, estou usando os seguintes comandos no script, porém, os dados 3d não são rolados, algum motivo? !tagmar 1 [[1d20]]
1479416369
vÍnce
Pro
Sheet Author
I don't think rollable tables trigger 3D dice even with embedded rolls. ;-(
1479418479
The Aaron
Pro
API Scripter
Vince said: I don't think rollable tables &nbsp;API commands trigger 3D dice even with embedded rolls. ;-( As Vince hints at, API commands with inline rolls don't result in 3d dice rolls.
Ok!
1479419404

Edited 1479419611
vÍnce
Pro
Sheet Author
The Aaron said: Vince said: I don't think rollable tables &nbsp;API commands trigger 3D dice even with embedded rolls. ;-( As Vince hints at, API commands with inline rolls don't result in 3d dice rolls. hmm. I just tried adding [[1d20]] at the end of the text on one of my rollable tables and it didn't roll 3d dice either...? &nbsp;Must test further. update: I'm not seeing 3d dice with my non-API tables either.
1479420390
The Aaron
Pro
API Scripter
Vince, are you thinking about Recursive Tables? When I have an inline recursive table on the same chat line as an inline 1d20, it rolls the 20 3d fine.
1479422420
vÍnce
Pro
Sheet Author
My bad Aaron. &nbsp;I grabbed the post mid-thread and did not read from the top. &nbsp;;-(
Hello Aaron, may I ask for another script? In the RPG Tagmar we have two characteristics Physical Resistance and Resistance to magic and its resolution depends on a table that works as follows: 1 - The player is always the passive source that is resisting with one of the two resistances (physical or magic) 2 - the active source is always the attack the player is receiving (poisons, spells, etc ...) 3 - the player needs to cross the active source with the passive source to find the target number 4 - with the target number it rolls 1d20 and must achieve a result greater or equal to the target number <a href="https://docs.google.com/spreadsheets/d/1hSmXjjHnOBCLgkZJgovFhzuMDc_wtfVUWYrw9_ZHQyE/edit?usp=sharing" rel="nofollow">https://docs.google.com/spreadsheets/d/1hSmXjjHnOBCLgkZJgovFhzuMDc_wtfVUWYrw9_ZHQyE/edit?usp=sharing</a>