Aedif / TokenVariants

GNU General Public License v3.0
18 stars 12 forks source link

Expose more functions for use in Macros #31

Closed crimsonknave closed 2 years ago

crimsonknave commented 2 years ago

:wave: I've been loving this so far, but I was wondering if you could expose a few more functions on game.TokenVariants for use in macros? My use case is a bit outside of the main scope of the addon, but, I have a macro that generates some information about an NPC and puts it in chat. I was hoping to be able to add a randomly chosen token to include in the chat window as well just like I get when I drag a token from the actor list. So, I was looking at the doRandomSearch and if you added that it would make sense to add the search functions as well I think.

Aedif commented 2 years ago

Hi,

I'll give it some though and see what I can do. Will likely need to cleanup and refactor some of the code before I expose anything...

Aedif commented 2 years ago

Hi,

doImageSearch(...) and doRandomSearch(...) are now exposed through game.TokenVariants as of release 1.17.1

https://github.com/Aedif/TokenVariants#api