Latest version | 2.2.0 |
---|---|
Minimum Core | 12 |
Compatible Core | 12 |
File size | 0 B |
Last updated | 3 days ago |
Created | 7 months ago |
Authors | |
Languages |
|
Systems | All systems |
Project source | Project URL |
A simple module for Foundry VTT which adds outlined aura rings to a token.
This Foundry VTT module allows you to add and customise aura rings emanated from a token, ideal for cleanly representing the range of aura type effects without obscuring the map.
Aura rings are calculated as an emanation, based on the Pathfinder 2nd Edition rules. This means that the range of the aura ring is calculated from the edge of the token, instead of the centre.
Creatures larger than 1 tile will have flattened sides to correctly represent their aura range.
Visibility of aura rings are obscured by fog-of-war, and hidden entirely when the viewing player is unable to see the token from which the aura rings are being emitted.
Hidden tokens will only show their aura rings to the game master.
Dynamic Token Rings, which is a Foundry VTT v12 feature, adds a ring directly around the edge of a token to represent resources, such as health or mana.
Token Aura Ring draws an arbitrary ring at any range from the token's edge.
Either search for and install this module within Foundry VTT, or copy this address into the Manifest URL
bar:
https://raw.githubusercontent.com/AnthonyEdmonds/token-aura-ring/main/module.json
Once enabled, you can add and configure aura rings from the "Confgiure Token Aura Rings" button on the "Identity" tab of any token settings page (to avoid any confusion with dynamic token rings).
Settings are fully previewed, and are not stored until you press "Save Changes" and "Update Token".
Aura rings may be drawn as an outline, a solid fill, or both.
The colour, opacity, and weight can be individually controlled, and strokes have the option of being "closed" if a complete outline is desired.
You can add up to 100 aura rings to a single token by pressing the "Add Aura Ring" button.
Press the "Duplicate Aura Ring" button to create an exact copy of the currently selected aura ring.
Press the "Delete Aura Ring" button to remove the currently selected aura ring.
You can control which user roles can see an aura ring using the "Visible to" setting.
You can also quickly show and hide an Aura Ring by pressing the "Eye" button or checking the "Hire Aura Ring" option.
You can adjust the "Direction" and "Angle" settings to create arcs instead of circles.
The "Angle" setting determines how much of the arc to draw.
The "Direction" setting rotates the arc around the token.
Arcs are drawn relative to the top of the token, where a direction of "0" is considered facing forward.
The arc is centralised around its direction, where an angle of "90" would have 45 degrees on either side.
When you rotate the token the arc will rotate with it.
Setting the "Angle" to "360" will draw a complete circle.
This feature is experimental and under development
Checking the "Use grid-based shapes" option will turn the aura ring from euclidean to grid-based, if the current scene has a grid enabled.
Tokens must be of a uniform size (1x1, 2x2, 3x3, etc) for this to work.
Hex grids are not currently supported.
You may set the radius of an aura ring to a negative value to draw within the token's bounds.
This will only work with tokens which feature transparency, and is limited by the overall size of the token.
For example, a standard medium creature (1 square = 5 foot) can have a minimum radius of -2.49 feet.
Module developers can control Aura Rings using the AuraRingApi
class.
Macro developers can control Aura Rings using the TokenAuraRing
global variable.
Function | Parameters | Returns | Description |
---|---|---|---|
all | SimpleTokenDocument | Array[AuraRing] | Retrieve all Aura Rings |
blank | AuraRing | Get an unsaved empty Aura Ring without an ID | |
delete | SimpleTokenDocument, id | Remove an Aura Ring | |
deleteAll | SimpleTokenDocument | Remove all Aura Rings | |
get | SimpleTokenDocument, term, field = 'id' | AuraRing|false | Retrieve a specific Aura Ring by a field, ID by default |
index | SimpleTokenDocument | Object{id: name} | Retrieve a list of Aura Ring names keyed by their ID |
new | SimpleTokenDocument | AuraRing | Create a new Aura Ring from the default settings |
set | SimpleTokenDocument, AuraRing | Overwrite an Aura Ring with new settings | |
setAll | SimpleTokenDocument, Array[AuraRing] | Overwrite all Aura Rings with a new set | |
setValue | simpleTokenDocument, id, key, value | Update a specific Aura Ring value directly |
All changes will trigger flag updates on the SimpleTokenDocument, and can be edited in the normal UI.
It is left up to the module developer to ensure that any set Aura Rings are valid.
This macro will list all of the Aura Rings on the selected token:
script
macroconsole.log(
TokenAuraRing.all(token.document),
);
This module may not work with game systems or addons which already implement their own token auras.
If you encounter any problems, raise a ticket on Github and I'll take a look.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: token-aura-ring or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.