PDA

View Full Version : Force Calandar load in ruleset.



zombielord
May 15th, 2020, 05:57
I am wanting to force the Calendars module to load automatically from within the ruleset with no need to manually activate it. (Ideally with the Gregorian calendar loaded but one thing at a time).

I've tried adding the following to a lua script.


function onInit()
setModulePermissions("Calendars", true, true)
end

https://www.fantasygrounds.com/refdoc/Module.xcp

Trenloe
May 15th, 2020, 10:21
I don’t think auto load works anymore (an argument within the setPermissions function). This was deprecated a few versions ago. Plus, setPermissions is used for setting module permissions for the players. Only the GM needs access to the calendar module.

In theory Module.activate on the GM side should work, but I’m not sure how that would then link into the special calendar selection functionality.

zombielord
May 15th, 2020, 11:19
Thanks, Trenloe for your response.