calculating range/distance
I am trying to calculate the distance between two tokens to make sure they are in range of one another before applying an action. Though I am not sure the best way to go about this.
I have tried the following which works, but it feels wrong. What is the best way to get an actors token?
A
aaron•100d ago
actor.getActiveTokens()
E
Eclipxs•98d ago
thanks! is this otherwise an ok way to go about calculating range?
Z
Zhell•98d ago
Token placeables have a
center
getter, while if you use their x and y properties you are only getting their top left coordinates.Want results from more Discord servers?
More PostsPartial RerollI am looking for a way to partially "reroll" a roll.
Quick example: Player rolls 2d6 (a 2 and a 5) atiered status effectsIf I have a status effect that can come from an ability, for example, burning comes from an ability Importing an npm package into a foundry systemimport minimist from 'minimist';
That line alone when included in my module's hook file is resultin(Paid) System Dev AssistanceHello, I am developing a new game and would like to build my own game system in foundry vtt. I'm nothow to handle items and effects?I've been working on a system for a game that needs a concept that seems like it might be a good fitAdvice on the general programming model a system should followI'm brand new to foundry dev and I want to make sure I am gaining the correct understanding of the eAdvice for compendium data in a custom systemHello, i'm new here!
I was wondering if I could get a little direction for storing data about my gaDialog Box Auto-Closing Upon Opening 2nd TimeI've been appending custom functionality to the simple worldbuilding system. At this time, I'm tryin