Simple FoundryVTT module that displays character (both PC/NPC) alignment on hovering a token.
It will display the alignment for all tokens to the GM and only for player-owned tokens to players.
This module uses the Core functionality used to display the token tooltip without interfering with it.
You could either:
- Navigate to the Foundry Setup screen and click on the Modules tab
- Click Install Module and look for HoverAlign
or:
- Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu
- Select the Install Module button and enter the following URL: https://raw.githubusercontent.com/johnmartel/hover-align/master/module.json
- Click Install and wait for installation to complete
First, have a look at Foundy's introduction to module development. I suggest also looking at the Languages and Localization article.
Then, it's pretty standard JS development:
- Install nvm
- Develop using a working version of node:
nvm use
- Install dependencies:
npm install
- Lint your code:
npm run lint
- Test your code:
npm test