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 .
×
May your rolls be merry + bright! 🎄
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Getting a Macro working

I am playing in a 3.5 campaign and i am trying to get it set up that i don't have to change the character's damage for his breath weapon every level and just use a simple calculation to do it.   This is what i have so far ceil((@{level}+1)/3)d8 I am trying to have it set so that at every 3rd level the total number of d8s increases by one but the issue i am having is that it is treating it like a multiplication problem and i can't get it to spit out a roll that would make sense for 2 d8 Does anyone have any suggests how i could write it different to get it to work right
1468930800
Ziechael
Forum Champion
Sheet Author
API Scripter
I do a LOT of 3.5 stuff so this 'should' work: [[ [[ floor(@{level}/3)+1 ]]d8 ]]
Thank you so much 
1468938655
Ziechael
Forum Champion
Sheet Author
API Scripter
No problem, a lot of 3.5 formulas include taking the floor of a divided value, it is usually a safe bet to start there if something is giving you trouble... there are other more complex ways to get what you want when there is no obvious formula to support it such as using ' keep/drop dice ' and division of the desired attribute to create a running count: [[[[ [[ {floor(@{selected|level}/1),1}kl1 ]] + [[ {floor(@{selected|level}/3),1}kl1 ]] + [[ {floor(@{selected|level}/6),1}kl1 ]] + [[ {floor(@{selected|level}/9),1}kl1 ]] + [[ {floor(@{selected|level}/12),1}kl1 ]] + [[ {floor(@{selected|level}/15),1}kl1 ]] + [[ {floor(@{selected|level}/18),1}kl1 ]] ]]d8]] would give you an additional die for each condition that was a 'success' ie, the level was divisible by the next increase level and resulted in more than a 1, any that would be <1 zero out instead. This is only as useful as the amount of conditions you add to it though so should only be used when maths won't do it for you automatically ;)