This plugin provides the Initiative Tracker block, which can be used to organize PC (Player Character) and NPC (Non-Player Character) combat initiative scores for Table-Top Role-Playing Games.
Built with WDS Block Starter and @webdevstudios/create-block.
- Upload the
initiative-tracker
folder to the/wp-content/plugins
directory. - Activate the Initiative Tracker plugin through the 'Plugins' menu in WordPress.
- Add the 'Initiative Tracker' block in a post or page.
- Populate the Player and NPC lists with character, player, and initiative data.
- Save and view your page or post.
- Use the 'Next Character' button to iterate through active characters.
When the Initiative Tracker block is active (i.e., selected for editing) in the block editor, characters are divided into Players (PCs) and NPCs and sorted alphabetically in ascending order. Otherwise, both character lists are combined and sorted according to initiative score in descending order.
This block is best for games where there's a fairly good plan for the session's combat ahead of time. Prior to the start of the session, create a fresh page or post for the session, and add an Initiative Tracker block. Populate the block with the players (PCs), then duplicate the block for as many combats you expect to encounter (this way you don't have to re-enter players for each block). Next, add the different NPCs for each encounter to each block – bonus: roll your NPCs' initiative scores and enter those into the blocks ahead of time – and save your post. Finally, during gameplay, input the players' initiative scores for the current round of combat on the frontend by clicking "Edit Initiative", entering player scores, then clicking "Save Initiative." Now you can click "Next Character" to iterate through the active characters.
Feel free to create an issue or PR in the Github repo here.
- Fixed: Changed character edit
<a>
tags to<button>
tags for a11y purposes.
- Updated: Aligned character initiative scores to right and changed separatrr character.
- Fixed: Updated webpack config and js setup to work with wp-scripts v12.
- Updated: Brought npm packages up to latest versions.
- Fixed: Removed duplicate block wrapper
div
on frontend display.
- Fixed: Updated doc blocks and plugin version.
- Updated: Cleaned up route handling code for clarity.
- Added: Implemented frontend editing of character initiative scores.
- Added: Created WP REST API route for editing initiative tracker blocks.
- Updated: Converted class components to function components.
- Updated: Simplified frontend character name and player name display.
- Removed: Removed notes field.
- Fixed: Updated "current" character pointer to work across browsers.
- Fixed: Cleaned up doc comments, updated block keywords, addressed linting errors.
- Added: Create Initiative Tracker block with character sorting by name and initiative.
- Added: Create frontend 'current character' pointer and 'next character' button.