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 .
×
May your rolls be chill this holiday season!
Create a free account

Best way to prompt for a choice of location?

Hi, I'm essentially trying to prompt players and have there be an easy, graphical way for them to give me a location on the map in pixels, with or without another token. My current ideas for how to do this are: If possible, create a callback function for a ping from a player, which returns the top and left of the ping. Create empty, blank, clickable tokens in every tile any time I want to prompt them. (aka The Worst Idea I've Ever Had) Is there any way to do #1, or is there a better way to do this than #2? Thanks!
1499132654
The Aaron
Pro
API Scripter
Well, depending on the situation, 2 isn't THAT bad. How about creating a marker on the map, and then have them move it where they want to go and trigger (either by running a command with it selected, or deleting it and catching the on:destroy event).
1499153017
Ulti
Pro
Sheet Author
API Scripter
For this kind of situations, I use an empty character associated with a token representing a target. The empty character is controlled by all players, so that anyone can drag it and move it around on the map. In addition, when the token is used as a target for the API, I automatically delete it.