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 .
×
May your rolls be chill this holiday season!
Create a free account

Pathfinder Kineticist Macro (Almost There...)

Hello! Been playing a kineticist on Roll20 for some months now, just hit level 11 and finally decided that my various blasts were just too complex not to at least try to learn how to set up a few macros. I have a basic one written that seems to mostly work. It lets me input my attack mod (for stuff like point-blank shot, bless, etc), metakinesis choice (just like metamagic but for kinetic blasts), and damage mod (usually just for point-blank shot), rolls my attack and confirm, regular damage and crit damage (for which I understand that there is a means to hide this except on a crit confirm, but I have yet to research how this is done), and seems to calculate everything correctly except for one small thing: it does not add the damage bonus I input. I can do this manually, but the whole point of a macro is to not have to do that, so I thought I would ask for advice from experts. Enough preamble, here is the macro: &{template:default}{{name=Air Blast}}{{attack=[[1d20+19+?{AttackMod?|0}cs>19]]}}{{Crit_Threat=[[19]] **Confirm** [[1d20+19+?{AttackMod?|0}]]}}{{damage=?{Metakinesis|No?,[[6d6+@{Cidero|constitution_mod}+13]] bludgeoning.|Empowered?,[[floor((6d6)*1.5)+@{Cidero|constitution_mod}+13]] bludgeoning (Empowered).|Maximized?,[[36+@{Cidero|constitution_mod}+13]]bludgeoning (Maximized).|EmpoweredMaximized?,[[36+floor((6d6)*0.5)+@{Cidero|constitution_mod}+13]]bludgeoning (Empowered+Maximized)}+?{DamMod?|0}}}{{Crit_Damage=?{Metakinesis|No?,[[6d6+@{Cidero|constitution_mod}+13]] bludgeoning.|Empowered?,[[floor((6d6)*1.5)+@{Cidero|constitution_mod}+13]] bludgeoning (Empowered).|Maximized?,[[36+@{Cidero|constitution_mod}+13]]bludgeoning (Maximized).|EmpoweredMaximized?,[[36+floor((6d6)*0.5)+@{Cidero|constitution_mod}+13]]bludgeoning (Empowered+Maximized)}+?{DamMod?|0}}} If I can learn how to get this right, I might even look into the much more intimidating concept of creating my own custom character sheet variable (burn) and figure out how to incorporate that into the attacks for the elemental overflow ability (attack bonus=burn, damage bonus=2*attack bonus, max attack bonus=class level/3). The above macro is assuming max overflow bonus for my current level. Anyway, thank you for reading this far and for any help you may be able to provide. Happy Gaming!
1606702907

Edited 1606703263
Oosh
Sheet Author
API Scripter
You've got the modifier Query outside the [[ inline roll ]]. You can also add some line breaks inside the Query for better readability: &{template:default}{{name=Air Blast}}{{attack=[[1d20cs>19+19+?{AttackMod?|0}[Mod]]]}}{{Crit_Threat=[[19]] **Confirm** [[1d20+19+?{AttackMod?|0}[Mod]]]}}{{damage=?{Metakinesis| No?,[[6d6+@{Cidero|constitution_mod}[Con]+13]] bludgeoning.| Empowered?,[[floor((6d6)*1.5)+@{Cidero|constitution_mod}[Con]+13]] bludgeoning (Empowered).| Maximized?,[[36+@{Cidero|constitution_mod}[Con]+13]]bludgeoning (Maximized).| EmpoweredMaximized?,[[36+floor((6d6)*0.5)+@{Cidero|constitution_mod}[Con]+13+?{DamMod?|0}[Mod]]]bludgeoning (Empowered+Maximized)}}} {{Crit_Damage=?{Metakinesis| No?,[[6d6+@{Cidero|constitution_mod}[Con]+13]] bludgeoning.| Empowered?,[[floor((6d6)*1.5)+@{Cidero|constitution_mod}[Con]+13]] bludgeoning (Empowered).| Maximized?,[[36+@{Cidero|constitution_mod}[Con]+13]]bludgeoning (Maximized).| EmpoweredMaximized?,[[36+floor(6d6*0.5)+@{Cidero|constitution_mod}[Con]+13+?{DamMod?}[Mod]]]bludgeoning (Empowered+Maximized)}}} I also added some [Labels] to the inline rolls for more tooltip information, and the cs>19 operator needs to be next to the roll you're applying it to on the attack roll. You've also got some hard-coded values in there - 13, 19, and 36. If you can, replace these with the calculations they're derived from, otherwise your macro math will be wrong once you're buffed/debuffed/level-changed (unless they really are flat & immutable bonuses). And the damage mod Query needed a bit of HTML replacement , due to being inside another Query. regular damage and crit damage (for which I understand that there is a means to hide this except on a crit confirm, but I have yet to research how this is done), This bit is wholly reliant on the roll template you use - the {default} template will not do this (actually... you can force this behaviour in a very hacky way, but it probably isn't worth the effort). The roll templates available depend on exactly which sheet you're using.
Thank you so much! Yeah, I definitely don't know much about what I am doing here, mostly just blindly following what I managed to glean from various wiki pages and old posts. :D The hardcoded values are mostly because the character sheet we are using does not have a place for many of the variables my character uses. I was able to change the attack roll to {{attack=[[1d20cs>19+@{Cidero|bab}+@{Cidero|dexterity_mod} +6+?{AttackMod?|0}[Mod]]]}} (8+5+6); the 6 is composed of size modifier, Weapon Focus feat, a +1 competence bonus from my familiar, and a variable bonus from 0-3 based on the amount of burn I currently have. Since I have no idea how that would be coded, I just assumed most of the time in combat I will have enough burn to max out this bonus. Probably useful to have the dex mod separate though, in case I'm hit by poison or something, so thanks for the advice. The damage is much the same: the base damage is 6d6+6, that same variable bonus adds double to damage, so 0-6 more, and the +1 competence from the familiar again. I guess I could separate it out and add some [labels] to make it more clear where every number comes from, but unless there is a way to create a whole new character sheet variable to call (I am sure there is, I mean one I can easily learn), then hard numbers will have to do. Oh, and the 36 was because, so far as I could tell via Google, there is no Max function, so if I want maximized 6d6 I need to just enter 36. And the hiding crit damage except on crit thing is not terribly important and probably not worth the effort if it is complicated. With your help I have a macro that will let me apply my empowered ability without having to manually do the math, so that is good enough to simplify my play. Thanks again!
1606709733
Oosh
Sheet Author
API Scripter
No problem - some others around here are much more familiar with PF (I don't play it, passing familiarity with 3.5 rules though), and might be able to point you to where those Attributes might be stored. Though some very class specific/situational ones may not be generated by the sheet at all... not too sure. There's no problem with hard-coding something like the 36 as long as the DM knows where it comes from (or trusts you and doesn't care) - you're right that there's no Max function. Though you can do this: [[6?{Empowered?|Yes,*|No,d}6]] it won't make a real difference to your macro above, it'll turn your Query of 4 options into 2 Queries of 2 options which isn't immensely helpful. Could potentially be a useful trick in other places, though.
Yikes, I have no idea how to parse that! Obviously I have a lot to learn about the macros, though I mostly use FantasyGrounds for my online campaigns. I did discover that there is a tab that lets me add more attributes, though I have no idea how to make it appear on the main sheet. Still, I can call it in a macro and tried something like this: No?,[[6d6+6+@{Cidero|constitution_mod}[Con]+({{@{Cidero|burn}, (@{Cidero|level}/3)}kl1*2)[Burn]+1[Comp]+?{DamMod?|0}[Mod]]] It ended up breaking the macro for some reason, however, so I decided it wasn't worth it. If I'm in combat at less than full burn I'll simply use a -x mod, and update the numbers at level up. Oh, speaking of that though, is there a way to keep it from automatically converting the html code back to characters every time I reopen the macro? It will be annoying having to comb through and replace them all with code every time. Thanks again!