Feu-Secret / Tokenmagic

A Foundry VTT module that allows you to add animations and graphic effects to tokens, tiles, templates and drawings.
GNU General Public License v3.0
51 stars 36 forks source link

Property to limit filters to specific users #239

Closed Aedif closed 1 year ago

Aedif commented 1 year ago

Since I've been working with limited user views in one of my modules I though I'd play around with doing the same with TMFX filters.

The new property users would accept either an include or exclude lists of user names and/or user IDs

The include list defines applicable users for this filter, and exclude inversely the non-applicable ones.

Only one or the other list should be used for the given filter.

e.g.

{
   filterType: "flood",
   filterId: "myFlood",
    . . . ,
   users: {
     exclude: ['Player2', 'UTH9wXZFkTza6igr']
  }
}