Displaying message as a result of a function in battle

I'll get straight to the point.


Currently I have a plugin in development where you are able to summon new actors not in your party into battle, my SummonCore plugin.


Anyways within the plugin I have a function that dismisses a summoned actor after x turns have passed.


It is as a result of this dismissal that I wish to display a message like "actor has left the battle" in the same way that one is shown "actor is poisoned" or "actor took x damage".


Maybe I'm missing something but from what I see I can't borrow an existing function in order to do this. So then the question becomes how would I display text like the battlelog does if I can't use the battle log's functions since I'm not using a skill to produce the result?
You can actually call the battle log's functions via script calls even without using skills, you just need to check the default js files and find the functions that set the battle log text. Since you're already at least good enough to be making your own plugins, I'm sure this will be easy for you. 🙂
Guess I'll just go back to figuring out which one it is.

I was reading it and maybe i was just to tired but i just couldnt figure it out at the time.

Original thread: https://forums.rpgmakerweb.com/threads/displaying-message-as-a-result-of-a-function-in-battle.74367/