Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exploit Vulnerability as an action #181

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

xyzzy42
Copy link
Contributor

@xyzzy42 xyzzy42 commented Nov 12, 2024

This is my attempt to get the EV roll to follow all the system automation stuff, by using the SingleCheckAction class from the system used by a bunch of other actions.

Everything appears to work. The trick is to use an EphemeralEffect to the give the target of the EV check an effect that uses a SpecialStatistic to give the target an EV DC to roll against.

There is one issue, the action code doesn't know how to make a translated check-DC label for lore skills. There's already a " Check" translation format it could use, but the bit of code doing the flavor text doesn't do that. I've got a PR for the system that fixes this, foundryvtt/pf2e#17223

The pf2e system has an issue where you can't have a target for a check unless
that check is against a *named* DC on the target.  A DC specified numerically
doesn't work.  EV uses the standard level based DC for the target, which doesn't
exist as a named DC, so this is a problem.

It is possible to create a new named DC using the SpecialStatistic RE, and
that's what these effects do.  An EphemeralEffect RE on the roller can be used
to give these effects to the target of the EV check for the roll.  The new
statistic is named DC and targetting the check works.

There are two, one for the proficiency without level variant and one for normal
rules.  The system doesn't automatically subtract actor level from
SpecialStatistic proficiency bonuses when PwoL is used.
This adds a synthetic rule during the derived data wrapper to give an
EphemeralEffect RE to thaum actors (with the EV feature).

The EE will give targets of EV a new DC to roll against for the EV check.

It would make sense to put this RE on the EV class feature, but that's a
system item and auto-modifiying those has issues.  Also, by doing it in
code, it can choose the normal of PwoL variant of the DC to apply.

It wouldn't work to put it on (each) implement, as the module doesn't
enforce holding an implement to use EV.
This reuses the SingleCheckAction class from the system for the mechanics of the
roll.  More of the system automation works this way.

The only thing it needs to do is setup the Diverse Lore DC text in the roll
note.  Maybe it's possible to get the system to inject that too?
@mysurvive
Copy link
Owner

mysurvive commented Dec 27, 2024

In 6.8.1, this isn't evaluating the roll vs the DC, and the degree of success is null
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants