That script is mainly necessary for doing special grouping of images. If you really want a script that does this, it's probably better to step back and design one from scratch. Let's chat through how you'd like to use it and see what we can come up with. I've not played 40k, but I used to play Warhammer. Here's what I would likely do, based on what I remember: 0. On startup, if it doesn't exist already, the script creates a character named Cannon Dice (or similar) in all player's journals abs controlled by all players. It also creates a token and asks the GM to assign it to that character. (The API can't set default tokens yet). 1. When deviation is needed, a player drags that character in and places it's token at the target spot. Then clicks the Roll Deviation token action. 2. Various animations could be done here, but at a minimum, the token could be changed to point the direction and show the distance. Advanced versions might draw the measurement out, or prompt for the radius and draw that as well.