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

Using pictures outside of chat as buttons for macros

So let's say, hypothetically, i want to make an icons for skills like in Pic - 1. (Just like in one indie game about stressed up people killing an eldrich god) Pic - 1 And  let's say, hypothetically, i press the button on the "pwoord", and it does cool stuff (basically like macros). Pic - 2 It doesnt have to be an entire "kit" for a character. It can be a single picture that i can press to do stuff. Pic - 3 Pic - 2 ----------------------------------------------------------------- Pic - 3 And  let's say, hypothetically,  i'm extremely dumb  i'm not too good at API. Would i be able to do someting like that at least partially?  I understand that it can be simply impossible, but i have faith in the Machine God and his majesty
1702048061
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Zer0Storm! As described, this is not possible at the current time. It is possible that Map Pins (a feature at some unknown level of development) may get a feature like this. On-VTT buttons that you can activate by clicking on them is not something the API can react to. There were some early attempts at "twitch buttons", where the API could react to a user moving them, even slightly, instantly moving them back, but activating some code. But they were cumbersome and felt unnatural. The only other real alternatives are macro control bar and token action bar buttons. These can accept emoji in their titles if you want a graphical look. But as far as I know, these are the main alternatives to what you seek.
Well, seems like even The Machine God has flaws. Thanks for clearing that up, or else i would be run far far away to the rabbit hole and sit here for hours to find the answer. At least i can press on macros and put some pic in there to spice things up One day i will be dumb enough to actually try and program something like this, but as far as i know if developers cant, so do i 
1702055904
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Heh, I'm not a developer. But on-VTT buttons have been requested before and the developers are aware of the request. It did occur to me that one thing you can do is create pressable buttons in handouts. These would function something like floating palettes. There are a great number of scripts that do this.
1702061773

Edited 1702061814
Gauss
Forum Champion
Keith, Might it be possible to use a Mod (API Script) where you move a token to the spot, that activates a message into chat?  Something like the teleport script but with a different output?
1702077215
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yes, this is possible. The API recognizes on:change  for graphics, and the x-y position are attributes that can be read when a change is detected. The "It's a Trap" script uses this, I think.