Thanks for the reply 509Dave16.
I want to manage the dialogs externally.
I'll try to elaborate some more:
I have two actors, let's call them Joe and Jasper
So I have a sprite of joe, with a sprite font named dialogbox-joe pinned to it, and a sprite of jasper with a sprite font named dialogbox-jasper
When calling getNextDialogLine("joe","jasper", somestate) let's say its joe's turn to speak; this is what I want to do from within the plugin
1) set dialogbox-jasper to be invisible
2) set text for dialogbox-joe
3) set dialogbox-joe to visible
I don't mind changing my design, but I do want to keep the code contained in the plugin.