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

Combining two scripts

March 30 (8 years ago)

Edited March 30 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
There are two scripts that I'd like to use, but they are mutually exclusive (I think):

https://app.roll20.net/forum/post/2845333/slug%7D
&
https://app.roll20.net/forum/post/1408851/slug%7D

I'm wondering if it is possible to combine these two scripts so that I can roll on my tables with modifiers and have the tables automatically roll any dice expressions in them. I am also a pretty much complete noob to the API, javascript, and coding in general so the more simple and detailed the instructions, the better.

Thank you,

Scott
March 30 (8 years ago)
The Aaron
Pro
API Scripter
Ah.  Black Falcon asked me to integrate the functionality from Brian's script into my Recursive Tables script, and I plan to do it.  Right now I'm swamped in getting all my scripts into the new 1-click install system, but I'll be coming back to this at some point.

March 30 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Awesome Aaron,

That's good news. On a related note, do you know if it is possible to use Brian's script in a whisper (like a GM whisper) and/or in something like the repeating weapon's fields in the pathfinder sheet.
March 30 (8 years ago)
The Aaron
Pro
API Scripter
There doesn't seem to be a whisper option built in.  You can look at the help with:
!rt help
It might be listed there, but I think that feature isn't included.  It might not be too hard to add it.

As to putting it in the weapon fields of a pathfinder sheet, I couldn't say.  It is no different than any other API script in that regard though, so if you could try putting something that would have a visible output and see.  (!rt help would be a sufficient test.)
March 31 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
thanks, yeah it looks like it doesn't work that way, on the plus side the two scripts do work together otherwise already, just can't whisper call at all. Oh well.
March 31 (8 years ago)
The Aaron
Pro
API Scripter
Oh!  just noticed they both use the same command '!rt'.   You may be confusing "both execute" with "work together".  Recursive Tables is not going to respect the adjustments that Real Rollable Tables makes. =/
March 31 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Don't know, I only get one result, it calculates dice expressions in the result and appears to return a result equal to the expression I use to roll on the table.
March 31 (8 years ago)
The Aaron
Pro
API Scripter
Well, I suppose if it's working for you... =D