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

Pathfinder bonus based on "at N level and every Y levels after"

I'm trying to create a macro that auto-calculates a bonus for something like "Inspire Courage" Bardic Performance. This gives a +1 bonus  from levels 1 -4, then an additional +1 bonus at level 5 and every 6 levels after. So it would be 1-4 =  +1 5-10 = +2 11 - 16 = +3 > 17 = +4 I can't figure out a way to express such a sequence using the macro/die rolling language within Roll20.net. I was successful with something like fascinate that effects an extra create for every 3 levels beyond the 1rst like this: [[1 + floor([[[[@{class-0-level} - 1]] / 3]]) ]] Anyone have any ideas or advice?
Try this: Bonus: [[ 1 + floor((@{class-0-level} + 1) / 6) ]]
1464299567
Ziechael
Forum Champion
Sheet Author
API Scripter
This is how I do it in my 3.5e game: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/8),1}kl1 + {floor(@{selected|casterlevel}/14),1}kl1 + {floor(@{selected|casterlevel}/20),1}kl1]] It's a bit of a hack but it works ;) So yours would look like: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/5),1}kl1 + {floor(@{selected|casterlevel}/11),1}kl1 + {floor(@{selected|casterlevel}/17),1}kl1]]
Ziechael said: This is how I do it in my 3.5e game: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/8),1}kl1 + {floor(@{selected|casterlevel}/14),1}kl1 + {floor(@{selected|casterlevel}/20),1}kl1]] It's a bit of a hack but it works ;) So yours would look like: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/5),1}kl1 + {floor(@{selected|casterlevel}/11),1}kl1 + {floor(@{selected|casterlevel}/17),1}kl1]] I like this! Here's my preferred (equivalent) "hack": Bonus: [[ 1 + {@{class-0-level} + d0}>5 + {@{class-0-level} + d0}>11 + {@{class-0-level} + d0}>17 ]]
1464300123
Ziechael
Forum Champion
Sheet Author
API Scripter
Silvyre said: Ziechael said: This is how I do it in my 3.5e game: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/8),1}kl1 + {floor(@{selected|casterlevel}/14),1}kl1 + {floor(@{selected|casterlevel}/20),1}kl1]] It's a bit of a hack but it works ;) So yours would look like: [[{floor(@{selected|casterlevel}/1),1}kl1 + {floor(@{selected|casterlevel}/5),1}kl1 + {floor(@{selected|casterlevel}/11),1}kl1 + {floor(@{selected|casterlevel}/17),1}kl1]] I like this! Here's my preferred (equivalent) "hack": Bonus: [[ 1 + {@{class-0-level} + d0}>5 + {@{class-0-level} + d0}>11 + {@{class-0-level} + d0}>17 ]] Meh, you and your pesky simplicity ;) (Listen to Silvyre, Joe. He's scarily good at this stuff!!)
Wow, I really didn't expect such fast responses. Thanks so much guys! No joke I spent easily over an hour trying to get it to work, I'll ask sooner next time :-) Thanks again, you guys rock!