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

Pathfinder Ranger Favored Enemy

I am struggling to write a proper scaling macro for a Pathfinder Ranger and would really appreciate some help +2 bonus on weapon attack and damage rolls against At 5th level and every five levels thereafter (10th, 15th, and 20th level) the bonus against any one favored enemy increases by +2. In essence at level 1 it is a simple +2, at level 5 it is a +4 Attack Macro +[[?{Favored Enemy One|No,0|Yes,1}*(2+floor(@{class-0-level}/5))]] Damage Macro +[[?{Favored Enemy One|No,0|Yes,1}*(2+floor(@{class-0-level}/5))]] It doesn't scale properly and for the life of me I cannot figure it out. Please can I have some assistance
The result of the floor operation is scaling 0,1,2... but you need it to be 0,2,4... so you have to multiple it by 2 +[[?{Favored Enemy One|No,0|Yes,1}*(2+2*floor(@{class-0-level}/5))]]
Does it have to be a macro? If you're using the Roll20 Pathfinder sheet, you can add a Buff to the Buffs section that allows you to enter all of the benefits (skill bonuses as well as combat bonuses). You can then toggle the buff on and off as needed, and occasionally update the bonus value.  Also, I don't think the scaling macro works because the character will eventually have multiple favored enemy bonuses with different values. They do not ALL go up every time. The player picks ONE to increase each time (unless you're using a house rule of some sort). I assume that's not the case, as you quoted the standard rule.  Example: Ranger Rick selects humanoids (goblinoids) as his first favored enemy, for +2. Later, he adds Undead at +2, and has another +2 he can assign to either the goblinoids or the undead, making one of them +4 and the other remains +2. In five more levels, he adds Outsiders (evil) at +2, and has another +2 he can add to one of the three favored enemies. He can make the +4 become +6 and have +2 against the others, or he can have two +4s and one +2. And so on. For these, the scaling macro as described only works if he always adds the +2 increase to the same enemy, and will always give the wrong result for any others.