(If there is actually a way, can someone please inform me or write a tutorial on it?)
So my question/suggestion is...
Is it possible to create an empty addon which registers all events, which then goes and triggers interrupt functions within the rombot lua?
eg...
Code: Select all
<Ui>
<Script file="\MICROMACRO DIRECTORY\ ROMBOT LUA FILE.lua"/>
<Frame name="micromacro" parent="UIParent" enableMouse="false">
<Scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED");
this:RegisterEvent("SEND_MAIL_SUCCESS");
this:RegisterEvent("UNIT_PORTRAIT_UPDATE");
</OnLoad>
<OnEvent>
CALL_MICRO_MACRO(event);
</OnEvent>
</Scripts>
</Frame>
</Ui>
It'll be nice to be able to have like an interrupt function lua file which we can code ourselves during certain triggers.
Edit: NEW IDEA
Is it possible to read the SaveVariables.lua file?
If so, we can always set our event handling addon to change the variables in the file which can then act as interrupts.