Skip to content

operation404/boneyard-template-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See my other modules in the Boneyard Collection.

Boneyard Template Tools

Boneyard Template Tools extends the MeasuredTemplateDocument and TokenDocument classes to add new functionality for detecting collisions between tokens and templates, as well as adding utilities for live previewing of template placement.

Documentation and examples can be found in the repository wiki.

TODO

  • Create a new template subclass that represents a set operation on two or more templates.
  • Provide more token collision shape options. Ellipse seems like a given, potentially more irregular shapes. Also worth investigating a way to set a token to have a specific collision shape instead of using one shape representation for all collisions.
  • Expand collision methods to allow for template-template collision and token-token collision.
  • Add proper module settings to set the default targeting mode.
  • Either add new targeting modes or update the existing modes to handle targeting more accurately to the targeting mode descriptions. Any token space should actually calculate center points of grid spaces even if the token isn't properly aligned to them. Token region should actually check if the regions overlap rather than the simpler workaround of generating a dense field of points.
  • Add functionality to live preview placing a template on the grid.
  • Add methods to give a template a function to run on all tokens that the template contains. Worth investigating if there are other useful automation tools I can provide for templates. Turning this idea into a new module.

About

API for extending using measured templates to target tokens in FoundryVTT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published