Hi,
Sure I can go into a little more details, this is not about AUTO 'selecting' the targets under a spell token for a spell. Its a quality of life fix for when you have spell tokens over npc/player tokens.
To enable you need to use the option, as by default I do not want to 'break' or cause 'issues' when users are playing. ( ie, turn on if you are happy it might cause some issues, it should not but I can not test every combinations and with extensions this is a near impossible combination to deal with !! )
When this extra part of the extension is disabled, trying to 'select' by 'ctrl click' on a token on the map will normally try and select the big spell token, so you end up having to 'move' the spell token to select items under it, and put the spell token back. ( Or you can just use the combat tracker window to do your selections and avoid the 'ctrl click' on the map issue.. )
Attachment 43996
When you enable this part of the extension, I do a much more complex search under the cursor and make a combined tool tip showing multiple items..
Attachment 43997
And when you 'ctrl click', the system will apply the tokens that are not detected as spell tokens onto/off your selected targets as if the spell token was not 'blocking' your selection.
Attachment 43998
In the above 'ctrl click' image Ive added a big read arrow for the approx location the mouse cursor was not captured in the images !!
Hence while this part of the extension will not 'auto select' targets under a spell token, you can now quickly 'ctrl-click' the required targets that happen to be 'under' the spell token.
As I have also said, I'm going to look into been able to 'drag' the token(s) under the spell token, and allow the normal 'drag on attack/damage from character/chat etc' onto the tokens 'under' the spell token.
While this is a much more complex solution, because FG has not given us a priority api call for tokens to push spell tokens to the back, its the most user workable way to deal with spell tokens and interactions with tokens. It also depends if you are in FG Unity or FG Classic because the spell tokens layer priority changes between product causing even more pain. As talked about earlier in this thread FG are doing a bunch of work on their 'spell templates', and this is also blocking work on getting the layer priority for FGU and FGC to match and/or possible api additions.
So in reality, I'd prefer to get an api fix to allow my spell tokens to work correctly without having re-write all the target/selection/drop code for tokens.. While trying to 'push' the quality of my solution up, to also try and drive the quality of the FG 'spell templates' solution... ( Like letting players add 'spell templates' and bulk targeting selection of tokens under a 'spell template' etc... ) As I totally expect my extension to be 'replaced' by the new in development built in system of 'spell templates', but i'm not holding my breath on this....
Hope this helps
-Pete

