OpenPF2 / Plugin

Core C++ Game Logic for OpenPF2 (Status: Pre-alpha)
https://www.openpf2.org/
Other
24 stars 5 forks source link

[Players] Reactions during Encounters #17

Open GuyPaddock opened 2 years ago

GuyPaddock commented 2 years ago

As a Player in an Action RPG game, I'd like it if there was a way to toggle which of my reaction(s) should be executed automatically and specify the order of precedence of my reactions so that they trigger automatically in response to actions from other characters on their turns, without my having to swiftly invoke reactions myself at the exact moment a reaction applies.

Acceptance Criteria

Given that I am in an encounter:

  1. Given that my character has one or more reactions available:
    1. I would expect there to be a way for me to toggle which reactions should be active.
    2. I would expect there to be a way for me to sort reactions in the order that I would prefer them to be evaluated, so that if I've enabled multiple reactions that apply to the same trigger scenario, it is deterministic which one will be invoked.
  2. Given that a virtual turn is starting for my character: I would expect that my character's reaction points would be reset to 1.
  3. Given that a reaction has been enabled, its trigger has been met, and I have 1 reaction point:
    1. I would expect the reaction to be initiated automatically as soon as the trigger conditions are met, even if during another character's turn, unless the reaction is blocked by tags or cooldowns.
    2. Given that an unblocked reaction has been initiated: I would expect my reaction points to be reduced by 1.
    3. Given that I have enabled multiple reactions that could respond to the trigger condition:
      1. I would expect the reactions to be evaluated in the order that I sorted them.
      2. I would expect the first matching reaction (from top to bottom) that is not blocked (e.g., by tags or cooldowns) to be initiated.
      3. I would expect any lower-precedence reactions than the one that was initiated to not be initiated.
  4. Given that a virtual turn is ending for my character: I would expect that any unspent reaction points would carry forward until the start of my next turn.