Addon superloading quest files
Posted: Wed Dec 28, 2016 10:43 pm
Currently I'm overloading quests files for my addons, but I'm trying to see if I can avoid conflicts with other addons.
Is it possible to superload the data/quests files?
Ex. The brotherhood-of-alchemists.lua file defines competition function as:
Following the wiki doesn't seem to work
(placed in superload/data/quests/brotherhood-of-alchemists.lua)
Also tried assigning the competition reference like
or
I looked at the base functions of other superloaded mods but the functions are all declared like
Does the function have to be declared like that to superload it?
Is it possible to superload the data/quests files?
Ex. The brotherhood-of-alchemists.lua file defines competition function as:
Code: Select all
competition = function(self, player, other_alchemist_nums)
...
end
Following the wiki doesn't seem to work
(placed in superload/data/quests/brotherhood-of-alchemists.lua)
Code: Select all
local _M = loadPrevious(...)
local base_competition = _M.competition
function _M:competition(player, other_alchemist_nums)
...
end
return _M
Code: Select all
_M.competition = function(self, player, other_alchemist_nums)
Code: Select all
competition = function(self, player, other_alchemist_nums)
I looked at the base functions of other superloaded mods but the functions are all declared like
Code: Select all
function _M:onQuit()