Register

Grid-Aware Auras

An Add-on Module for Foundry Virtual Tabletop

Author: Wibble Project Source Foundry Versions 11 to 13 (Verified 12) Last Updated 5 days, 23 hours 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.

Radius

The radius of the aura can either be a number or a roll expression.

Roll expressions must be deterministic (i.e. not contain any dice expressions, for example). They are otherwise able to use any feature available to Foundry's rolls - including maths equations/functions. Roll expressions can also access values on the actor or the item (for item auras). This is done by using @actor.<path> or @item.<path>. For example, if you were using the Lancer game system, you could use @actor.system.sensor_range to have a radius equal to a mech's sensors. The exact path will depend heavily on the game system you are playing.

On square and hexagonal grids, the final value will be rounded to the nearest whole number. On gridless scenes, this can be a decimal value. If the final value is less than 0, the aura will not be drawn.

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

Automation is the broad category for doing things when tokens interact with auras. See the documentation for the various automation types offered:

Presets

If you have an aura that you want to re-use in many places, or you wish to automatically apply auras to newly created tokens, you can use the preset functionality.

Note that presets are saved to the Foundry world, meaning that any other players that have permission to update their tokens will be able to add saved presets. You require GM permissions to be able to save, edit, or delete presets however.

To create a preset, you can either open the context menu of an aura that you have already created and choose 'Save as Preset', or you can open the GAA preset manager in Foundry's game settings panel and create a new one from there.

To add a preset to a token or item, click the + button in the aura table and choose the 'Add Preset' item, then choose the preset you wish to add.

You can use the preset manager panel to edit or delete existing presets. Editing a preset will NOT change any cases where this preset has been added to a token/item. Here, you can also choose actor types for the "Auto-apply to" setting. What this does is when tokens that represent an actor of this type are created on the scene, the aura will automatically be added to that token (if an aura with the same name does not already exist).

Note that the enabled/disabled toggle in the preset manager determines the initial enabled/disabled state of the aura. It does not enable or disable the preset itself (i.e. a disabled aura will still show up in the 'Add Preset' menu and will still be auto-applied to relevant tokens).

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.5.4

    5 days, 23 hours ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes
  2. Version 0.5.3

    1 week, 2 days ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes
  3. Version 0.5.2

    3 weeks, 1 day ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes
  4. Version 0.5.1

    4 months, 3 weeks ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes
  5. Version 0.5.0

    4 months, 4 weeks ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes
  6. Version 0.4.4

    5 months, 4 weeks ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  7. Version 0.4.3

    6 months, 2 weeks ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  8. Version 0.4.2

    7 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  9. Version 0.4.1

    7 months, 2 weeks ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  10. Version 0.4.0

    8 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  11. Version 0.3.2

    9 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  12. Version 0.3.1

    9 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  13. Version 0.3.0

    9 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  14. Version 0.2.1

    10 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  15. Version 0.2.0

    10 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  16. Version 0.1.0

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