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

Need help to turn this macro into a better looking table

Hi there!  I'm a 5 year roll20 user and I have a macro that I use in the D&D 5e games I run that displays each character's current AC, Hit Points, PP, and PI, but I want to format it better so that it's condensed into one GM-whispered table and doesn't have to be a separate GM whisper for each character. Any help would be greatly appreciated! Here is an example of the macro from one of the games I run: /w gm &{template:default} {{name=Bastion}} {{AC @{Bastion|ac} | HP @{Bastion|hp} / @{Bastion|hp|max} | PP [[10+@{Bastion|perception_bonus}]] | PI [[10+@{Bastion|insight_bonus}]]}} /w gm &{template:default} {{name=Danrey}} {{AC @{Danrey Nolds|ac} | HP @{Danrey Nolds|hp} / @{Danrey Nolds|hp|max} | PP [[10+@{Danrey Nolds|perception_bonus}]] | PI [[10+@{Danrey Nolds|insight_bonus}]]}} /w gm &{template:default} {{name=Echo}} {{AC @{Echo|ac} | HP @{Echo|hp} / @{Echo|hp|max} | PP [[10+@{Echo|perception_bonus}]] | PI [[10+@{Echo|insight_bonus}]]}} /w gm &{template:default} {{name=Rahzi'el}} {{AC @{Rahzi'el|ac} | HP @{Rahzi'el|hp} / @{Rahzi'el|hp|max} | PP [[10+@{Rahzi'el|perception_bonus}]] | PI [[10+@{Rahzi'el|insight_bonus}]]}} /w gm &{template:default} {{name=Shiv}} {{AC @{Shiv|ac} | HP @{Shiv|hp} / @{Shiv|hp|max} | PP [[10+@{Shiv|perception_bonus}]] | PI [[10+@{Shiv|insight_bonus}]]}} /w gm &{template:default} {{name=Vash}} {{AC @{Vash Darklighter|ac} | HP @{Vash Darklighter|hp} / @{Vash Darklighter|hp|max} | PP [[10+@{Vash Darklighter|perception_bonus}]] | PI [[10+@{Vash Darklighter|insight_bonus}]]}} Here's what it looks like in chat to me:
1558968824
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Does this work? /w gm &{template:default} {{name=Character Report}} {{Bastion AC @{Bastion|ac} | HP @{Bastion|hp} / @{Bastion|hp|max} | PP [[10+@{Bastion|perception_bonus}]] | PI [[10+@{Bastion|insight_bonus}]] Danrey AC @{Danrey Nolds|ac} | HP @{Danrey Nolds|hp} / @{Danrey Nolds|hp|max} | PP [[10+@{Danrey Nolds|perception_bonus}]] | PI [[10+@{Danrey Nolds|insight_bonus}]] Echo AC @{Echo|ac} | HP @{Echo|hp} / @{Echo|hp|max} | PP [[10+@{Echo|perception_bonus}]] | PI [[10+@{Echo|insight_bonus}]] Rahzi'el AC @{Rahzi'el|ac} | HP @{Rahzi'el|hp} / @{Rahzi'el|hp|max} | PP [[10+@{Rahzi'el|perception_bonus}]] | PI [[10+@{Rahzi'el|insight_bonus}]] Shiv AC @{Shiv|ac} | HP @{Shiv|hp} / @{Shiv|hp|max} | PP [[10+@{Shiv|perception_bonus}]] | PI [[10+@{Shiv|insight_bonus}]] Vash Darklighter AC @{Vash Darklighter|ac} | HP @{Vash Darklighter|hp} / @{Vash Darklighter|hp|max} | PP [[10+@{Vash Darklighter|perception_bonus}]] | PI [[10+@{Vash Darklighter|insight_bonus}]]}} Generally, returns within a text field are OK.
Ah, yes!  Now I don't need to scroll down to see everything at a glance. Perfect, thank you so much!
1558969542
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can also widen your chat window a touch to avoid that extra return at the end. Finally, if you'd like better layout on the default template, try this tip .
1558970059

Edited 1558970338
Joe
Plus
Thank you! Widening the chat window definitely makes it look better.  Is there a way for me to align the PC names left rather than right? EDIT: Actually, I just want to align everything left, not just the PC names.
1558970828
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this as a first line: /w gm &{template:default} {{name=Character Report}} {{=Bastion It will put in a huge left hand margin, though, so give the trick I linked a try to get a more usable display.
1558970936
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Default template really, really needs a free text option to give left aligned text that takes up the full width.
1558971144
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you are using the 5e OGL sheet by Roll20, change the first line to this: /w gm &{template:npcaction} {{rname=Character Report}} {{description=Bastion I think you'll like the results.
Great thank you again!
1558971983

Edited 1558972442
Mike deBoston
Compendium Curator
I would just combine them into a single table by using the name of the PC as the name of each row. /w gm &{template:default} {{name=Status of PCs}} {{Bastion= AC @{Bastion|ac} | HP @{Bastion|hp} / @{Bastion|hp|max} | PP [[10+@{Bastion|perception_bonus}]] | PI [[10+@{Bastion|insight_bonus}]]}} {{Danrey= AC @{Danrey Nolds|ac} | HP @{Danrey Nolds|hp} / @{Danrey Nolds|hp|max} | PP [[10+@{Danrey Nolds|perception_bonus}]] | PI [[10+@{Danrey Nolds|insight_bonus}]]}} I don't play D&D, so here's a screen shot of the same technique for Savage Worlds. (I used two backticks `` to make the Wounds stat in red monospace.) And using the "info" template for Savage Worlds, it takes the big pink out of those ability buttons. There is probably a similar template for D&D.
1558983887
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Mike deBoston said: And using the "info" template for Savage Worlds, it takes the big pink out of those ability buttons. There is probably a similar template for D&D. Unfortunately, the OGL templates don't offer this option out of the box. The only inline links they use are proprietary for certain roll expansions. In-line links are the standard on the Shaped Sheet. More sheets should have an "info" template like you describe. Ideally, there should be an option on the default template. It's just so useful. Not all uses are for tabular data.