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

Claw and Unarmed Strike Macros

I am trying to make my life easier with 2 Macros but having a really hard time creating them. Being relatively new to macros isn't helping. This is for a pathfinder game The First Macro should be simple: Unarmed Strike BAB+STR-POWER ATTACK for 1D6 +STR+2 How do I write it? The Second Macro: 2 Simultaneous Claw attacks BAB+STR-POWER ATTACK for 1D4 +STR+2 BAB+STR-POWER ATTACK for 1D4 +STR+2 Can somebody please help me
1585816634
Ziechael
Forum Champion
Sheet Author
API Scripter
The names of the attributes may be different on your sheet but using your example: Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d6 + @{selected|STR-mod} + (?{Power Attack}*2) ]] For the second one, just have it printed twice: Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]] Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]]
1585817393

Edited 1585819588
Thank you very much. Would that confirm crits as well? Would this work for Power Attack to allow it to scale as I level? Claw 1: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,(1+floor(@{bab}/4))} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*(1+floor(@{bab}/4))*2) ]] Ziechael said: The names of the attributes may be different on your sheet but using your example: Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d6 + @{selected|STR-mod} + (?{Power Attack}*2) ]] For the second one, just have it printed twice: Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]] Tristan attacks: [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,1} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]]
1585821706
Ziechael
Forum Champion
Sheet Author
API Scripter
To confirm crits you'd either need to utilise the Roll Template for the sheet being used (assuming they have a crit confirmation 'bucket' which I suspect it will) or you'd need to add another section in should you need it... also, assuming your formula for Power Attack progression is right, you won't need to replicate it in the damage portion, by recalling the same result as the attack deficit and multiplying it accordingly we cover both instances with the 1 formula: Claw 1: [[ 1d20cs @{selected|weaponcritmin} + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,(1+floor(@{bab}/4))} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]] Replace the bold bit with a hard coded crit number or if the sheet has a field for it, use the attribute as applicable to change the threshold for the green outline on a crit. You could then add a section to confirm crits: Claw 1: [[ 1d20cs @{selected|weaponcritmin}  + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,(1+floor(@{bab}/4))} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]] Crit? [[ 1d20 + @{selected|BAB} + @{selected|STR-mod} - ?{Power Attack|No,0|Yes,(1+floor(@{bab}/4))} ]] vs [[@{target|armorclass}]] for [[ 1d4 + @{selected|STR-mod} + (?{Power Attack}*2) ]] extra damage! (The crit damage output might need to be different, never really played PF but you get the idea) If you want to explore the template route you can usually run an attack from a button on the sheet and then press up in the chat window to get the code/syntax to play around with :)
1585824375

Edited 1585828475
That is brilliant, thank you so much. Can I pester you for one more thing, now I have learned about toggling on and off things I want to add + ?{Destined Strike|No,0|Yes,(0+floor(@{Class-0-level}/2))} But I don't know how to round down, and make a minimum of 1. Starting at level 1 "equal to 1/2 your class level (minimum 1)"
1585899513
Ziechael
Forum Champion
Sheet Author
API Scripter
To do a floor within a query you need to do html replacements as the syntax required will break a traditional query: + ?{Destined Strike|No,0|Yes,{floor(@{Class-0-level}/2) , 1 } kh1} would have to become: + ?{Destined Strike|No,0|Yes,{floor(@{Class-0-level}/2) , 1 } kh1}