Is there an easy way to iterate through the targeted tokens and get the range to those tokens? I want to apply range modifiers to attack rolls.
Printable View
Is there an easy way to iterate through the targeted tokens and get the range to those tokens? I want to apply range modifiers to attack rolls.
Then hopefully with Unity some facility for that exists.
It should be possible because the Savage Worlds ruleset, and I believe the 2E ruleset, and the 5E Combat Enhancer extension, all do it.
Have a look here: https://www.fantasygrounds.com/forum...bat-extension)
The Helper Function extension (linked in the #2 bullet point) has a file scrips\ranged_attacks.lua with a getRangeModifier5e function that calls a getRangeBetweenTokens5e function. Don't be put off by the "5e" reference! ;)