Experimental APIs for FGU
As part of v4.0.7; I've actually embedded quite a few new APIs that I'm testing out to see how useful they are; as well as to make sure that the API calls are in the right formats that are needed as well as to sound out issues with the new APIs. These APIs may change in the near term based on feedback, and I'll post here if I do. So, if you plan to look at using these, make sure to subscribe to this thread.
And here they are:
imagecontrol
getTokensWithinDistance(token/{x=#,y=#}, #) -> (table of tokens)
getDistanceBetween(token/{x=#,y=#}, token/{x=#,y=#}) -> (number/nil)
File (new global package)
addCampaignAssetFile(path, type) -> (string/nil)
getCampaignFolder() -> (string)
getDataFolder() -> (string)
openCampaignFolder([subpath])
openDataFolder([subpath])
openTextFile(path) -> (string/nil)
saveTextFile(path, string)
Token
getTokensWithinDistance(token, #) -> (table of tokens)
getDistanceBetween(token, token) -> (number/nil)
Utility (new global package)
decodeXML(string) -> (table)
encodeXML(table, [bool]) -> (string)
Regards,
JPG