Token Hotbar
If you want to buy me a coffee
This module provides a unique hotbar for every token. If the token is linked to an actor (for player characters), then all tokens of that actor will have the same hotbar.
It's slimmed down to make maintenance easier and hopefully the code is easier to understand for anyone who has ever written a macro in Foundry.
This is a follow up of the job done from janssen on the module foundry-tokenhotbar-js forked from the original league repository.
Installation
It's always easiest to install modules from the in game add-on browser.
To install this module manually:
- Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
- Click "Install Module"
- In the "Manifest URL" field, paste the following url:
https://raw.githubusercontent.com/p4535992/foundryvtt-token-hotbar/master/src/module.json
- Click 'Install' and wait for installation to complete
- Don't forget to enable the module in game using the "Manage Module" button
Features
Dynamically change the hotbar
All pages of the hotbar will change depending on the token you have selected.
Use an additional hotbar
Since version 1.3.1, this module supports using Norc's Custom Hotbar or Monk's Hotbar Expansion to place additional Token Hotbars on the token.
Enable the Token Hotbar per client
Since version 1.3.1, this module supports enabling and disabling the Token Hotbar per client. For example, the GM can use this to have different hotbars for different tokens. But the players might want a single hotbar as they usually control a single token anyway.
Shared Token Hotbar
Hotbar's can be shared manually via the provided macro. A GM can run this macro and select for which tokens and with which player they want to share the hotbar. You can find this macro in the compendium 'Token Hotbar'.
Settings
- Always link to actor: link the hotbar to the actor, even if the token itself is not linked.
- Use Norc's Custom Hotbar: Place the Token Hotbar on Norc's Custom Hotbar, instead of the original hotbar.
- Debug Mode: Show detailed messages in the console (F12).
API
A little api to use in macro or external module ecc.
The api is reachable from the variable game.modules.get('token-hotbar').api
or from the socket libary socketLib
on the variable game.modules.get('token-hotbar').socket
if present and active.