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
Printable View
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
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.
Attachment 44875
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
Ok, how do I set the ruleset to use raw distance by default?
And can I disallow the GM to changes this?
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