Skip to content

RPG-Made-Simple/FVTT-Toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toolbox Title

A FoundryVTT library that provides some common helper utilities, it doesn't have a general focus, the goal is just to provide module authors with common used methods, well developed, to be reused without worries in any module or macro.

It does not contain any configurations or interface, this library is only a API.

You can safely rely on this module, all the errors and edge cases are (or will be) handled, your code will never be crashed by Toolbox by itself (note that errors still could happen, but they will always say why things didn't work correctly)._

Do you like the module? Consider supporting it :)

Buy Me a Coffee at ko-fi.com

Note for Developers (modules and macros)

Take a look at the Documentation


Supported Versions

  • V11
  • V12 as soon as it gets released

Main Features

  • Eye candy to showcase your module at the console
  • Check the existance of files and folders at ./data
  • Create files and folders at ./data
  • Load files from ./data
  • Check permissions for users
    • can() to see if a user can do something based on permissions
    • anyoneWhoCan() to get the first found user that can do something based on permissions
    • everyoneWhoCan() to get a Array containing all the users that have the passed permissions
    • canEdit() to see if a user can edit something
    • someoneWhoCanEdit() to get the first found user that can edit something
  • Math functions
  • Token methods