Randomising Skill Message Query

Hey, so I'm attempting to develop an attack system which relies upon speech (basically just changing all attack verbs), and I was wondering if it was possible to randomise the skill message that is shown.

My theory on how to do it would be to take from a different pool of possible messages depending on the "attack".

Capture.png
Image for reference

If there is already a thread about it, I wasn't able to find it, and I apologise.

Any help would be greatly appreciated, even if it is a "not possible". Thank you!
Hmmm, make a variable X an array and then push there strings of the texts you want. Then change the Window_BattleLog.prototype.displayAction function. Check if (item.id === Y), then copy the line in the function and make it show text like this.push('addText', $gameVariables.value(X)[Math.randomInt($gameVariables.value(X).length)]); If you need add there the subject.name() + stuff.
So use a notepad to save this with js extension and put it in your plugin folder and then add it through the plugin manager (change Y to the skill id you want to affect and Xs to the game variable you want to use). Leave the skill message lines empty for that skill in your database:

Window_BattleLog.prototype.displayAction = function(subject, item) {
var numMethods = this._methods.length;
if (DataManager.isSkill(item)) {
if (item.message1) {
this.push('addText', subject.name() + item.message1.format(item.name));
}
if (item.message2) {
this.push('addText', item.message2.format(item.name));
}
if (item.id === Y) this.push('addText', subject.name() + " " + $gameVariables.value(X)[Math.randomInt($gameVariables.value(X).length)]);
} else {
this.push('addText', TextManager.useItem.format(subject.name(), item.name));
}
if (this._methods.length === numMethods) {
this.push('wait');
}
};

At the start of the game run an event where there's a script event command (change the Text1 etc for your own lines, but keep the quotation marks, also change the Xs to the variable you chose to use):
$gameVariables.setValue(X, []);
$gameVariables.value(X).push("Text 1", "Text 2", "Text 3");
So use a notepad to save this with js extension and put it in your plugin folder and then add it through the plugin manager (change Y to the skill id you want to affect and Xs to the game variable you want to use). Leave the skill message lines empty for that skill in your database:

Window_BattleLog.prototype.displayAction = function(subject, item) {
var numMethods = this._methods.length;
if (DataManager.isSkill(item)) {
if (item.message1) {
this.push('addText', subject.name() + item.message1.format(item.name));
}
if (item.message2) {
this.push('addText', item.message2.format(item.name));
}
if (item.id === Y) this.push('addText', subject.name() + " " + $gameVariables.value(X)[Math.randomInt($gameVariables.value(X).length)]);
} else {
this.push('addText', TextManager.useItem.format(subject.name(), item.name));
}
if (this._methods.length === numMethods) {
this.push('wait');
}
};

At the start of the game run an event where there's a script event command (change the Text1 etc for your own lines, but keep the quotation marks, also change the Xs to the variable you chose to use):
$gameVariables.setValue(X, []);
$gameVariables.value(X).push("Text 1", "Text 2", "Text 3");
Thank you so much for your help! I really appreciated it, especially doing this work just off the bat!

Original thread: https://forums.rpgmakerweb.com/threads/randomising-skill-message-query.177798/