Thread: Experimental APIs for FGU
-
February 16th, 2021, 04:57 #51
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Given your natural assumption, I'll look at adding a simple numerical indexing option as well (such that table[1] and table[2] are equivalent to table["x"] and table["y"]) in a future version.
Regards,
JPG
-
February 16th, 2021, 19:09 #52
- Join Date
- Nov 2020
- Location
- Seattle, USA
- Posts
- 161
-
March 14th, 2021, 21:28 #53
- Join Date
- Sep 2018
- Posts
- 75
I am experimenting with the token distance functions.
I noticed that half grid cells are rounded up.
E.g. if one grid cell is 1m than 1 and a half cell distance is calculated as 2m.
Is this intended?
And can I change it to get 1.5m?
It would be alos nice, I one could give a flag to getDistanceBetween to return raw distances.
Screenshot 2021-03-15 073937.pngLast edited by Weltenbrand; March 15th, 2021 at 07:39.
-
March 16th, 2021, 00:47 #54
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
If you convert the map record to use raw distances (or the ruleset in general); then the raw results will be returned. (i.e. the image will return whatever is being used for the distance calculation specifically.)
Regards,
JPG
-
March 16th, 2021, 08:40 #55
- Join Date
- Sep 2018
- Posts
- 75
Ok, how do I set the ruleset to use raw distance by default?
And can I disallow the GM to changes this?
-
March 16th, 2021, 16:56 #56Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
March 16th, 2021, 17:01 #57
- Join Date
- Sep 2018
- Posts
- 75
-
March 17th, 2021, 00:07 #58---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
March 18th, 2021, 01:15 #59
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
For rulesets, the following tag will set the raw distance calculation as the default:
<distance>
<diagmult>*</diagmult>
</distance>
For API interactions, the following call will set the current map to raw distance calculation:
imagecontrol.setDistanceDiagMult("*");
There is no way to "block" GMs from changing to what they want using the image control panel. This is by design, and you should not subvert the GM from changing to what they want for their own games.
Regards,
JPG
-
March 18th, 2021, 06:51 #60---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks