PDA

View Full Version : What Ruleset is Running?



Minty23185Fresh
January 24th, 2018, 06:11
What is the proper way to programmatically ascertain what ruleset is running?

There are the slightest differences in graphics displayed for <masterindex> (the Library Editors) for each of the rulesets. But the differences are sufficiently large that I'd like to correct for them using offsets within <anchored>.

I looked through the reference docs and might be able to use the
function getImportRulesetVersion( )
to obtain the name of the running ruleset, unless there is another accepted method of doing so.

Thanks for your help.

Moon Wizard
January 24th, 2018, 06:34
You can use Interface.getRuleset API function to determine what the campaign ruleset is.

Cheers,
JPG

Minty23185Fresh
January 24th, 2018, 15:03
Thanks Moon Wizard. I wasn't aware there was such a function. Then I saw the another thread (https://www.fantasygrounds.com/forums/showthread.php?39768-Search-function-for-the-ruleset-API) by Ken L. (I'll shut up now.)