1. #1

    Get range to targeted tokens

    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.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  2. #2
    Quote Originally Posted by ronnke View Post
    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.
    I'd love to know this, I did ask a good while ago and was told it wasn't possible.

  3. #3
    Then hopefully with Unity some facility for that exists.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    26,034
    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!
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in