Make sure an enemy kills a certain character?

Sorry in advance if this thread is in the wrong place. I'm new to this forum, and I wasn't entirely sure where to post this.

Anyway, I'm currently making my first game in RPG Maker MV, and I need to do something in the first battle of the game that I have no idea how to do.

Here's the deal:
Two characters - the main char and his friend - finds an old, magical weapon. The main character equips the sword automatically. They are attacked by the first enemy seen in the game. The main purpose for this fight (apart from introducing the battle mechanics obviously) is to show the player just how powerful this weapon is. For that reason I want to make sure that the main character is the one to kill the enemy, and for this to work I need the enemy to kill the "friend" character regardless of what the player does. A scripted death in other words.

I assume there is a way to make this work in the battle itself somehow?
I should point out that the friend only dies in battle mode. In the story, he is nursed back to health - I just want him out of the initial battle.

I would really, really appreciate a quick answer to this, since I've really gotten into this and I don't want the development momentum to drop 😀
Game Mechanics Design is more for discussing the concepts of game mechanics. "How to" questions belong in the support section, so I'm going to move this there. 🙂
Give your monster its usual stats, but give it 1 MP.

Create a new technique and give it to the monster. This attack can either inflict instant death or deal more than the friend character's max HP. Make it require 1 MP. Now the monster is only capable of using this attack once.

In the troops menu for this encounter, use a force action event on turn 1 that causes the monster to use this death attack on the friend.
You can actually drop the 1 MP requirement and the part about giving the technique to the monster, as from my experience, monsters will use any skill via force action as long as they have the MP required to spend on it. That's how I managed to set up a boss with 3 turns per round, but each turn has a different pool of actions for the boss to pick (so no Fireball 3x in a row or anything like that).
Give your monster its usual stats, but give it 1 MP.

Create a new technique and give it to the monster. This attack can either inflict instant death or deal more than the friend character's max HP. Make it require 1 MP. Now the monster is only capable of using this attack once.

In the troops menu for this encounter, use a force action event on turn 1 that causes the monster to use this death attack on the friend.

Thanks for responding.
I made the special attack, but I'm not sure how to make the enemy attack the friend character specifically?

EDIT: Oh, hang on. Looks like it's working, uh... kind of. The character I want dead drops dead (yay), but it seems to happen when he is the one attacking. I mean, it looks like he dies as a result of doing an attack himself, and not by the enemy attacking him?
I think you have to pick the slot in the party that member is for the index under force action. Otherwise it cannot be done without getting tricky. Easiest way:

-Give the boss a skill which hits all party members for 9999 damage. Give it an element that you will never use again.
-Give the skill an animation which is set to screen, so you only see the animation once.
-Make the main character immune to that element (element rate 0%).
-Make the friend character not immune.
-Have the boss perform that attack on round 1. Easiest way is honestly to put it in the attack patterns as use on turn 1 * 0, priority 10. That will make it always go if you leave the others at the default setting.

This will have the issue that it will show the main character taking 0 damage from it, but you might be able to work it out plot-wise how that happened.

Otherwise, you will probably have to have it happen outside of battle, inflict the friend with KO, then have battle start. Any tricks with the TGR rate will still give you a really small chance of the main character being hit by dumb luck from what I've seen (though maybe...give the main character an invisible state with TGR 0%, last one turn, right as battle starts? That might force it to always hit the friend?)

Anyways, I'm getting really tired here so hopefully that makes something resembling sense. Or maybe someone else can elaborate on it for you while I'm off in zzzzzland.
If it's not too late, I have an easy alternative suggestion. If you want to show off the weapon, why not give it some good defence and resistance boosting qualities? The enemy can be limited to using certain hit skills that hit your entire party. With the increased def, your character will be able to stay alive while the friend falls in battle.
Did you give your monster enough agility to make sure it always gets the first turn?
Did you give your monster enough agility to make sure it always gets the first turn?
Yes, I gave him a 100 agility just to make sure.
I'm thinking I might have messed up somewhere while creating the skill. Does this look right for the effect I'm after?
Yanfly has a plugin that allows you to use a "taunt" mechanic that focuses all attacks or all attacks of a certain type on a character, usually via a state or piece of equipment.

You could have the state applied at the start of the battle so that the enemy is certain to target the character you want, without attacking the other characters. & then use bgillisp suggestion of assigning top priority to the skill that will kill your party member.

I recommend you make it a certain hit, rather than physical or magical attack though. You don't want the party member dodging it or worse reflecting the skill back upon the enemy.
Try setting this to happen on turn 2 instead of 1. I tested that just now and it worked.
I think I solved it. I changed the skills Scope from "1 Ally" to "1 Enemy", and that seems to have done it. I also emphasized what happened with a text box telling the player the troll went for the friend first. A bit cheap maybe, but hey!

Anyway, thanks for the help, I really appreciate the response!
For future reference, remember that one enemy means anyone on the opposite side of the battle from the attacker (so your party is the enemy to the enemies, and the enemy is the enemy to your party). That may help with future custom skills.

Glad to see it was solved while I was off in zzzzland. Save to close as solved?
For future reference, remember that one enemy means anyone on the opposite side of the battle from the attacker (so your party is the enemy to the enemies, and the enemy is the enemy to your party). That may help with future custom skills.

Glad to see it was solved while I was off in zzzzland. Save to close as solved?

Yeah, took me a bit too long to realize that 😀

It is solved!

Original thread: https://forums.rpgmakerweb.com/threads/make-sure-an-enemy-kills-a-certain-character.87006/