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

Initiative score calculation #11

Open
gergo-szabo opened this issue Jul 20, 2023 · 1 comment
Open

Initiative score calculation #11

gergo-szabo opened this issue Jul 20, 2023 · 1 comment
Labels
new feature New feature or request

Comments

@gergo-szabo
Copy link
Contributor

It would be a nice feature but implementation seems problematic.

Basic calculation: score = D20 + modifiers

Advantages + Modifiers:

1, Dexterity modifier

2, Alert feat (+5)

3, Class features - Some are not passive ...

  • Barbarian: Advantage on initiative rolls.
  • Bard: Half-proficiency on all skills and skill checks.
  • Fighter (Champion): Half-proficiency bonus to DEX checks. Player decision based (Remarkable Athlete)
  • Ranger (Gloomstalker): Add your Wisdom modifier to your initiative. Player decision based (Dread Ambusher)
  • Rogue (Swashbuckler): Add your Charisma modifier to your initiative. Player decision based (Rakish Audacity)
  • Wizard (Chronurgy/War Magic): Add your Intelligence modifier to your initiative. Player decision based (Temporal Awareness)

4, Items - There might be more!

  • Rod of Alertness: Advantage on initiative rolls.
  • Sentinel Shield: Advantage on initiative rolls and Wisdom checks.
  • Sword of Kas: Grants a 1d10 bonus to your initiative rolls.
  • Weapon of Warning: Advantage on initiative rolls.

5, Active spells - Might not be the full list. Also seems tricky to implement

  • Guidance (cantrip): Roll a d4 and add it to an ability check.
  • Enhance Ability (2nd level): Advantage on all DEX ability checks when you choose Cat’s Grace.
  • Foresight (9th level): Advantage on all ability checks, attack rolls, and saving throws.
  • Gift of Alacrity: A newer spell from Explorer’s Guide to Wildemount, this spell lets the target add the result of a d8 to their initiative rolls for the next eight hours.
@tassaron
Copy link
Owner

Thanks for that list. As you said, it would be tricky to implement with the current state of the library, but this gives a good idea of what the long-term goal could be.

  • Character methods for doing ability checks (including initiative), savings throws, attack rolls
  • Character tracks if it gets proficiency bonus added to certain checks, etc.
  • Applying advantage/disadvantage to different rolls

All this stuff could be implemented and tests written for it, and eventually such properties could be more 'automatically' handled when more code is written around class features, feats, spells, etc. But that would be a large project.

@tassaron tassaron added the new feature New feature or request label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants