40 lines
2.9 KiB
Markdown
40 lines
2.9 KiB
Markdown
---
|
|
type: Design Concept
|
|
title: Tyrant Game State Machine
|
|
description: Defines lifecycle, succession, selection, and pause behavior for a Tyrant game.
|
|
---
|
|
|
|
# Tyrant Game State Machine
|
|
|
|
## Lifecycle
|
|
|
|
The game begins unstarted. An administrator starts it by assigning the first Tyrant; the administrator may explicitly assign the first Vigilante or leave that role vacant for the blue arena challenge. A running game may be paused without deleting its state and later resumed.
|
|
|
|
Pausing freezes gameplay progression, role inactivity checks, pending-selection deadlines, ability cooldowns, and daily-use timers. Role and class effects are suppressed while paused and restored on resume.
|
|
|
|
## Tyrant succession
|
|
|
|
When a player directly kills the Tyrant, that killer becomes the new Tyrant immediately. When no player is credited with the death, or when the Tyrant becomes inactive or relinquishes, the reign ends and the Tyrant role remains vacant for the shared arena challenge. The former Tyrant may compete again under the same rules as other opted-in participants.
|
|
|
|
Every ended Tyrant reign clears all role-side assignments and resets reign progression. The shared arena presents the Tyrant challenge first with a red particle boundary. Its winner becomes Tyrant at level zero with one starting unlock choice; only then may a vacant Vigilante role open the blue challenge at the same location.
|
|
|
|
## Vigilante succession
|
|
|
|
Every Vigilante death ends that assignment regardless of cause. Vigilante inactivity and relinquishment also end the assignment, and every new Tyrant reign clears the previous assignment. Followers are cleared rather than transferred.
|
|
|
|
While the game is running with an active Tyrant, no open Tyrant challenge, and no Vigilante, the administrator-configured arena opens its Vigilante challenge. One eligible opted-in non-Tyrant player at a time may challenge the arena boss. Defeating it assigns that player as Vigilante. Leaving, disconnecting, or dying resets the fight without preventing an immediate retry. Without an active Tyrant or configured arena, the role remains vacant and no boss exists.
|
|
|
|
A Tyrant earns progression from a Vigilante death only when the Tyrant personally killed the Vigilante.
|
|
|
|
## Pending selections
|
|
|
|
New random and pending role selections are not created. Legacy pending Tyrant or Vigilante selections are cleared into the applicable arena vacancy without granting a role. A Tyrant vacancy has priority, so the two role challenges cannot run concurrently.
|
|
|
|
## Related stories
|
|
|
|
- [Start, pause, and administer the game](../user-stories/us-001-start-pause-and-administer.md)
|
|
- [Transfer and reset the Tyrant role](../user-stories/us-002-transfer-and-reset-tyrant.md)
|
|
- [Handle inactivity and arena vacancies](../user-stories/us-010-handle-inactivity-and-selection.md)
|
|
- [Claim the Vigilante role in the arena](../user-stories/us-019-claim-vigilante-in-arena.md)
|
|
- [Claim the Tyrant role in the arena](../user-stories/us-020-claim-tyrant-in-arena.md)
|