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

A couple of simple macros for Pathfinder Sheets in Roll20 app

I was looking for a way to add all I need in the Pathfinder sheet as macros so that I don't have to make so many calculations or change the formulas every once in a while, x3, sorry if it makes me too lazy. The only 2 things I apparently need right now are the next: 1) A macro option that lets me round down or up a certain calculation or roll. Example:     - Main Formula: 25 feet + 5* (level/2) feet. - Need the Bold section to be rounded down or up for example so that the 5 is multiplied for a flat number, not a fraction. Note: Would be good if the rounds could be rolls too. 2) A macro option that lets me set up a max in a certain roll or calculation. Example:     - Main Formula: 1d4 + @{some attribute} or ( @{some attribute} )d6. - Need the Bold section to have a max of 5 or 10 like for some spell damages. Can anyone help me with that? I have tried with some of the options in the archives but maybe I am using them wrong or something? Or maybe I haven't found the option that fits my needs. Remember, not for chat rolls but for a sheet that can have roll macros embedded on it.
Hm not sure about the second one, but for my spell ranges I use close ([[25+(floor(@{caster1_level}/2)*5)]] ft) medium ([[100+(@{caster1_level}*10)]] ft) long ([[400+(@{caster1_level}*40)]] ft) And just be sure to adjust caster1 to caster2 if the spell is used by a secondary casting class. Hope this helps :)
1552772594

Edited 1552772701
Kraynic
Pro
Sheet Author
You should check out the Dice Reference page of the wiki:&nbsp; <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a> If you look at the section of "Roll Modifiers", you have to scroll down a ways to find a section on grouping rolls, keeping and dropping dice.&nbsp; The principles of those can be used to compare static numbers.&nbsp; You can have for instance: [[[[{@{caster_level},5}kl1]]d4]] The kl1 is "keep lowest one", so it will compare caster level (or whatever attribute you want) to the number after the comma, and keep the lowest one.&nbsp; That macro would work for something like the spell Burning Hands that does 1d4 per caster level, but doesn't go over 5 dice unless you have a feat/class feature that can change that limitation. You do need to check on the attributes and abilities tab to be sure exactly what attribute you need to reference for the character sheet you are using.&nbsp; I used something similar for cure spells on my Pathfinder bard: [[1d8+[[{@{level},5}kl1]]]] That would be the one for cure light.&nbsp; For moderate, you change the roll to 2d8 and the comparative number from 5 to 10.&nbsp; Hope that gets you going.&nbsp; There is also, if you haven't visited them before, some pages with helpful example macros.&nbsp; There is even a page specific to Pathfinder: <a href="https://wiki.roll20.net/Macros/Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros/Pathfinder_Examples</a> &nbsp; I will warn that some of the examples a ways down the page are using a roll template from a specific sheet.&nbsp; The principles of what the macros are doing can still be applied without that roll template though.
Thanks guys, you both made my day.