Register

Arms Reach

An Add-on Module for Foundry Virtual Tabletop

Author: 4535992 Project: Source Foundry Versions 0.6.2 to 14 (Verified 14) Last Updated 36 minutes ago

Arms Reach


Arms Reach checks how far a player’s token can reach when interacting with objects on the Foundry canvas. Doors work immediately after activation. A GM can turn on other object types, change their ranges and override the range of an individual object.

Install and configure

  1. In Foundry Setup, open Add-on Modules → Install Module. Search for Arms Reach or paste the release manifest into Manifest URL.
  2. Launch the world, open Manage Modules, enable Arms Reach and reload.
  3. In Configure Settings → Arms Reach, enable the interactions you want and choose their maximum distances. Reload clients after changing which integrations are active. Distances use the scene’s units, such as feet or metres.

This branch targets Foundry VTT 14. The installer uses the latest published release. A checkout of this branch can be built and linked to a local Foundry installation with the development tools below.

Interactions and defaults

Target Interaction checked Initially enabled Default range
Door Click its control to open or close it. Right-click uses Foundry’s lock or unlock action for GMs. The configurable Open closest door keybinding defaults to E and chooses the nearest visible door within range. Yes 0.5
Stairway The optional Stairways module’s pre-teleport hook checks the departure point before moving a token. No 2.5
Map note Double-click a note to open its journal. The integration also enables core note display when that setting is available. No 2.5
Token Double-click a target token to open its sheet, for example a loot actor. The source is the token controlled before the target was clicked. No 5
Ambient light Right-click the control on the GM lighting layer to toggle the light. The optional light-switch integration also checks its switch. No 2.5
Ambient sound Right-click the control on the GM sound layer to toggle the ambient sound. No 2.5
Drawing Click to select an editable drawing on the drawings layer. No 5
Tile Click to select a tile on the GM tiles layer. No 5
Ordinary wall Macros can check the wall through the reach API. Doors have their own canvas control and settings. Canvas click unavailable 0
Measured template Use the universal API with an explicit range for a legacy measured-template document on v14. Canvas click unavailable Supplied by caller

Foundry and the game system determine which controls and sheets a player can use. A successful reach check forwards the original interaction. Foundry handles door permissions, pause, lock state and configured door sounds.

Choose the source token

Select one token. With the owned-token fallback enabled (the default), a player with no selection uses their assigned character’s token on the scene or the first owned token available. Multiple selected player tokens cannot make a single-token reach check. The GM can require ownership of the source token, turn on reselection after interacting, and toggle failed-interaction notifications. A world setting controls the reach checks as a whole.

GMs bypass range checks by default. Each supported category has its own GM setting. To test a player’s limit as GM, enable the check for that category and control exactly one token. Deselecting all tokens restores the GM bypass. Foundry 14 also clears token selection when you switch to the lighting, sound, drawing or tile editing layer. On those layers a player with editing permission can use the owned-token fallback. Foundry’s right-click door lock action remains available to the GM.

Set a range on one object

Enable the placeable configuration setting under Configure Settings → Arms Reach, then open the object’s configuration. On a sheet with tabs, select Arms Reach. On a single-page sheet, look for the Arms Reach fieldset in the form body. Enter an Interaction range between 0 and 15 in increments of 0.5 and save the sheet. A positive value overrides the type’s default. Measured templates take their range from the calling macro and have no range field. A value of 0 restores that default. Turning off the sheet control hides the editor and preserves saved overrides.

For example, in a scene measured in feet, set one wall configured as a door to 10 and leave the world’s door range at 0.5. Only that door gets the longer reach. Macros can read its numeric flag with wall.document.getFlag("arms-reach", "range").

Distance, elevation and optional integrations

Earlier releases were used with Ambient Doors, Designer Door, Smart Doors, Door Color, Rideable and Lock & Key. Compatibility with a particular combination on Foundry 14 depends on the versions installed. A third-party trigger that opens a sheet or updates a document directly can bypass the canvas click. Macros implementing their own interaction can call the API below.

Verified interactions on Foundry 14

These checks used Foundry 14.371, D&D5e 6.1.2 and separate GM and player clients on a five-foot grid.

Scenario Observed result
Player opens and closes a door Each permitted click changed the wall state and played the configured sound. An out-of-range click left the door closed and produced no audio.
Player double-clicks a map note or a token The journal or actor sheet opened in range and stayed closed out of range.
Player clicks their editable drawing The drawing was selected in range and remained unselected out of range.
GM edits a tile, light or sound The tile could be selected and right-click toggled each ambient control. Switching to these GM-only editing layers cleared token selection and applied the GM bypass. With one token selected and GM checks enabled, each object's click handler forwarded the interaction in range and refused it out of range.
Player calls the macro API Checks by document and ID passed nearby and failed farther away for notes, tokens, lights, sounds, drawings, tiles, ordinary walls and measured templates. The template checks used an explicit range.
GM saves an object override The range reopened at its saved value on token, light, drawing and tile tabs and on the single-page note, sound and wall forms. Stairways also exposed its own tab.
Player queries the GM A wall query and its compatibility call agreed with local results. A different scene ID returned false. A status broadcast returned a result for each connected user.

Macro and socket API

Use game.modules.get("arms-reach").api for local checks and api.socket for queries to other Foundry clients. The API and socket reference includes signatures, supported targets, return values, permissions and examples.

Development

Use Node.js 24 and run npm ci. Run npm run check to validate the source, formatting, tests and installable distribution. Generate TypeScript declarations with npm run types or the searchable HTML developer reference with npm run docs. The build writes to dist/arms-reach/. See the build guide for watch mode, local linking and release preparation.

This source targets Foundry VTT 14. The release workflow takes an explicit version with a matching dated entry in CHANGELOG.md and produces module.zip and module.json.

Issues

Report bugs and feature requests in the Arms Reach issue tracker.

Categories

Available Versions

  1. Version 14.0.1

    36 minutes ago
    Foundry Version 14 - 14 (Verified 14) Manifest URL Read Notes
  2. Version 14.0.0

    5 months, 2 weeks ago
    Foundry Version 14 - 14 (Verified 14) Manifest URL Read Notes
  3. Version 13.0.4

    9 months, 2 weeks ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  4. Version 13.0.3

    9 months, 2 weeks ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  5. Version 13.0.2

    1 year, 2 months ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  6. Version 13.0.1

    1 year, 5 months ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  7. Version 12.0.0

    1 year, 9 months ago
    Foundry Version 11 - 12 (Verified 12) Manifest URL Read Notes
  8. Version 2.4.4

    2 years, 4 months ago
    Foundry Version 11 - 12 (Verified 12) Manifest URL Read Notes
  9. Version 2.4.3

    2 years, 5 months ago
    Foundry Version 11 - 12 (Verified 11) Manifest URL Read Notes
  10. Version 2.4.2

    2 years, 5 months ago
    Foundry Version 11 - 12 (Verified 11) Manifest URL Read Notes
  11. Version 2.4.1

    2 years, 7 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  12. Version 2.4.0

    2 years, 8 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  13. Version 2.3.6

    3 years ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  14. Version 2.3.5

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  15. Version 2.3.4

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  16. Version 2.3.2

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  17. Version 2.3.1

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  18. Version 2.3.0

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  19. Version 1.1.0

    Foundry Version 0.6.2+ (Verified 0.6.2) Manifest URL Read Notes
  20. Version 1.0.1

    Foundry Version 0.6.2+ (Verified 0.6.2) Manifest URL Read Notes
  21. Version 1.0.0

    Foundry Version 0.6.2+ (Verified 0.6.2) Manifest URL