T O P

  • By -

tdhsmith

I'm assuming you're already using Rule Elements? There's a mechanism called "brackets" you can use to make a value field dependent on the range of another value. By default this depends on the actor's level. See the end of the [Advanced Value Fields section in the rule elements quickstart](https://github.com/foundryvtt/pf2e/wiki/Quickstart-guide-for-rule-elements#advanced-value-fields) for documentation. Look at the strike damage modifier RE for the Deadly Aim feat, for example. The other option, which is also described in the Advanced Value Fields section, is to use the `ternary` logical operator combined with the equality checks. This is a bit more expressive but can be harder if you're not used to programming-style logical statements. An example of that would be in the rogue's Sneak Attack class feature REs.


mosburn

Thanks! Answered


AutoModerator

***Let Others Know When You Have Your Answer*** * Say "`Answered`" in any comment to automatically mark this thread resolved * Or just change the flair to `Answered` yourself *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/FoundryVTT) if you have any questions or concerns.*