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 .
×

Pin generated StatBlocks outside of chat

1465933729

Edited 1465933768
(5e Shaped character sheet w/ companion api script, thou I imagine useful for all sheets and subscription levels) I love the clickable statblocks you can output to chat. Much quicker than opening up the actual character sheets in most cases! Unfortunately, because they are in chat, they move around as actions are performed or players chat.  Is there a way to 'Pin' groups of these HTML blocks somewhere more permanent? Can this be supported by the character sheets, or would this be another type of integration? Thank you, Jason B.
1465944864

Edited 1465945711
Hi, Jason B. Some users use Token Actions or their Macro Bar for easy access to commonly-used macros. Alternatively, it's possible create 'statblocks' (similar in functionality and layout to the one in your post) using Journal Command Buttons , which are basically hyperlinks that output macros to the Text Chat when clicked. Some screen/tabletop space (or another browser window ) could then be allocated to the Journal entries which host these statblocks. I'll add that if you have already created a statblock in the text chat (like you have), you can simply highlight it, copy it, and paste it from the Text Chat into a Journal entry (the Bio & Info and GM Notes fields of a Character, or the Description & Notes and GM Notes fields of a Handout); the styling will be sanitized, but the buttons should function fine.
1465951945

Edited 1465960129
The sanitized text looks kinda crappy but with some editing you can get it looking pretty good. It's pretty manual at the moment.  I used the following (not perfect) regex script, run via the linux command line:  sed -e 's/class="sheet-rolltemplate-5e-shaped"/class="tmplwrap"/' | sed -e 's/class="sheet-rt-card"/style="border: 1px solid #000; border-radius: 3px; font-size: 12px; line-height: 100%; margin: 3px; "/' | sed -e 's/class="sheet-rt-title-wrap"/style="padding: 1px 3px; color: #591209; font-family: Times,serif; font-size: 2em; font-variant: small-caps; font-weight: 700;"/' | sed -e 's/class="sheet-rt-content"/style="margin: 3px 3px; "/' | sed -e 's/<div class="sheet-rt-subheader sheet-no-border">\(.*\)<\/div>/\1<br>/' | perl -p -e 'BEGIN{undef $/;} s/<div>(.*?)<\/div>/\1<br>/smg;  s/<span class="sheet-rt-title sheet-">(.*?)<\/span>/<b>\1<\/b>/smg; s/<span class="sheet-bold sheet-italic">(.*?)\.<\/span>/<b>\1:<\/b>/smg; s/<span class="sheet-unprepared">(.*?)<\/span>/<strike>\1<\/strike>/smg;' Updated: The biggest problem is a css !important spacing on div tags, which requires <br> to avoid extra spacing between lines. Perl is used to match the exact tags across new lines. Yes, I know this is not the best way. If people are interested, maybe there is an API way to execute the right character sheet macros, capture, modify, and store the output to journal pages?