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

Player Status Report Macro

I am using this macro and it is working for the first PC. I am having issues getting it to display the next PC so on and so forth.. &{template:default} {{name=Health Check}} {{Theros= AC @{Theros|ac} - HP @{Theros|hp} / @{Theros|hp|max}}}  I'm not new to roll20 but I am new to macros. Any help would be appreciated!
1620836092
Kraynic
Pro
Sheet Author
Well, you either need to create a macro for each character you are wanting the info from, or make a macro that works from a selected token.  To make a specific macro for each, every instance of "Theros" would need to be changed to the name of the character you want to pull info from. To make a generic macro that works on a selected token, you would need something like this: &{template:default} {{name=Health Check}} {{@{selected|character_name}= AC @{selected|ac} - HP @{selected|hp} / @{selected|hp|max}}}
Is there not a way for this to be a function? I am seeing macros all over for this but they just don't seem to work haha.
1620837244
Kraynic
Pro
Sheet Author
I'm not sure what you mean by a function, but you should be able to build something like that just fine with each line using the same set up as your first example.  Are you playing without tokens?  Usually that information is displayed in token bars/bubbles, leaving macros like that mostly unnecessary.
I have tokens but I'm just trying to use some of these macros to learn that side of roll20. When I set them in line with eachother this is the result. &{template:default} {{name=Party Status}} {{**Name**=**Health**}} {{Theros=@{Theros|hp}/@{Theros|hp|max} HP}} {{Dharrius=@{Dharrius|hp}/@{Dharrius|hp|max} HP}} {{Grim=@{Grim|hp}/@{Grim|hp|max} HP}} {{Kaeda=@{Kaeda|hp}/@{Kaeda|hp|max} HP}} 
1620837901

Edited 1620838147
Kraynic
Pro
Sheet Author
Without seeing the exact macro, it is difficult to tell.  My guess would be you have extra spaces or line breaks in places they shouldn't be. Edit: By "exact macro", I mean use the code block style for displaying your macro.  It is in the drop down menu from the little wand in the upper left corner of the editor. 
I have the exact macro in the post above
1620838214

Edited 1620838377
Kraynic
Pro
Sheet Author
Put it in a code block, so that the editor won't put in any line breaks that aren't included in the macro. Edit:  The macro I included in my first post is in a code block.  If it was longer than the forum post is wide, it would include a scroll bar instead of wrapping the text.  That is what I want to see, because that will show whether you have any extra spaces or line breaks, and exactly where they are in the macro.
Like this? I appreciate your help, just feel so dumb trying to figure this out haha &{template:default} {{name=Party Status}} {{**Name**=**Health**}} {{Theros=@{Theros|hp}/@{Theros|hp|max} HP}} {{Dharrius=@{Dharrius|hp}/@{Dharrius|hp|max} HP}}  {{Grim=@{Grim|hp}/@{Grim|hp|max} HP}}  {{Kaeda=@{Kaeda|hp}/@{Kaeda|hp|max} HP}} 
1620838949
Kraynic
Pro
Sheet Author
Something is wrong with that. It shouldn't wrap the text at all.  Where are you copying the text from?  It may be carrying artifacts from whatever editor you copied from... I copied that, pasted it into chat in a game, then copied from there and put it in a code block and it looks like this (which looks ok, so you might try a copy paste from this code block to see if it works in your game): &{template:default} {{name=Party Status}} {{**Name**=**Health**}} {{Theros=@{Theros|hp}/@{Theros|hp|max} HP}} {{Dharrius=@{Dharrius|hp}/@{Dharrius|hp|max} HP}} {{Grim=@{Grim|hp}/@{Grim|hp|max} HP}} {{Kaeda=@{Kaeda|hp}/@{Kaeda|hp|max} HP}}
1620839026

Edited 1620839046
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just in case this is the issue and it is being eaten by copying and pasting: }} {{ ...will not work. You cannot put line breaks between fields in the code. The template will handle that. }} {{ ...is what this should look like. The whole macro should be: &{template:default} {{name=Party Status}} {{**Name**=**Health**}} {{Theros=@{Theros|hp}/@{Theros|hp|max} HP}}{{Dharrius=@{Dharrius|hp}/@{Dharrius|hp|max} HP}} {{Grim=@{Grim|hp}/@{Grim|hp|max} HP}} {{Kaeda=@{Kaeda|hp}/@{Kaeda|hp|max} HP}} 
Thanks guys! Used to macros in many other engines and games. This was super helpful and I have it working now.