5E Character Create Playlist
  1. #1

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    897

    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.
    Ruleset and much more content built for FGU.
    Come join me on Twitter at: https://twitter.com/MadBeardMan to see what I'm up to!

  3. #3

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    897
    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
    Colorado, USA
    Posts
    33,402
    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!
    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)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in