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

2 sizes of token on one table?

Is it possible to get 2 sizes of the same token on a same roll-able table. (for a layman not a IT professional) I have a player who would who has a feature inwich their character grows 1 size and would like to control it.
1719958874
Gold
Forum Champion
You will level-up slightly beyond a layman to get this, but much less than IT professional. As a PRO subscriber GM of roll20 you have access to the Mods (API scripts). Your request can be achieved with a Mod.  Is this your first time to use a Mod? It's not too difficult. You can do it. You'll be using a Mod that someone else already wrote the code. You just need to install it, and configure it. The most code you might need to engage is copy-pasting a line into a Roll20 Macro.  There's more than 1 free Mod, already made by someone else, that can do this trick. If you just install it and configure it.  I use one called TokenMod -- this can be used to create 1 button (macro) that lets any player Resize any token they control.  Others use one called WildShapeResizer -- this one is made for exactly what you asked. Just reply back and ask, if you need help to install (these are in the One-Click) and configure (they come with instructions)? 
1719966683
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi DM Blake! If you install Token-mod, you can go tot he character's attributes and abilities tab and create the folloing two abilities (be sure to check the box that says "token action" on each. Medium !token-mod --set width|1g height|1g Large !token-mod --set width|2g height|2g This will size them properly even if you have them on a different grid width. The buttons will show up when they have their character selected, at the top of the screen. Token mod is available on the Mod page for the campaign, accessible from the Campaign Details page. Here is a video guide for installing mods: How to Install Roll20 API Scripts
1720001115
David M.
Pro
API Scripter
You could also combined those two abilities into one, using a roll template appropriate to your sheet and chat menu buttons . This one uses the 5e npcaction template for one of my player's "Giant's Might" ability: /w gm &{template:npcaction} {{rname=Giant's Might Size Change}} {{description=[Medium](!token-mod --set width|1g height|1g) [Large](!token-mod --set width|2g height|2g)}} With the risk of throwing too much at you at once -  in case your player's ability uses a resource on their character sheet, you could also incorporate some chatsetattr commands to consume that resource, apply global modifiers, etc. Below is the full version of the macro above. If Large size is selected, it uses tokenmod to get big, then chatsetattr decrements a repeating resource and toggles a checkbox for a global damage modifier. If medium is selected, it just reverts the size and toggles the checkbox. Again, this is for 5e, and the index of the repeating resource will likely be different for your player's sheet. Another fun (annoying) wrinkle is having to add an html entity linefeed  ( 
 ) before the secondary mod script call to make it work. /w gm &{template:npcaction} {{rname=Giant's Might Size Change}} {{description=[Medium](!token-mod --set width|1g height|1g
!setattr --sel --silent --repeating_damagemod_$1_global_damage_active_flag|0) [Large](!token-mod --set width|2g height|2g
!modattr --sel --silent --repeating_damagemod_$1_global_damage_active_flag|1
!modattr --sel --silent --repeating_resource_$2_resource_right|-1)}}