OpenPF2 / Plugin

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

[Players] Transitions between Modes of Play and Initiative #12

Closed GuyPaddock closed 2 years ago

GuyPaddock commented 2 years ago

As a Player in an Action RPG game, I'd like it if the game would automatically detect when I've encountered enemies while in exploration mode and transition into "encounter" mode so I can fight enemies and level up my character(s).

Acceptance Criteria

  1. Given that I am in "exploration" mode:
    1. Given that I encounter enemies: I would expect the game to transition automatically into "encounter" mode.
    2. Given that my character or my party needs to rest or needs supplies: I would expect there would be a way to transition into "downtime" mode.
  2. Given that I am in "encounter" mode:
    1. At the start of an encounter: I would expect the game to "roll" initiative, determining the attack order for every character/creature in the encounter.
    2. I would expect to not be able to leave "encounter" mode until one of the following happens:
      • I retreat (if possible).
      • The enemy retreats.
      • All enemies are killed.
  3. Given that I am in "downtime" mode: I would expect there would be a way to transition into "exploration" mode.
GuyPaddock commented 2 years ago

Transitioning into "encounter" or "exploration" mode from down-time mode is possible via calls into the game mode. Presumably some sort of world map or in-map trigger will be responsible for this, so there's not more to implement here.