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 merry + bright! 🎄
Create a free account

Pathfinder 2e Conditions Macro

Hi, What I want is to be able to do is to, as a player, add a condition like Flat-footed to my character sheet by hitting a button or typing "#ff".  What I have discovered is by default you cannot seem to be able to edit attributes with Macros by default.  (Being able to change @{Selected|armor_class_temporary} to -2.)  Is there, which API could I add to be able to do this?  Is someone working on a condition API for 2e?   Ultimately I am a programmer and could build it all myself but you never want to re-invent something that is already done.  And would happily share what I have done when finished.  Just need some pointing before I see how big the task is.  Thanks Toby
Hey Toby,  Both the TokenMod and ChatSetAttr can do what you are looking for. I use both of them liberally in my game for all sorts of PF2 modifiers.  They are in the 1-click install from the API Scripts page for your game. 
Thanks, Erik!  Working on some stuff.  Trying to figure out how to adjust Temp weapon attack modifier.  Trying to make a prone, -2 to attack but can't adjust the temp column
1598411919

Edited 1598412325
Hi Toby, To adjust those fields for repeating sections like weapons, the command needs to refer to the specific row id. So for a weapon's Temp modifier, you'd need the command to look similar to this: !setattr --sel --repeating_melee-strikes_$ID_weapon_temporary|-2 replacing $ID with either the row ID or the row number. But this means you need to adjust that for each attack. It may be easier to create an attribute on the character called something like prone_penalty, paste @{prone_penalty} into the OTHER modifier for the attack, and use the script to adjust prone_penalty. As Erik said, TokenMod and ChatSetAttr are great for that. I also recommend CombatMaster, as you can set up conditions to call commands for other API. Basically, add a condition marker to a player's token, and you can set it up to automatically apply the modifiers when the condition is added. I have a configuration that makes changes to custom attributes like I mentioned above (one for each condition), as well as a macro that adds those attributes to each player, and adds math using those attributes into notes in the sheet so that multiple bonuses/penalties of the same type don't stack. Here's an example of the attack mod for a finesse weapon in my game: ({@{inspcrg_statbo},@{bless_statbo},@{heroism_statbo} }k1 - {@{clumsy_statpen},@{frightened_statpen},@{sickened_statpen},@{bane_statpen} }k1)[STAT] + (@{aid_circbo} - {@{aid_circpen},@{prone_circpen} }k1)[CIRC] It's a bit of work to set up, but it makes tracking bonuses and penalties mid-game much easier.
Awesome Persephone! Thanks for the help! Going to make life much easier.