well I don't think you could get the addon to directly tell MM but you could have MM monitoring for info, after all it monitors 1000's of things from the game all the time, mostly done via memory now though but RoMScripts can get info from the in game functions which would include an addon.
small example is my madman addon I have for dod first boss.
MM uses this
Code: Select all
if RoMScript("madman.Time") >= 1 then
player:clearTarget();
printf("Running\n")
yrest(4000)
end
the addon has this
Code: Select all
function mm_OnUpdate(frame, elapsedTime)
if madman.Time >= 1 then
madman.Time = madman.Time + elapsedTime
end
if madman.Time >= 5 and mm_once == false then
MoveForwardStop();
mm_once = true
end
if madman.Time >= 7 and mm_once == true then
madman.Time = 0
mm_once = false
end
end
So the addon is changing the value of madman.Time and MM is monitoring it's value.
You can also do it the other way of course but this is just the example I had off hand.
Another example is the loginxml, the addon and scripts work together to be able to do what they do, worth a browse.