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

Looking for a fill tool api

When making maps one of the most repetitive time consuming tasks is filling in the floors. Copying a thousand identical floor tiles. You know what I mean.  So has anyone had the idea to just make an api that automatically fills a space with copies of whatever image is currently copied? That way I only have to establish the room walls and the api can fill the floor in for me.
If you are going to composite maps out of many tiles, i advice to composite them in a drawing program and only import the composited image. Good results can be made with inkscape for compositing and Gimp to edit individual tiles - though there are  a dozens of programs out there. 
1611446944
The Aaron
Roll20 Production Team
API Scripter
I think I have a script that does this somewhere, I'll try and find it... 
1611447349
The Aaron
Roll20 Production Team
API Scripter
Here it is:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/Tile/Tile.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Tile/Tile.js</a> To use it, you put a graphic on the map layer, then&nbsp; run: !tile-next-move Then you move the graphic and the API will fill from where it was to where you put it. For example, if you place it in the top left corner, then run the command and then move it to the lower right corner, it will tile the whole map.
1611448531

Edited 1611448685
David M.
Pro
API Scripter
EDIT - ninja'd! Aaron's script looks like it will do exactly what you wanted :) The SpawnDefaultToken script can do something like this. With a little setup, it can be used to place several types of tiles as rollable table tokens. Though in looking into this, I realized that multi-token spawns in a grid is bugged for tile sizes greater than 1x1. I'll have to modify that soon to properly place multiple larger tokens. Dang! Anyway, click the animated gif below for one possible application of it. I made a rollable table token with various tiles, and set as default token for a "MapTiles" character. Then added abilities that place grids of the appropriate tiles next to an origin token using the !Spawn script. Ability syntax (for the Water Tile - item #2 in my rollable table): !Spawn {{ --name|MapTiles --offset|1,0 --side|2 --size|1,1 --qty|[[?{Qty?|9}]] --placement|grid [[?{Tile Per Row?|3}]] }}
Thanks everyone! Just one note to Martjin, in theory you are right. But in practice, I've spent so much money on art assets many of which are roll20 exclusive that cannot be downloaded that I'll be danged to heck if I waste that money by using a third party software! Cost sunk fallacy ho!
1611503912
The Aaron
Roll20 Production Team
API Scripter
Just a reminder, the API can only duplicate images in a User Library, so for Marketplace Assets, you'll have to do download and reupload them for the API to be able to tile them. The alternative would be writing a script that can arrange copies for you rapidly as you paste them in.
1611512508
The Aaron
Roll20 Production Team
API Scripter
Though try it, it might work anyway right now...