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

Comparisons in Macros (D&D 3.5's Weapon Finesse, Intuitive Attack, etc.)

Greetings, all! Let's assume I want a macro for a character named Azazar who's a Druid.  (His character sheet is also named Azazar.)  He has the feat Intuitive Attack which lets him use his STR or WIS modifier for accuracy with his natural weapons (including Wild Shape forms), whichever is higher.  (Weapon Finesse works the same way but with DEX instead of WIS.)  Since I don't want to make a new macro for each case where one stat is higher, what's the best way to make this macro? Thankee! (I've briefly checked the wiki and found no answer for this.)
1553057098

Edited 1553057229
GiGs
Pro
Sheet Author
API Scripter
If you post the macro you use for just one of the stats, we can tell you how to adapt it to use the best of two. But the technique uses the group rolls kh - see roll20 dice reference . basically, in place of @{STR} you'd use {@{STR},@{DEX}}kh1 Depending on how complex your macro is, you might run into html entity issues (as described here in very unfriendly terms: <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a>) , but you can try the above for now and see if it works.
The exact macro is below and based on the Pathfinder Roll20 character sheet.&nbsp; How to change the accuracies to use the higher of STR or WIS? &amp;{template:PFAttack} {{name=Azazar}} {{subtags=goes for the weak point.}} {{attack= MEDIUM SIZE - Spiked Chain [[1d20 + @{Azazar|attk-melee}]], [[1d20 + -5 + @{Azazar|attk-melee}]] AC (+2 charge) (+2 flank) - Unarmed [[1d20 + @{Azazar|attk-melee}]], [[1d20 + -5 + @{Azazar|attk-melee}]] AC (+2 charge) (+2 flank) }} {{damage= - Spiked Chain: [[2d4 + (@{Azazar|STR-mod} * 1.5) ]] pierce damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration), [[2d4 + (@{Azazar|STR-mod} * 1.5) ]] pierce damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration) - Unarmed: [[1d8 + (@{Azazar|STR-mod} * 1.5) ]] blunt damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration), [[1d8 + (@{Azazar|STR-mod} * 1.5) ]] blunt damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration) }}
Greetings again! It's been over a week and I was curious how best to adapt the macro. Thankee!
1553816694
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I tried your code with a character named Azazar and was told that there are no attributes called STR-mod or attk-melee. Are you sure about the sheet you are using?
1553817365

Edited 1553817456
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Greg C. said: The exact macro is below and based on the Pathfinder Roll20 character sheet.&nbsp; How to change the accuracies to use the higher of STR or WIS? &amp;{template:PFAttack} ... OK, did a little digging. That looks like a template from the Pathfinder Community Sheet. Unfortunately, I have so little experience with that system and sheet, I don't think I can help. I'm having trouble even making a test character. :)
1553817709

Edited 1553817911
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
OK, I think I've got it. Try this: &amp;{template:pf_attack} {{name=Azazar}} {{subtags=goes for the weak point.}} {{attack= MEDIUM SIZE - Spiked Chain [[1d20 + @{Azazar|attk-melee}]], [[1d20 + -5 + @{Azazar|attk-melee}]] AC (+2 charge) (+2 flank) - Unarmed [[1d20 + @{Azazar|attk-melee}]], [[1d20 + -5 + @{Azazar|attk-melee}]] AC (+2 charge) (+2 flank) }} {{damage= - Spiked Chain: [[2d4 + ({@{Azazar|STR-mod},@{Azazar|WIS-mod}}kh1 * 1.5) ]] pierce damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration), [[2d4 + ({@{Azazar|STR-mod},@{Azazar|WIS-mod}}kh1 * 1.5) ]] pierce damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration) - Unarmed: [[1d8 + ({@{Azazar|STR-mod},@{Azazar|WIS-mod}}kh1 * 1.5) ]] blunt damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration), [[1d8 + ({@{Azazar|STR-mod},@{Azazar|WIS-mod}}kh1 * 1.5) ]] blunt damage + (#Volarian-Dragonfire Fire from Dragonfire Inspiration) }}
keith: Thankee! (Picking the higher of WIS or STR was meant for accuracy and not damage, but the example was clear enough to me.)