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 .
×
Due to an outage with an external service provider, we’re experiencing intermittent loading issues on Roll20. Please refresh if needed.
Create a free account

Macro with a Minimum 1

1585892405

Edited 1585892498
So I am trying to create a Macro/Query for one of my attacks. In case the image isn't clear: -[[?{Power Attack|Yes,1|No,0}*(1+floor(@{bab}/4))]] +[[ ?{ Destined Strike |No,0|Yes,1}*(floor(@{class-0-level}/2)) ]] I need destined strike to score as a minimum of 1; currently while at level 1, this macro does not work as it rounds down to 0. Minimum I believe is 'kh1' but, I don't know how to write it like that. In case you were wondering the Pathfinder rule in question is At 1st level, as a free action up to three times per day you can grant yourself an insight bonus equal to 1/2 your bloodrager level (minimum 1) on one melee attack. At 12th level, you can use this ability up to five times per day. Can anybody help?
1585893510

Edited 1585893522
vÍnce
Pro
Sheet Author
Try -[[ ?{Power Attack|Yes,1|No,0}*(1+floor(@{bab}/4)) ]] + [[ {?{Destined Strike|No,0|Yes,1}*(floor(@{class-0-level}/2)),1}kh1 ]]
1585895466

Edited 1585895821
Vince said: Try -[[ ?{Power Attack|Yes,1|No,0}*(1+floor(@{bab}/4)) ]] + [[ {?{Destined Strike|No,0|Yes,1}*(floor(@{class-0-level}/2)),1}kh1 ]] Doesn't seem to work. Here are the Macro scores with each combination Power Attack-Yes / Destined Strike-Yes = +0 - Correct Power Attack-Yes / Destined Strike-No = +0 - Incorrect (-1) Power Attack-No / Destined Strike-Yes = +1 - Correct Power Attack-No / Destined Strike-No = +1 - InCorrect Seems like Destined Strike is giving me +1 whether it is toggled on or off
1585897107

Edited 1585897182
vÍnce
Pro
Sheet Author
My grouping for the comparison was not right... this should work.  I also move the "-" into the power attack query.  My thought was that if you have No power attack and a destined strike, the macro's mod would look like "-0+1" which might get interpreted as "-1" instead of "+1"...  didn't test, but I think using "-1" for yes within the power attack query works fine either way.  [[ ?{Power Attack|Yes,-1|No,0}*(1+floor(@{bab}/4)) ]] + [[ ?{Destined Strike|No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]]
Vince said: My grouping for the comparison was not right... this should work.  I also move the "-" into the power attack query.  My thought was that if you have No power attack and a destined strike, the macro's mod would look like "-0+1" which might get interpreted as "-1" instead of "+1"...  didn't test, but I think using "-1" for yes within the power attack query works fine either way.  [[ ?{Power Attack|Yes,-1|No,0}*(1+floor(@{bab}/4)) ]] + [[ ?{Destined Strike|No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]] So close but, it turned my power attack in my damage output to negative but, thanks to your help, I managed to get it to work with this: -[[?{Power Attack|Yes,1|No,0}*(1+floor(@{bab}/4))]] + [[ ?{Destined Strike|No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]]
1585899777
vÍnce
Pro
Sheet Author
Tristan C. said: [[ ?{Power Attack|Yes,-1|No,0}*(1+floor(@{bab}/4)) ]] + [[ ?{Destined Strike|No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]] So close but, it turned my power attack in my damage output to negative but, thanks to your help, I managed to get it to work with this:  -[[?{Power Attack|Yes,1|No,0}*(1+floor(@{bab}/4))]] + [[ ?{Destined Strike|No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]] Forgot about using the same query for both attack and damage.  My bad. Glad you got it worked out.  cheers