Skip to content

hodpub/zone-movement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Forge Installs ko-fi

Zone Movement

This module changes how the scene measure works, allowing you to measure that based on zones! It works for both the ruler and token drag.

Example Screenshot Example Screenshot Example Screenshot
Example Screenshot Example Screenshot Example Screenshot

Installation

  1. Go to the setup page and choose Add-on Modules.
  2. Click the Install Module button:
    1. Search for Zone Movement.
    2. Paste the following on the Manifest Link: https://github.com/hodpub/zone-movement/releases/latest/download/module.json
  3. In your world, enable the module on the module settings.

How to configure a map to use zones

  1. On the Grid configuration, change the unit to zone. Even if you use another language, use zone on the configuration. The label will be translated to the language (if a translation is available).
    • The module will only measure the distances in zones if you configure the unit to that
  2. Create regions on the map to define your zones. You need to add a Modify Movement Cost behaviour on the region
    • You don't need to change the values of the movement cost
    • If a region does not have the Modify Movement Cost behaviour, it will not be considered a zone
      • This way you can still have regions to do any other behaviour you want

And that's it!

Other Configurations

  • Enable/Disable the distance labels, based on the Coriolis: The Great Dark system.
    • Adjacent space: Engaged
    • Same Region: Short
    • Adjacent Region: Medium
    • Up to 4 Regions: Long
    • More than 4 regions: Extreme
  • Configure custom labels for the distances above
    • Accepts Translation keys
  • Consider or skip areas without regions on the zone calculation

Gridless maps

The module now fully supports gridless maps, with a small caveats: we recommend to disable the "Count No Region as Zone". For gridless maps, we generate the paths for zone calculation dynamically. Foundry APIs consider that a region boundary is not "inside" the region itself, which means that if a point of the movement hits the boundary of the region, it will wrongly calculate that point as a new region.

Debug options

To make it easier to debug some edge cases, there are two configurations.

The first option, Draw Token Points, will draw dots on the map to show the points that were used for the zone calculations.

The second option, Log Debug Messages, will log messages with the path information.

If you are having some issues, please, enable these options so you can provide the debug data for us.

Tested Systems

Systems do not need to do anything to use this module. It should be fairly simple to use it. However, if the system does any change on the Canvas' Ruler or the Token's Ruler, it will not activate the module. If you test a new system, open a PR with the new system on this list.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors