Removing Magic Atk and Magic Defense

Discussion in 'Javascript/Plugin Support' started by Thordon123, Feb 18, 2018.

  1. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    YEP Status Menu Core: http://yanfly.moe/2015/12/04/yep-37-status-menu-core/

    Hey, I'm using Yanfly's StatusMenuCore right now and wanted to remove the Magic Atk and Magic Def parameters from my game as I'm not using them. They still show up in my status menu and I can't figure out how to use the plugin to hide them (or even if I can) does anyone know how?
     
    #1
  2. Leon Kennedy

    Leon Kennedy Restaff Novice Restaff

    Messages:
    613
    Likes Received:
    468
    Location:
    Chicago
    First Language:
    english
    Primarily Uses:
    RMMV
    Well heres how you do it on the rtp script.

    Window_Status.prototype.drawParameters = function(x, y) {
    var lineHeight = this.lineHeight();
    var paramsToDraw = [2, 3, 6]; // This would draw just ATK, DEF, AGI for example
    for (var i = 0; i < paramsToDraw.length; i++) {
    var y2 = y + lineHeight * i;
    this.changeTextColor(this.systemColor());
    this.drawText(TextManager.param(paramsToDraw), x, y2, 160);
    this.resetTextColor();
    this.drawText(this._actor.param(paramsToDraw), x + 160, y2, 60, 'right');
    }
    };

    0 --> Max HP (MHP)
    1 --> Max MP (MMP)
    2 --> Attack (ATK)
    3 --> Defense (DEF)
    4 --> Magic Attack (MAT)
    5 --> Magic Defense (MDF)
    6 --> Agility (AGI)
    7 --> Luck (LUK)


    Not sure if it will mess with your other plugins though. Worth a try.
     
    #2
  3. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you, but i haven't applied scripts directly to MV yet (only to VX Ace), how do I apply this?
     
    #3
  4. Leon Kennedy

    Leon Kennedy Restaff Novice Restaff

    Messages:
    613
    Likes Received:
    468
    Location:
    Chicago
    First Language:
    english
    Primarily Uses:
    RMMV
    You copy the script to notepad++ name it whatever and add to your standard js plugins part and then turn it on in the engine plugin manager. It will override the rtp script.
     
    #4
  5. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Ah no dice :/ I tried it but the stats still show up
     
    #5
  6. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    All the relevant plugins that may interfere are yanfly ones, but really just CoreEngine and StatusMenuCore
     
    #6
  7. Andar

    Andar Veteran Veteran

    Messages:
    28,643
    Likes Received:
    6,584
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    That us because he gave you the method to remove them from the default screens, but yanfly made his own screens.
    you'll need to have the code adapted for yanfly's plugin, and for that you need to give links to the websites of all the plugins involved, and preferably a screenshot of your plugin manager so that we can check what else on your plugins might interfere.

    Thordon123, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you have to add something and your own post is the last one, please edit it next time.
     
    #7
  8. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV

    Attached Files:

    #8
  9. Andar

    Andar Veteran Veteran

    Messages:
    28,643
    Likes Received:
    6,584
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    everything, because your yanfly plugins are in the wrong order.

    Oh, not in this specific case, but we can almost guarantee you later crashes and strange behaviour if you do not reorder the yanfly plugins into exactly the order given on his website. That is because plugins overwrite engine functions in the order they're placed in the plugin manager, and the wrong order means that some redirects in yanflys plugins will not work correctly.
    and you need to start a new game after that, because such a reorder will make older savefiles incompatible.
     
    #9
  10. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    I ordered the plugins and received this error message. It also happened when I moved the parameters plug-in to the top of the list
     

    Attached Files:

    #10
  11. Andar

    Andar Veteran Veteran

    Messages:
    28,643
    Likes Received:
    6,584
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    did you save the project correctly and start a new game on the game's title screen after that?
    parameters.js has nothing to do with the plugins themselves, it is automatically written to contain the configuration set in the plugin manager.
    If it can't be loaded that usually means that there was a problem saving the data from the plugin manager.
     
    #11
  12. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    I did save it and then started a new game again, but it still hasn't worked, unfortunately. I don't get the error message but it continues to display the parameters I was trying to get rid of.
     
    #12
  13. Andar

    Andar Veteran Veteran

    Messages:
    28,643
    Likes Received:
    6,584
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    of course it still displays the parameters. I told you that that reorder was to prevent other future problems and not to remove the parameters, you still need another plugin modification to remove the parameters from yanfly's status screen.
     
    #13
  14. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,626
    Likes Received:
    1,049
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    #14
    Thordon123 likes this.
  15. Thordon123

    Thordon123 Veteran Veteran

    Messages:
    47
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    EDIT: The problem was fixed, this thread can be closed.

    Thanks Aloe, and Andar as I don't know how to make that plug-in modification myself I'll post another thread later asking for help with it.

    PS: Also, Aloe, I'm using your notepad plugin and it works like a charm!

    PSS: So did the equip plug-in you linked to, so thanks again!
     
    Last edited: Feb 19, 2018
    #15
    Aloe Guvner likes this.

Share This Page