Hello, everyone! I did some searching through older forums but could only find solutions for MZ, which didn't help me as I use MV.
One of my main characters has a "Defender" skill, which applies the substitute flag on him for the current turn. When he uses it, what I WANT is for him to be able to take every attack that an enemy uses (except multi-target attacks) that targets his allies. Basically, if he uses "Defender," any attack that an enemy uses on one of his friends should ALWAYS hit him instead. You know, take the blow for them, but everytime without fail.
However, in testing, I'm noticing that he'll only substitue attacks if their health is lower than his, and even then it doesn't always work. Somone else was able to make a very simple 2 lines of code plugin-in for MZ that edits the "substitute check" so that it will always work without fail, but as I don't know anything about JavaScript, I was hoping someone could help point me in the right direction.
(Also I'm sorry if I posted this in the wrong area, it's been a while since I've made a thread on here)
Thankies!
One of my main characters has a "Defender" skill, which applies the substitute flag on him for the current turn. When he uses it, what I WANT is for him to be able to take every attack that an enemy uses (except multi-target attacks) that targets his allies. Basically, if he uses "Defender," any attack that an enemy uses on one of his friends should ALWAYS hit him instead. You know, take the blow for them, but everytime without fail.
However, in testing, I'm noticing that he'll only substitue attacks if their health is lower than his, and even then it doesn't always work. Somone else was able to make a very simple 2 lines of code plugin-in for MZ that edits the "substitute check" so that it will always work without fail, but as I don't know anything about JavaScript, I was hoping someone could help point me in the right direction.
(Also I'm sorry if I posted this in the wrong area, it's been a while since I've made a thread on here)
Thankies!