pf2e icon indicating copy to clipboard operation
pf2e copied to clipboard

Automate Hunt Prey

Open pedrogrullada opened this issue 8 months ago • 2 comments

This is a draft for for a Hunt Prey implementation. Since there is a lot here, I will write the idea behind it to hopefully make reviewing easier. I have no doubts this would require a migration, which I unfortunately don't have the ability to write.

Hunt Prey Effect

We add a Hunt Prey effect to be dragged onto the critter, which serves two purposes

  1. Add a self:prey:{item|origin.signature} roll option to the hunted prey, which helps automate many ranger abilities by using its target or origin counterparts as a predicate. The signature makes this roll option unique per Hunt Prey user, allowing multiple of them to mark the same creature without any conflicts in automation.
  2. Add an Ephemeral Effect rule element to the critter, which applies an effect containing a MAP rule element. This allows Flurry rangers, and those who share its benefits, to automatically get an adjusted MAP when targeting the hunted prey.

Why not Token Mark?

I decided against using the Token Mark rule element because while it's sufficient for the ranger's own abilities, it falls short when it comes to sharing your Hunt Prey and Hunter's Edge benefits. The on-critter effect allows other characters to enjoy the same automation the ranger does without needing to mark the same target multiple times.

What the effect can't handle

Since a few Hunt Prey and Hunter's Edge benefits either can be done out of combat (such as Tracking or Gathering Information) or don't have target data (such as Recall Knowledge, or "loose" skill checks), these are handled via toggles. For instance, Hunt Prey has a toggle to Track or Seek your Hunted Prey, or Outwit has one for its various skill checks against Hunted Prey.

These replace the existing, broader "Target is your Hunted Prey" toggle, which I felt necessary because, in my opinion, it would not be clear otherwise which features require the toggle to be automated and which don't, which would lead to an awkward player experience.

Hunt Prey Action

The action itself contains the effect to be dragged from chat once posted. It also contains rule elements for the previously mentioned "exploration" benefits of Hunt Prey, as well as the roll option to ignore range increment, which is now predicated on the new Hunt Prey effect.

Once the effect is applied, we can leverage it in various forms.

Hunter's Edge

Flurry

The Flurry class feature and its Masterful Hunter upgrade have had their rule elements removed, instead they all rely on a new Flurry effect containing MAP rule elements, which is only applied ephemerally when attacking the hunted prey. This approach gets around the current limitation on target roll options on that specific rule element.

Outwit

While Outwit still needs a toggle for its skill benefits, as these can't reliably contain target data, a Flat Modifier to their AC predicated on "origin:prey:{actor|signature}" allows them to automatically gain this bonus against the Hunted Prey.

Precision

Due to its effects requiring a first attack against the Hunted Prey, something not kept track of in the system, Precision does not benefit as much from this change, but it does allow us to further predicate its Damage Dice bonus. We also add mergeable suboptions to keep its "first, second and third" attack toggles contained in a single toggle.

Sharing Hunt Prey and Hunter's Edge

For feats that allow sharing your Hunt Prey benefits, such as Warden's Boon and the ranger Animal Companion feats, we modify the existing effects in the system to benefit from the same automation the Hunt Prey user has by predicating these benefits on the origin's signature. Flurry has a slightly different approach, where the flurry benefits are applied ephemerally when attacking the hunted prey, whose Ephemeral Effect rule element checks that flurry has been shared with the attacker (via the self:shared-flurry:{item|origin.signature} roll option to ensure these benefits come from the origin of the Hunt Prey effect)

Additionally, we use the Item Alteration rule element on these feats to override their description to only contain the correct effect according to their Hunter's Edge.

Other feat and features

Ranger Weapon Expertise, Hunter's Aim, Monster Hunter and Hamstringing Strike and a couple of pieces of equipment have all been implemented using the Hunt Prey effect. I thoroughly searched the system to make sure I didn't miss any instance of the old Hunt Prey implementation in feats and features.

Non-Ranger Hunt Prey

Namely the Game Hunter and Bounty Hunter archetypes have had their features that interact with Hunt Prey reworked to play nice with this implementation. Not much about them has been automated yet, so the changes are overall small.


That's about everything this PR encompasses. I know it's a lot, but any feedback here would be welcome.

pedrogrullada avatar Jun 13 '24 23:06 pedrogrullada