Hey there,
I made a simple lightweight script to adjust token size and change the bars, when it is added from the journal.
Here is the link to github https://github.com/Kerubis/Roll20Api/tree/master/NPCToken
The script sets the size depending on the npc_type.
Currently supported is: tiny / small / medium / large / huge / gargantuan (giant)
You can assign whatever attribute you want to the bars.
You can choose which bars to show.
You can set the bars to compact.
The attribute npc_hpformula is automatically calculated.
Currently there is no UI or anything because the script has only 7 options, adjust these when inserting the script
I am happy to add functionality if needed, but I want to keep it fairly lightweight.var bar1 = '';var bar2 = 'npc_ac';var bar3 = 'npc_hpformula';var showbar1 = false;var showbar2 = false;var showbar3 = true;var compactbars = `compact`;
Known quirks:
The script only works properly with a 70x70 grid.
Cheers Kerubis