Joshua Stream Pre
Page 1 of 28 12311 ... Last
  1. #1
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    282

    Token Height Indicators for FGU - 5E / 4E / 3.5E / Pathfinder 1&2 / Starfinder

    This extension allows the height of each token to be set / displayed by holding down the alt key and using the scroll wheel. The token orientation is changed with shift and scroll wheel and the token scale is changed with control and scroll wheel. The height can only be set by tokens in the combat tracker.

    Ranges (both the range arrow and via the getDistanceBetweenTokens call for use by other extensions) are updated accordingly.

    Screenshot
    Height with range.png

    License

    This work is Public Domain - feel free to distribute / copy / modify / incorporate as you wish.

    Methods for range
    My goal is to the mirror the spirit of each style in the rulesets, not necessarily to provide the most accurate result (which will always be raw). As such:

    5E Standard: 2D formula is max(x delta, y delta). My formula is max(x delta, y delta, z delta)

    5E Variant / most other rulesets: "Variant Diagonal Style" option to account for two schools of thought on whether the distance between a token at 0,0,0 and one at 5,5,5 is 5ft or 10ft. The only distance between the two options is when all three deltas are the same.
    "Long": 2D formula is longer delta + 1/2 shorter delta. My formula is longest delta + 1/2 other two deltas.
    "Short": 2D formula is longer delta + 1/2 shorter delta. My formula is longest delta + 1/2 middle delta (ignoring smallest delta).

    5E Raw Variant / "Raw Distance" option on maps for other rulesets: 2D formula is sqrt(x2+y2). My formula is sqrt(x2+y2+z2).

    There are lots of ways to make 5E Standard / variant measurements more "accurate", but that goes against the spirit of those rulesets. If you want to be entirely accurate, then you should use the raw measurements.

    Known Bugs / Future plans
    - This is for FGU only; it will not work with FGC
    - If the PFRPG2 measurement style is preferred in other rulesets (or anybody doesn't like it in PFRPG2), I'll add an option to toggle between the two.

    Version History
    v1 Initial update
    v1.1 Locked token scale to cntl-wheel and fixed issue with players not being able to see height
    v1.2 Players can change height of tokens they own (option)
    v1.3 Updates for non-square tokens
    v1.4 Players can set height to 0. Heights shown automatically instead of only when DM first alters them.
    v1.5 Fixed a spurious bug where an error was thrown when adding new tokens
    v1.6 Take height into account for range arrows.
    v1.7 Protected against a case where the token could not determine its owner and another when units were not available (turns out this wasn't needed, but doesn't hurt)
    v1.8 Update range display without losing/gaining focus, will work without a grid being set (but will still use the grid size to determine range, so recommend grid being set anyway)
    v1.9 Fixed conflict with 5E - Aura Effects extension
    v1.10 Thanks to a suggestion from bmos, overrode getDistanceBetween to have height taken into account by other extensions used in conjunction with this
    v1.11 Fixed the discrepancy with variant diagonal mode
    v2.0 Fixed another discrepancy with variant diagonal mode. bmos added support for 3.5 & Pathfinder. Renamed extension as a result.
    v2.1 Added compatibility with 4E and for the Raw Distance flag on maps.
    v3.0 Added options for placement of height indicator around the token and for medium or large font with thanks to kevininrussia
    v3.1 Allow for arbitrary token size with thanks to SoxMax. Square pointers give correct size indication.
    v3.2 Updates to the token size logic and cleanup to work with different maps/settings. Thanks to bmos, mattekure, and SoxMax
    v3.3 Fixed getDistanceBetween - thanks to Svandal for being persistent on pointing out the issue
    v3.4 Retain values if somehow the core functions of image.lua disappear
    v3.5 Fixed error spamming when not combat tracker tokens are present on map
    v3.6 Fixed invalid range when line between token centers was completely vertical (infinite slope)
    v3.7 Hopefully fixed issue with base image functions disappearing with advice from Moon Wizard. Fixed compatibility with Critically Awesome Essentials with diablobob code.
    v3.8 With even more help from Moon Wizard, fixed an issue with the extension not being applied to full screen maps or maps sent to the back.
    v3.9 Fixed the issues with dropping tokens with help from bratch9
    v3.10 Protected against Interface not being found
    v4.0 New diagonal measurement for PFRPG2
    v4.1 Changed all local functions to just functions in an attempt to remove the disappearing functions bug
    v4.2 Applied bmos's fix for calling getDistanceBetween with coordinates instead of tokens leading to error spamming
    v4.3 Added diagonal option for short/long diagonals when variant diagonals are used (previously just for PFRPG2). Added Starfinder as supported ruleset. Added support for tokenids in getDistanceBetween.
    v4.4 Added a guard for CombatManager disappearing per suggestion from bmos, just in case
    Attached Files Attached Files
    Last edited by GKEnialb; Today at 04:17. Reason: v4.4

  2. #2
    Thank you. I have been looking for a replacement for the 5e enhancer ext. I use it only to do height, remove actors and effects (since it is broken for many other functions) but I have been getting nervous that some future update will break even these. It is an old project that has been orphaned. This is the biggest piece for me and now I can move on!

  3. #3
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    282
    There are definitely good replacement apps for those other functions, so glad to hear this completes what you need. My goal was to make this as minimalistic as possible so updates or other extensions won't break it (fingers crossed).

  4. #4
    I'd love to use this extension, but it seems that enabling this extension makes it so that token scaling is done with the scroll wheel alone, without any modifier keys required, and that's not something I want to happen.

    I don't know if that's intended functionality or caused by some sort of interaction with another extension I've got, but I do know that as long as it's the case I cannot use this one.

  5. #5
    Yes. I noticed that as well. If we can lock that would be helpful. Also, can you make it visible to the players? Mine could not see the height indicator.

  6. #6
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    282
    I will look into both of those (locking with cntrl-scroll to change scale and making visible to the players)

  7. #7
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    282
    And I've updated to address both. Thanks for the feedback!

  8. #8
    Does the height affect range? Also, I would love it if the players could change their height, but not sure if possible if the token is locked.

  9. #9
    Looks like the changes are working. I would 2nd players being able to change height.

    I know the 5e enhancer factor height into the range calculation but I am not sure if that would play nice with the other range exts that handle feats, range in melee and long vs normal range modifiers. If not then that could be a project to complete because many of us would not give up those automations for a range that included height. It would be nice to have though!

    Thank you for the updates!

  10. #10
    Quote Originally Posted by nephranka View Post
    Looks like the changes are working. I would 2nd players being able to change height.

    I know the 5e enhancer factor height into the range calculation but I am not sure if that would play nice with the other range exts that handle feats, range in melee and long vs normal range modifiers. If not then that could be a project to complete because many of us would not give up those automations for a range that included height. It would be nice to have though!

    Thank you for the updates!
    This is why I still have to use the one from Enhancer sadly. Pulling the Height.ext out of it works just fine to do what this ext is doing also. However, would be nice if we could get that range checking in there. Maybe we are just getting greedy on what we want our exts to do haha.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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

Log in

Log in