Jump to content
Illuminati3301

Use MP healing items even when MP is full

Recommended Posts

Helllo!

i have a huge problem with my game.

I was dumb enough to build a huge part of my battle system around Zetu's Alternate MP X, which unfortunately is pretty bugged 😞

My problem is that I can't use any MP recovering items while outside of battle, because when I try it just plays the buzzer sound effect and does nothing, even when my MP is empty.

However if I use the same item in battle, it works perfectly fine. I know that the problem is rooted in this particular script, because when I removed it I could use my MP recovering items from the menu without a problem. Unfortunately I can't remove the script altogether because as I said, it's pretty prominent in my game. 

So my request is: could some kind person do a script that would overwrite the conditions that determine whether MP recovering items can be used, so that you could use them  from the menu even when the game "thinks" that it's full? Any and all help would be highly appreciated.

Share this post


Link to post
Share on other sites

I test it in a fresh project and the MP recovering item works fine.

Are you perhaps trying to recover the resource?

 

I've seen the script and it lacks of explanation on what to do, like for an example: How do I increase targeted actor resource by item usage from inventory?

Can you explain what you're doing so I can replicate it and find a solution? Or better yet, set a demo that replicate your problem in a fresh project.

 

Btw, I'm using version 1.05. It seems there exist a version 3 of this script.

Edited by Black Mage

Share this post


Link to post
Share on other sites

This script is very buggy indeed. Put this somewhere below Game_Battler script and you should be able to use mp healing item from menu.

class Game_Battler < Game_BattlerBase
  def item_test(user, item)
    return false if item.for_dead_friend? != dead?
    return true if $game_party.in_battle
    return true if item.for_opponent?
    return true if item.damage.recover? && item.damage.to_hp? && hp < mhp
    return true if item.damage.recover? && item.damage.to_mp? && mp < mmp
    
    a = user.resources[0].value < user.resources[0].max
    #a = user.resources[0].value <= user.resources[0].max
    return true if item.damage.recover? && item.damage.to_mp? && a
    
    return true if item_has_any_valid_effects?(user, item)
    return false
  end
end

If you want to use mp healing items when your mp is full, remove the # above.

Edited by Black Mage
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted