Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 3.07 KB

README.md

File metadata and controls

68 lines (50 loc) · 3.07 KB

Item Tags Title

A FoundryVTT library that provides a way to insert and manage tags across all documents. This is useful for storing simple data that can help modules and macros create generic code and reuse it easily, it also allows some type of customization. The idea of tagging Items was born because I don't use English in my sessions, and relying of autodetect based on names was going to be too much for me to handle.

This library was part of OIF and now is standalone since I think it can be very beneficial to other developers (even myself in the future!). Feel free to use it to do anything! If you have questions, join my discord or leave a issue, I will help you asap.


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.

Main Features

  • Insert Tags in almost all types of document
  • Interact with the Tags using the API

API Example

if (ItemTags.Check(game.items.get("<id>"), ['metal'])) {
  console.log('The tag is set');
} else {
  console.log('The tag is not set');
}

Adding Tags

Open a supported document and find the Tags button, click it, insert the Tag and press Enter.

All the changes you do need to be confirmed, if you click on cancel the changes you made will be discarded.

Adding Tags

Removing Tags

Open the Tags button and click on the X on the tag you want to remove. You need to confirm when removing tags.

Removing Tags

Reordering Tags

Open the Tags button and drag the Tag to its new position.

Reordering Tags

Editing Tags

Open the Tags button and double-click the name of a Tag, then press Enter to insert it again.

Editing Tags