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

outputting a roll query?

May 24 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Just wondering if it is possible to output a roll query to chat using sendChat and have it pop up for people.
May 25 (8 years ago)
The Aaron
Pro
API Scripter
Not really. The closest you can get is outputting an API button they can click for a convenient prompt. 
May 25 (8 years ago)

Edited May 25 (8 years ago)
Couldn't you just use the ability button for that and having everyone click it?
May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
cool, thought that might be the case, ah well.
I know it's not  exactly what you want, but it's the closest that I can think of.
May 25 (8 years ago)

Edited May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yeah, went with a bunch of API buttons instead. Not as clean looking as being able to output a dropdown pop-up would be, but oh well. Can't do, or rather it wouldn't be preferable, the roll query in a macro because I'm doing a configuration dialog that has about 20 settings, expecting users of the script to make their own roll query for that is a little crazy.

Next question: Is there somewhere I can find images for all of the status-marker options?
You mean the little dots and such that you can put on the tokens?
May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yeah, the dots, red X, Aura, bleeding eye, web, etc
I know that there's a thread in the Suggestions section about being able to change/customize those... so I'm assuming that it's not possible right now to gain direct access to those and alter them.
May 25 (8 years ago)
The Aaron
Pro
API Scripter

Scott C. said:

Next question: Is there somewhere I can find images for all of the status-marker options?
TokenNameNumber has code for displaying them using Roll20's native image.

May 25 (8 years ago)

Edited May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Woot, Awesome Aaron. That is exactly what I'm looking to do.
Of course there would be an API that can do that. 
May 25 (8 years ago)

Edited May 25 (8 years ago)
The Aaron
Pro
API Scripter
Scott C. said:
Woot, Awesome Aaron. That is exactly what I'm looking to do.
Feel free to hit me up on Gitter if you have any questions about it.  It's a little arcane... =D
May 25 (8 years ago)
The Aaron
Pro
API Scripter

qwerty4132 said:

Of course there would be an API that can do that. 

The API does have some pretty cool things. =D
May 25 (8 years ago)

Edited May 25 (8 years ago)
Maybe a little too much... SKYNET WILL TAKE OVER!!! lol

And I don't have Gitter.
May 25 (8 years ago)

Edited May 25 (8 years ago)
The Aaron
Pro
API Scripter

qwerty4132 said:

Maybe a little too much... SKYNET WILL TAKE OVER!!! lol

And I don't have Gitter.

Sorry, I was actually replying to Scott with that message (adjusted to make that obvious).  Gitter is web based and tied to github, so easy to get onto.  Definitely feel free to chat me there if you want of course.  My channel is mainly for talking about API and Sheet Workers with other developers, but we'll talk about anything. =D  https://gitter.im/shdwjk/Roll20API
May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yeah, I think I'll be hitting you up on Gitter tonight or at some point in the next week or so. I'm actually not going to be scripting too much in the next few days as I've got a bunch of experiments to get caught up on and family's coming into town. And yeah, that is fairly arcane, although I think I have a general understanding of what you're doing; essentially cropping the master statusmarker image for each one. I'll dig into more next week.
May 25 (8 years ago)
The Aaron
Pro
API Scripter
Yup, that's the basics.  The circles and the X are rendered one way, the images are in an image strip and accessed by what's called a CSS Sprite.  You can find lots of details about that online, but definitely to the chats!  =D
May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, was gonna ask about the X since I didn't see it (although honestly, I probably won't worry about it since I highly doubt anyone is going to want to use the X for marking a destination in Page Navigator)
May 25 (8 years ago)
The Aaron
Pro
API Scripter
Oh, I don't know... "X marks the spot" comes to mind... =D
May 25 (8 years ago)
The Aaron
Pro
API Scripter
X is treated differently in several ways (can't have a number on it).  TNN doesn't actually use the X either.
May 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
doh! I'm an idiot. Too locked into The X marking dead enemies using the HealthTint script.
May 25 (8 years ago)
The Aaron
Pro
API Scripter
=D