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

SWRPG-API [Star Wars] Changing Attributes Question

1491719903

Edited 1491719965
I am creating macros for certain character actions, and in some cases these actions cost the players Strain to carry them out. Is there a way to build in a change to a character's Current Strain Attribute? In this example, I want to add 1 Strain every time a Piloting(Space) roll is made to attempt a Full Throttle action. Here is my current macro: !eed characterID(@{Stazzi|character_id}) label(skill:Piloting - Space) @{Stazzi|diceSpace} encum(@{Stazzi|encumbrancemax}|@{Stazzi|encumbrance}) skill(@{Stazzi|rankSpace}|@{Stazzi|agility}|PilotingSpace) @{Stazzi|dicePool} 2p (gmdice) The macro works fine, and even automatically causes the check to have 2 purple dice. All it needs is to also cost the character 1 Strain. Thanks in advance for any help.
1491740775
Jakob
Sheet Author
API Scripter
Install ChatSetAttr and add a new line: !modattr --charid @{Stazzi|character_id} --strain|1 --silent This will increase the strain attribute by 1 every time you run it. If the attribute has a different name on the sheet, you'll have to use that one.
Jakob said: Install ChatSetAttr and add a new line: !modattr --charid @{Stazzi|character_id} --strain|1 --silent This will increase the strain attribute by 1 every time you run it. If the attribute has a different name on the sheet, you'll have to use that one. Thanks so much for the very quick reply! I ended up having to add --mod as an added parameter before --strain to make it work, but it's working now like a charm.