MV How to check which actor used skill during battle then display the specific skill cast message for it?

I have a plugin where all of the actors can learn each other skills, but I want their skill cast message to be unique to different actors. Thanks!
Moved to: Plugin Requests
So there's a way you can do this,but you need YEP_Skillcore plugin which you can grab from here:


<Before Eval>

if (user === $gameActors.actor(1)) {

SceneManager._scene._logWindow.clear();

var text = '<CENTER>' + user.name() + ' casts a fireball spell'

SceneManager._scene._logWindow._lines.push(text);

SceneManager._scene._logWindow.refresh();

SceneManager._scene._logWindow._waitCount += 20;

} else if (user === $gameActors.actor(2)) {

SceneManager._scene._logWindow.clear();

var text = '<CENTER>' + user.name() + ' summons a fireball from her book'

SceneManager._scene._logWindow._lines.push(text);

SceneManager._scene._logWindow.refresh();

SceneManager._scene._logWindow._waitCount += 20;

}

</Before Eval>
Modify where you see the text that i added myself(example): summons a fireball from her book

If you need to change when the message appears change the word Before with After.

All you need to modify is the numbers in here: user === $gameActors.actor(number)

if you need to add more actors just copy this and paste it at the end where this "}" symbol is:

else if (user === $gameActors.actor(2)) {

SceneManager._scene._logWindow.clear();

var text = '<CENTER>' + user.name() + ' summons a fireball from her book'

SceneManager._scene._logWindow._lines.push(text);

SceneManager._scene._logWindow.refresh();

SceneManager._scene._logWindow._waitCount += 20;

}
I'll definitely look into this the moment I'm home, thank you very much for the swift reply!

EDIT: Does this code output something like this?
Actor1 casts Fireball!
"Come, divine power!"
Actor2 casts Fireball!
"Heh, there will be no escape..."
So on...

Again, thanks!
from the looks of it, yes. you would only change the 'user name' + ' quotes' of the var text lines.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-which-actor-used-skill-during-battle-then-display-the-specific-skill-cast-message-for-it.131400/