Skip to content

A Foundry module for adding tags to RollTables to roll on.

License

Notifications You must be signed in to change notification settings

DiceT/tabletags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Foundry module for adding tags to RollTables to roll on.

Currently, you can roll by tag and all tables that share that tag will be considered. One will be randomly chosen to be rolled upon. You can optionally include RollTables in the Compendium. There is a macro included, but only one line is needed.

await TableTagsAPI.TableTagRoller(["Trading Post", "Specialty"]);

  • See below for all properties

0.2.0

  • Added the ability to select tables from tags with OR instead of just AND.

0.1.4

  • Added the ability to look for multiple TableTags. All TableTags must be matched in order for the table to qualify. See new method below.
  • If a table result is designated as "Roll Twice" the table will continue to be rolled on until two unique results are returned.
  • Added the ability to roll on other tables when the [ROLL|tabletag1,tabletag2] is included.
  • Added the ability to roll "quietly." No effects are accompanied with the table roll. See new method below.

TableTags.tableTagRoller(tableTag, quietMode = false, includeCompendium = true, asAnd = true )

tableTag can be a single TableTag or an array of TableTags. ["TableTag1","TableTag2"]. quietMode = true | dice effects will not be played (sounds and Dice So Nice). This is effective when you have scripts generating content requiring more than one roll on tables. Default is false. includeCompendium = false | Tables in the compendium will be ignored. Default is true. asAnd = true | Tables must have all listed tags to qualify. false | Tables must have at least one of the listed tags to qualify. Default is true.

image

About

A Foundry module for adding tags to RollTables to roll on.

Resources

License

Stars

Watchers

Forks

Packages

No packages published