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

Brute Fighter Macro Help

So I feel like I am stumbling, and I am close but not quite. I am going to be trying out the Fighter subclass Brute, and saw that it had additional damages, similar to the Monk. Well I already have a macro for the monk, 1d[[4+2*floor((@{level}+1)/6)]]. What I cant figure out though is how to make it increase during the Fighter's level ups, of 3, 10, 16, and 20, going to d4, d6, d8, d10. I guess I dont understand the differences between Floor, Flat, Round, and Ceil enough to know what it is I am doing wrong.  1d[[4+2*floor((@{level}+1)/6)]] 1d[[4+2*floor((@{level})/6)]] 1d[[4+2*flat((@{level})/9)]] 1d[[4+2*flat(round(@{level}+1)/6)]] I've tried several versions, trying to see if I can get it, and just cant figure it out.
1527992905

Edited 1527992914
GiGs
Pro
Sheet Author
API Scripter
Does flat() do anything? I've never seen that before. What I cant figure out though is how to make it increase during the Fighter's level ups, of 3, 10, 16, and 20, going to d4, d6, d8, d10. is it d4 at level 3, d6 at 10, etc.? What about below level 3?
1527995879

Edited 1527995919
This should work. I cross referenced ray of frost. The damage types are close. {{damage=[[1d[[2+2*round((@{selected|level}) / 6+.5)]]]]}}
G G said: Does flat() do anything? I've never seen that before. What I cant figure out though is how to make it increase during the Fighter's level ups, of 3, 10, 16, and 20, going to d4, d6, d8, d10. is it d4 at level 3, d6 at 10, etc.? What about below level 3? Yes Level 3 is d4, 10 is d6, 16 d8, 20 d10. There is nothing below 3, it is the Fighter subclass Brute in the UA.
Blood L. said: This should work. I cross referenced ray of frost. The damage types are close. {{damage=[[1d[[2+2*round((@{selected|level}) / 6+.5)]]]]}} I just tried it, it did not work properly. Levels 3-9 should be a 1d4. 10-15 should be a 1d6. 16-19 should be a 1d8. 20 should be a 1d10. Yours boosts the damage to 1d6 by level 9, which is a problem I've been having.
1527999525

Edited 1527999602
Ziechael
Forum Champion
Sheet Author
API Scripter
Long winded but guaranteed to work: {{damage=[[1d[[ (({floor(@{selected|level}/3),1}kl1)*4) + (({floor(@{selected|level}/10),1}kl1)*2) + (({floor(@{selected|level}/16),1}kl1)*2) + (({floor(@{selected|level}/20),1}kl1)*2) ]] ]]}} There is likely a mathematical formula that would do it but meh... sometimes hackery is the way forward ;)
1527999644

Edited 1527999688
GiGs
Pro
Sheet Author
API Scripter
Here's a way to do it: /roll 1d[[ ( {1,floor(@{level}/3)}dh1 + {1,floor(@{level}/10)}dh1 + {1,floor(@{level}/16)}dh1 +{1,floor(@{level}/20)}dh1 )*2+2  ]] Edit: curses, ziechael beat me to it. 
1527999829
Ziechael
Forum Champion
Sheet Author
API Scripter
G G said: Here's a way to do it: /roll 1d[[ ( {1,floor(@{level}/3)}dh1 + {1,floor(@{level}/10)}dh1 + {1,floor(@{level}/16)}dh1 +{1,floor(@{level}/20)}dh1 )*2+2  ]] Edit: curses, ziechael beat me to it.  Two sides of the same coin, yours is a little tidier to my mind :)
1528000015
GiGs
Pro
Sheet Author
API Scripter
Thanks :) I wouldnt be surprised if Silvyre appeared with a mathematical solution, too. 
Thank you both so much =] I try my best with macros but I just dont quite understand it sometimes.
1528075438
Ziechael
Forum Champion
Sheet Author
API Scripter
It's a learning curve to be sure but stick at it and there isn't much you can't do :)