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?

1464121126
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.
1464148334
The Aaron
Pro
API Scripter
Not really. The closest you can get is outputting an API button they can click for a convenient prompt. 
1464183822

Edited 1464184566
Couldn't you just use the ability button for that and having everyone click it?
1464185753
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.
1464188825

Edited 1464189041
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?
1464189769
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.
1464190469
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.
1464190597

Edited 1464190903
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. 
1464190972

Edited 1464191422
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
1464191003
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
1464191146

Edited 1464191204
Maybe a little too much... SKYNET WILL TAKE OVER!!! lol And I don't have Gitter.
1464191534

Edited 1464191581
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). &nbsp;Gitter is web based and tied to github, so easy to get onto. &nbsp;Definitely feel free to chat me there if you want of course. &nbsp;My channel is mainly for talking about API and Sheet Workers with other developers, but we'll talk about anything. =D &nbsp; <a href="https://gitter.im/shdwjk/Roll20API" rel="nofollow">https://gitter.im/shdwjk/Roll20API</a>
1464191752
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.
1464192075
The Aaron
Pro
API Scripter
Yup, that's the basics. &nbsp;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. &nbsp;You can find lots of details about that online, but definitely to the chats! &nbsp;=D
1464192419
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)
1464192540
The Aaron
Pro
API Scripter
Oh, I don't know... "X marks the spot" comes to mind... =D
1464192620
The Aaron
Pro
API Scripter
X is treated differently in several ways (can't have a number on it). &nbsp;TNN doesn't actually use the X either.
1464192630
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.
1464192836
The Aaron
Pro
API Scripter
=D