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

Rollable table token with different size or sizes

October 30 (8 years ago)
Joe
Pro
Hello there!

I'm relatively new to Roll20, but it's been really great so far!

I've created a rollable table for a small dragon PC that has a random effect for a breath weapon. So he might get a 15' cone of fire, but he might get a 15' line of lightning, or even a 20' square of sleeping gas.

Is there a way to have the token that is created by the table have the correct dimensions for each image that I have put in it?  For example, the 15' line of lightning is a 5x15 size image, but when I create a token, it is a standard 5x5 token, with the image squashed into it. I can then resize it, but it is an extra step, especially because the player cannot. Ideally I would like the token to resize based on which face is selected. 

A reasonable alternative option would be to create it as a large square that will accommodate any of the effects, and I can create each of them as an image of that square size with the necessary areas just transparent. But the goal here would be to get the token to come out as 20x20 instead of 5x5.

Thank you for any suggestions you might have!

Joe
October 30 (8 years ago)
The Aaron
Pro
API Scripter
I would suggest creating all the effects with the same size base image as you suggested, then use that rollable table token as the token for a new character in the journal named "Random Breath Weapon" or something similar. The size of the token will be preserved and when you drag out that character, you can right click and choose a random side. As an added bonus, you can give control to the player and they can drag it out as needed. 
What are the pixel dimensions per square of the default grid?
October 31 (8 years ago)
The Aaron
Pro
API Scripter
70px by 70px.  However, if you're thinking about making images that just match to the native grid to get the right units x units size, discard hope now.  It won't work that way.
November 01 (8 years ago)
Joe
Pro
That sounds close enough to perfect that I'll take it. Thanks a bunch, Aaron!
November 01 (8 years ago)

Edited November 01 (8 years ago)
The Aaron
Pro
API Scripter
Great!  Happy Rolling!