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

Are there plans to upgrade macros to use JS?

I had an idea to cut down on lots of my players just sitting around while I fetch numbers from all their sheets, or have to ask them to fetch them for me so I can do secret rolls.

That was at 8 this morning, and I've spent 5 hours at it since then and keep hitting one wall after another as I find out / remember that you can't do one that, or can't combine multi-select statements with such n such statements, and so on.

Sigh. Frustrated. Very.

So: Any plans to replace the macro language is an actual programming language? The power at our fingertips would be incredibly freeing.


April 14 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

You have that power if you upgrade to Pro. This makes the API available which uses Javascript, and since that's a pro subscriber perk, I'm pretty sure it'll never be available at lower subscriber levels.

April 14 (5 years ago)

Edited April 14 (5 years ago)

That's only via sheets though right? I'm just after the ability to SLIGHTLY more complex stuff in macros. I've been here since roll20 was in beta and have dabbled in sheet making so I'm aware that the sheets use it.

I always assumed that macros would eventually graduate to full programming capabilities.

Edit: Also I don't think this is something sheets can do. 
I need a 3rd party to access multiple sheets at once to get their various attributes and abilities and do groups of rolls for all my players. With a touch more programming power I can do that in about 5 clicks. Without that i've got it down to about 25 clicks. (5 clicks each)

Edit 2: Without any of this what we're doing takes a couple of minutes each time.

April 14 (5 years ago)

Edited April 14 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Actually, at Pro you can use Javascript to automate a great many things: characters, tokens, chat, handouts, pages, decks, and a lot more. Others can speak more authoritatively on that, but here's a broad overview:

https://wiki.roll20.net/API:Introduction

April 14 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

No, its not only for sheets. Sheet workers are part of sheets, and use javascript, but they are available to everyone regardless of subscription level. If you use a sheet that has sheet workers in you can use them.

The API is much more powerful and flexible, and can interact with almost all of roll20 - thats why we have literally hundreds of scripts that can modify characters, tokens, maps, and more. 

ChatSetAttrs can modify every sheet in a campaign at once.

Theres group-initiative and group-roll scripts that can be programmed to do rolls for multiple characters at once.

TokenMod is the swiss army knife of roll20 scripts for tokens, enabling you to set up multiple tokens entire properties with a single click (seriously, if you have ever set up a character's default token, you'll want this script.)

There's many more. Honestly, scripts are the main reason for upgrading to Pro, and provide a lot of power.

This is what you could do with API pertaining to exactly what you're talking about.

April 14 (5 years ago)

Edited April 14 (5 years ago)

Interesting. I must have dropped out of the pro tier WAY before any of that then. Admittedly it's been many years since I looked at it, never even occurred to me to look at all that.
I keep looking for an upvote button like on reddit :D
@Patrick and @Gigs, cheers.