And, there's another solution which can bring other issues because of uncertain conditions. I can use a third mod which will have the mod events with its own remote interface to reveal the mod events.
1. Is it enough to only just reveal the mod events with some description?
Example below:
Code: Select all
local mod_events = {
on_mod_event_1 = script.generate_event_name(),
on_mod_event_2 = script.generate_event_name()
}
remote.add_interface("my-mod-interface", {
get_event_name = function(name)
return mod_events[name]
end
})
3. Did I forget something else?
(I don't know an elegant solution for migration or something like that in this case. Also, such solution can bring more problems with compatibility in some cases)
Although, I can create mod events and remote interfaces in each mod and use the third mod to support mod events between other mods and, probably, it's an over complex solution.