-
May 19th, 2019, 02:34 #1
Any way to execute "code" on loading an XML module?
I had an idea for some ruleset updating/extending functionality triggered by code and XML in a module.
Long story short (you are welcome, I know it is unlike me), I'd like to have some way to add (optionally, nothing happens if not present) some sort of "onLoad()" method to the mod file that could be defined in a Lua file. The code in there could take some of the XML and modify or extend some tables already present in my ruleset.
Yeah, probably weird - but is it something that is impossible because I am unknowledgeable about this stuff - or is it something the FG engine could do easily if such a call was added and people "caught" it?
-
May 19th, 2019, 05:48 #2
What, like Module.onModuleLoad?
https://www.fantasygrounds.com/refdo...p#onModuleLoadPrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks