Note: You are not logged in.
Token Height Indicator

by GKEnialb

FREE
5.00 Avg. rating
Total Subscribers: 2336


Description

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.  Supports Raw measurements and the two main diagonal variants.


Confirmed to work with 5E, 4E, 3.5E, Pathfinder 1&2, Starfinder, and MoreCore


Shape support (for use by other extensions)

Code:
   TokenHeight.getTokensWithinShape(originToken, shape, distance, height, width, azimuthalAngle, polarAngle)
   Image.getTokensWithinShapeFromToken(originItem, shape, distance, height, width, azimuthalAngle, polarAngle)
   Image.getTokensWithinShape(originX, originY, originZ, shape, distance, height, width, azimuthalAngle, polarAngle)

   Get all tokens within a shape (including the origin token, if any).  Any token with any part of its containing cube will be returned.  I know there is a lot of debate and variations on how much of a token needs to overlap for a given shape type.  As such, I'm returning all, as it's easier to remove tokens you don't want than to add...

   The parameters for each type of shape are:
 
  • All:
    • originX, originY, originZ - the coordinates of the center / origin of the shape
    • shape - "sphere", "cube", "cylinder", "line", "cone"
  • sphere:
    • distance = radius of the sphere
  • cube:
    • distance = length of each side of the cube
  • cylinder:
    • distance = radius of the sphere
    • height = height of the cylinder
  • line:
    • distance = length of the line
    • width = width of the line (half on each side of the line in all directions)
    • azimuthalAngle = angle of the line leaving the origin in the X/Y plane in degrees. 0 = north, 90 = east
    • polarAngle = angle of the line leaving the origin in the X/Z plane in degrees. 0 = flat, 90 = straight up
  • cone:
    • distance = length of the cone
    • width = angle of the cone aperture (53 in 5E, 90 in 3.5/PFRPG)
    • azimuthalAngle = angle of the center of the cone leaving the origin in the X/Y plane in degrees. 0 = north, 90 = east
    • polarAngle = angle of the center of the cone leaving the origin in the X/Z plane in degrees. 0 = flat, 90 = straight up




UUID 67cebd42-e385-11eb-8c52-0050562be458