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
- In Foundry Setup, open Add-on Modules → Install Module. Search for Arms Reach or paste the release manifest into Manifest URL.
- Launch the world, open Manage Modules, enable Arms Reach and reload.
- 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
- Reach uses the separation between object footprints in scene units. Touching edges have zero horizontal separation. Doors and walls use the nearest point of the wall segment, including on diagonal walls. Tiles use the scene-aligned bounds of their Foundry shape, including its texture anchor. A token’s facing direction does not change its footprint. Appearance scaling, movement costs and system-specific weapon reach are separate from this measurement.
- When both objects supply elevation, the distance calculation can include vertical separation. The optional elevation check also compares applicable height limits. Levels and Wall Height can supply additional ranges.
- For Stairways, enable both modules in the world and turn on the stairway integration in Arms Reach settings. Set the default range or open a departure stairway’s Arms Reach tab to override it. A value of 0 restores the world setting. In a test with Stairways 0.12.2 on Foundry 14.371 and D&D5e 6.1.2, a player could teleport at 5 feet with a 7.5-foot override and was blocked at 15 feet. Stairways project
- With Tagger active, turn on the filter for the desired type and add the exact tag
armsreachto the objects you want to check. Doors use the wall filter. Other objects of that type continue to use their normal canvas interaction. Named tag lookups in macros require Tagger. - libWrapper is recommended when combining modules that wrap the same controls. Arms Reach includes a fallback. Remote queries use Foundry’s native transport.
- The module registers a per-client debug setting and a GM menu to reset its stored world settings. The reset asks for confirmation. English, German, French, Spanish, Brazilian Portuguese and Polish translations are included.
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.