Register

Grid-Aware Auras

An Add-on Module for Foundry Virtual Tabletop

Author: Wibble Project Source Versions 12 - 12 (Verified 12) Last Updated 4 weeks, 2 days ago
A module which draws grid-accurate auras around tokens, which supports any size token and has customisable display styles.

Preview image

Installation

Simply search for 'Grid-Aware Auras' in the Foundry 'Install Module' screen and install it from there.

Alternatively, paste this URL into the 'Manifest URL' field of the 'Install Module' dialog in the Foundry configuration: https://github.com/Wibble199/FoundryVTT-Grid-Aware-Auras/releases/latest/download/module.json, then enable the module in your world.

Usage

  1. First open a token configuration by using the cog button when right-clicking a token on the scene, or open the prototype token configuration for an actor.
  2. Then, navigate to the new "Auras" tab, then click the + button to create a new aura. You can then set the size of the aura, how you want it to appear visually, when it should be visible, and whether you want to add any automation functionality. You can add as many auras as you want!
  3. If you need to edit an existing aura, you can click the cog button next to it to edit it. You can also quickly toggle whether that aura is visible by clicking the eye icon.
  4. Finally, just click the "Update Token" button.

Visibility

By default, newly created auras are visible to everyone so long as the token itself is visible. This can be changed in the 'Visibility' tab of the aura's config.

There are some options you can choose from in the dropdown, similar to the Foundry's default "Display Bar" option for token resource bars.

You can also fine-tune the visibility conditions, though this is a little more advanced:

Visibility config

The custom setting enables the checkbox table below the dropdown. This table shows a list of 'states' in the first column, followed by a checkbox for owner and non-owner visibility.

GAA computes visibility by checking which states are applicable, determining whether you are an owner of the token or not, then looking up whether the checkbox is ticked; If so, then the aura is visible. If there are multiple applicable states (for example targeted AND hovered), then the aura will show if ANY of the appliable states are ticked. The so-called 'Default' state is slightly special in that it applies ONLY when there are no other applicable states (i.e. when you are NOT hovering, and NOT targeting, and NOT the token's turn etc.).

In the above example, the aura is visible to a user when that user is hovering the token; OR when the token is selected/controlled (only possible by it's owner); OR if the user owns the token and it is that token's turn in the combat tracker.

Automation

Effect

This automation allows adding an effect to a token when it enters the configured aura, and removes it when the token leaves. If multiple auras are applying the same effect, the token must leave all of them for the effect to be removed.

The 'Enable Effect Automation' setting must be enabled by the GM in the settings for this feature to be available. It defaults to disabled.

Macro

This automation executes a macro when a token enters or leaves the aura. Note that this also includes when 'preview' tokens (such as when dragging a token) enter or leave. The arguments passed to the macro are identical to those passed to the gridAwareAuras.enterLeaveAura hook. Note that this macro is executed for all players that are currently on the scene.

The 'Enable Macro Automation' setting must be enabled by the GM in the settings for this feature to be available. It defaults to disabled.

Terrain Height Tools

If the Terrain Height Tools module v0.4.7 or newer is installed and activated, the tab will be available. It allows for drawing line of sight rulers between the token that owns the aura and any tokens that are inside the aura while the token is being dragged.

Square Grids

When dealing with square grids, there are different ways of handling diagonals. You can configure which rules Grid-Aware Auras uses in the module settings. Which one you choose will depend on your game. GAA supports the following:

Name Picture Description
Equidistant (1/1/1) Equidistant example In this ruleset, moving diagonally always costs 1 (i.e. the same as moving horizontally or vertically). Therefore, the resulting aura ends up being a large square around the token. For example, this is how D&D5E usually works.
Alternating (1/2/1) Alternating example In this ruleset, the first diagonal costs 1, the second 2, the third 1 again, then 2 again, etc. This is the technique that Pathfinder 2E uses, for example.
Manhattan (2/2/2) Manhattan example In this ruleset, diagonals are effectly disallowed. Moving 1 square diagonally would always cost 2 (1 horizontal and 1 vertical).
Exact (√2/√2/√2) Exact example Also known as euclidean, this ruleset treats diagonals as √2. This is the same area you would get if you used Foundry's circle template tool with an equivalent radius from the centre of each cell.

(Numbers are for illustrative purposes only)

 

See Also

Categories

Available Versions

  1. Version 0.3.2

    4 weeks, 2 days ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  2. Version 0.3.1

    1 month ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  3. Version 0.3.0

    1 month ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  4. Version 0.2.1

    2 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  5. Version 0.2.0

    2 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  6. Version 0.1.0

    3 months, 3 weeks ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes