Getting two scripts to talk to each other

So I'm having a bit of a display problem while using The Yanful Engine Ace battle script and Victor's Mp Levels script (both attached below) together. Below you see how everything is suppose to be going:

1.png


When in the status menu (or any relevant menu) the numbers display properly. So no problem here.

2.png


However once one goes into battle, the mp does not display the way they should. When the Battle engine is removed, everything shows up properly, even in battle. Now a few other of my scripts actually require the battle engine and I would rather not remove it. So my question/request is, does anyone know of a way to either patch the two to talk to each other, or just remove a snip from the battle engine so the new numbers display properly.

Thanks for your time!

Victor Mp Levels.txt

Yanfly Engine Ace Battle.txt
Yanfly's scripts and Victor's are notoriously incompatible with one another in a multitude of ways. Also, Victor has a rather obnoxious tendency to write a lot of his code in his Core script, so I'm assuming there's a fair bit of his code that's tucked away in there rather than the actual MP Levels script you've posted -- which makes bug-hunting and such even more tedious than it would be otherwise.


I'm not saying it's impossible to patch them to work together, but I do at least want you to be aware of the fact that you're using scripts that weren't designed to work together in any way (seeing as the authors of those scripts make no attempts to be compatible with one another).
Yea, see the little voice in my head is saying since it's just one simple display "error", it can easily be fixed.  The realisitic part of my brain is currently beating the crap out of the little voice because small fixes are rarly just small.  But yea, I figured it might not be possible, and I will have to find some way of working around it, but I figured I ask first!
There is a conflict with draw_actor_mp. Try moving Victor's script below Yanfly's, since Yanfly's overwrites.


Also, I'm moving this to RGSSx Script Support.
Tried moving the location of the script, both below and above, sadly there was no effect.

Thanks for trying thou!
Search for 

def draw_actor_mp 

In yanfly's script.

Highlight the entire section:

  def draw_actor_mp(actor, dx, dy, width = 124)

    draw_gauge(dx, dy, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)

    change_color(system_color)

    cy = (Font.default_size - contents.font.size) / 2 + 1

    draw_text(dx+2, dy+cy, 30, line_height, Vocab::mp_a)

    draw_current_and_max_values(dx, dy+cy, width, actor.mp, actor.mmp,

      mp_color(actor), normal_color)

    end

Press ctrl + Q to comment it out OR just delete it.

should work fine after that.
That did it!

Thank you so much for the advice and help!
anytime

Original thread: https://forums.rpgmakerweb.com/threads/getting-two-scripts-to-talk-to-each-other.15259/