Jenova

Because you are...a puppet!
Veteran
Joined
Nov 29, 2017
Messages
468
Reaction score
302
First Language
English
Primarily Uses
RMMV
Mods: Not sure if this is a plugin request or not, but hopefully I don't need one. Move if this ends up not being a plugin.

I was hoping there was a way to disable reflection when using Magic Attack.

I don't want to use Certain Attack because I have Magic and Physical Attack Taunting set up, but I don't want regular attacks (not magic spells) to be reflected even if they have Magical Attack properties.

I did see this thread btw, but no answer.

Is there a way to do this?

Thanks guys.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,162
Reaction score
1,868
First Language
English
Primarily Uses
RMMV
You'll definitely need a plugin, and from what I know/can find, you'll need to commission a new one - unless you want to set up your skills to use Yanfly's Element Core. You can replace the standard Magic Reflect trait in your state with the elemental reflection tags in that plugin, then make your magic attack not be one of those elements.

Edit: Okay, @Jenova I took a look, and it's not that complicated. This should do it:
Code:
BattleManager.invokeAction = function(subject, target) {
    this._logWindow.push('pushBaseLine');
    if (Math.random() < this._action.itemCnt(target)) {
        this.invokeCounterAttack(subject, target);
    } else if (Math.random() < this._action.itemMrf(target) && !$dataSkills[this._action._item.itemId()].meta.pierce) {
        this.invokeMagicReflection(subject, target);
    } else {
        this.invokeNormalAction(subject, target);
    }
    subject.setLastTarget(target);
    this._logWindow.push('popBaseLine');
    this.refreshStatus();
};

Copy that into a text editor, save as a .js in your plugins folder, load it in your game. It should make a skill with the <pierce> notetag ignore magic reflect.

I have not tested it, so let me know if it doesn't work or you get any errors.
 
Last edited:

Jenova

Because you are...a puppet!
Veteran
Joined
Nov 29, 2017
Messages
468
Reaction score
302
First Language
English
Primarily Uses
RMMV
You'll definitely need a plugin, and from what I know/can find, you'll need to commission a new one - unless you want to set up your skills to use Yanfly's Element Core. You can replace the standard Magic Reflect trait in your state with the elemental reflection tags in that plugin, then make your magic attack not be one of those elements.

Edit: Okay, @Jenova I took a look, and it's not that complicated. This should do it:
Code:
BattleManager.invokeAction = function(subject, target) {
    this._logWindow.push('pushBaseLine');
    if (Math.random() < this._action.itemCnt(target)) {
        this.invokeCounterAttack(subject, target);
    } else if (Math.random() < this._action.itemMrf(target) && !$dataSkills[this._action._item.itemId()].meta.pierce) {
        this.invokeMagicReflection(subject, target);
    } else {
        this.invokeNormalAction(subject, target);
    }
    subject.setLastTarget(target);
    this._logWindow.push('popBaseLine');
    this.refreshStatus();
};

Copy that into a text editor, save as a .js in your plugins folder, load it in your game. It should make a skill with the <pierce> notetag ignore magic reflect.

I have not tested it, so let me know if it doesn't work or you get any errors.

Works like a charm. Tried it with both note tag and no note tag and it works! Thank you. No errors that i can see for now. Thank you thank you thank you! :)
 

Latest Threads

Latest Profile Posts

SF_People3_1 added!
index.php

Micro rant. The worst part of working from home when you live with your family is seeing how inconsiderate they are. "Hey, you're sitting in front of your computer, that means you're not doing anything! I want to put the TV at 200 decibels!"

If I was working in the office would you still talking me like that?
It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops

Forum statistics

Threads
118,510
Messages
1,116,501
Members
155,508
Latest member
theunderscoregreg
Top