fantasycalendar / FoundryVTT-Tagger

Other
6 stars 4 forks source link

[REQUEST] `Tagger.getByTag` bound to a specific radius from the selected token. #20

Open thatlonelybugbear opened 1 year ago

thatlonelybugbear commented 1 year ago

Is your feature request related to a problem? Please describe. I am making perception checks and get the tags of objects, in a specific radius from a given token, with a tag of perception_needed.number Then I go through the tags collected and match the .number to the perception result and make the collected objects visible accordingly.

Describe the solution you'd like const objects = Tagger.getByTag("tag_to_find", { matchExactly: true }, { radius: 30 }, { source: token }); or something along this line.

Describe alternatives you've considered Using the already provided functions to gather the proper PlaceableObjects and filter them afterwards according to the distance from the source token.