I have a move that can be used on the user or can be used on another party member. I want the message to display "(User) casts %1 on (Receiver)!" but I can't find anywhere what the text command is and it's hard to describe to google what I'm trying to do. Is this possible without plugins or does anyone know a plugin that will allow for this? Any advice is greatly appreciated.
How to reference a receiver in a skill message?
RPG Maker MV SupportUnfortunately, that feature doesn't exist in the base engine. It's possible there are plugins that add it, but I don't know of any myself.
Edit the Battle Log displayAction method. Here I edited it so that you need to add to a skill note field <addTargetName> if you want it to show. Save in notepad as a .js file and add in your plugin folder and add as a plugin:
Window_BattleLog.prototype.displayAction = function(subject, item) { var numMethods = this._methods.length; if (DataManager.isSkill(item)) { if (item.message1) { const targetText = item.meta.addTargetName && BattleManager._targets[0] ? " " + "on" + " " + BattleManager._targets[0].name() : null; this.push('addText', subject.name() + item.message1.format(item.name) + (targetText ? targetText : "")); } if (item.message2) { this.push('addText', item.message2.format(item.name)); } } else { this.push('addText', TextManager.useItem.format(subject.name(), item.name)); } if (this._methods.length === numMethods) { this.push('wait'); }};Thank you so much!
I suggest this is a bit easier solution than what @rpgLord69 offered - install this code as a plugin then simply use %2 anywhere you want in your skill message like you already can use %1 to refer to the user.
forums.rpgmakerweb.com
How to make battlelog include name of the target?
For example, If I wanted the battlelog to say to say "casts heal on target A" when using the skill on target A but "casts heal on target B" when using the skill on target B, how would I do this, I found a few older forum posts about the issue but I wasn't able to get anything to work. Here are...
forums.rpgmakerweb.com
Thank you I just tried and it worked perfectly.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-reference-a-receiver-in-a-skill-message.181201/