Register

Alternative Token Cover

An Add-on Module for Foundry Virtual Tabletop

Author: caewok Project Source: Project URL Versions 12+ (Verified 12.331) Last Updated 1 week, 3 days ago

This module provides options to calculate how much cover a targeted token has, with respect to a viewer token. Various options are provided to modify how the cover calculation is made. The GM can also define low, medium, and high levels of cover, and associate each level of cover with an active effect that is applied to the targeted token when it has cover. Workflow options are provided to facilitate automation.

This module is closely related to [Alternative Token Visibility](https://github.com/caewok/fvtt-token-visibility). Both rely on the same underlying algorithms to determine whether there are obstacles between the viewer and the target.

Cover Algorithm choices:
- Points. Test whether a 3d ray from a point on the viewer token to a point on the target token is blocked by an obstacle. Multiple points on the target can be tested to determine whether a threshold percentage of rays is met for cover. For overhead tiles, considers them to block unless the ray passes through a transparent portion of the tile.
- Area2d. Test the percentage of the overhead view of a target token that is viewable from the perspective of a point on the viewer token. For overhead tiles, does not consider transparency.
- Area3d. Test the percentage of the 3d view of a target token that is viewable from the perspective of a point on the viewer token. For overhead tiles, uses webGL to test transparency.

Major features:
- Choose whether one or more points on the viewing target are tested for cover, with the best result taken. Options include a "stereo" version that uses two points on the front facing side of the token.
- Adjust viewer and target point locations, shifting from the token border to the center.
- Account for wall height (using the [Wall Height](https://github.com/theripper93/wall-height) module) and overhead tiles.
- Adjust the vision height for tokens and prone tokens.
- For Foundry v12, define a "Set Cover" region behavior

Dependencies

- [libWrapper](https://github.com/ruipin/fvtt-lib-wrapper)
- [socketlib](https://github.com/manuelVo/foundryvtt-socketlib)

Recommended module additions

- [Alternative Token Visibility](https://github.com/caewok/fvtt-token-visibility). Needed if you want token vision to exactly match token cover.
- [Wall Height](https://github.com/theripper93/wall-height). Not only does Wall Height provide the ability to set elevation for wall tops and bottoms, it also gives tokens height based on their size. The Area3d option for Alt Token Visibility takes full advantage of token height.
- [Elevated Vision](https://github.com/caewok/fvtt-elevated-vision). Can assist with setting terrain and token elevations.
- [Midiqol](https://gitlab.com/tposney/midi-qol). If midiqol is installed, additional options are presented to allow cover calculations during an attack roll.

Support

Consider buying me a beer if you like my work. https://ko-fi.com/caewok

Categories

Available Versions

  1. Version 0.9.7

    1 week, 3 days ago
    Foundry Version 12+ (Verified 12.331) Manifest URL Read Notes
  2. Version 0.9.6

    2 months ago
    Foundry Version 12+ (Verified 12.331) Manifest URL Read Notes
  3. Version 0.9.4

    2 months, 1 week ago
    Foundry Version 12+ (Verified 12.331) Manifest URL Read Notes
  4. Version 0.9.3

    2 months, 1 week ago
    Foundry Version 12+ (Verified 12.331) Manifest URL Read Notes
  5. Version 0.9.2

    4 months ago
    Foundry Version 12+ (Verified 12.328) Manifest URL Read Notes
  6. Version 0.9.0

    5 months, 2 weeks ago
    Foundry Version 12+ (Verified 12.325) Manifest URL Read Notes
  7. Version 0.8.3

    5 months, 2 weeks ago
    Foundry Version 11 - 11 (Verified 11.315) Manifest URL Read Notes
  8. Version 0.8.2

    5 months, 3 weeks ago
    Foundry Version 11 - 11 (Verified 11.315) Manifest URL Read Notes
  9. Version 0.8.1

    5 months, 3 weeks ago
    Foundry Version 11 - 11 (Verified 11.315) Manifest URL Read Notes
  10. Version 0.6.5

    9 months, 1 week ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  11. Version 0.6.4

    9 months, 4 weeks ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  12. Version 0.6.3

    9 months, 4 weeks ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  13. Version 0.6.2

    10 months, 1 week ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes
  14. Version 0.6.1

    10 months, 2 weeks ago
    Foundry Version 11+ (Verified 11.315) Manifest URL Read Notes