Help on how to change battle status skin? (Solved)

Discussion in 'RPG Maker VX Ace' started by scarletjon, Nov 28, 2016.

  1. scarletjon

    scarletjon Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
    I've looked just about alot of places for several hours now with a mix of trial an error, and I know I've seen this done years back before MV via scripts, but how to do you customize the battle status skin (e.g. that's highlighted in red) in Ace? In the image it's set to windowskin default based off the window.png I have in my system's folder. Any help is much appreciated. 


    battlestatus.png
     
    Last edited by a moderator: Nov 30, 2016
    #1
  2. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,296
    Likes Received:
    546
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    You need a script for that. It is not something you can do with events.
     
    #2
  3. scarletjon

    scarletjon Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
    I got that part,it's script-related, but I'm trying to figure out what, or rather how to do the modification in the default battle status.
     
    #3
  4. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,296
    Likes Received:
    546
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    If you are asking where to look to change that then you can take a look at the Scene_Battle and every related window class (the ones related to all the windows created in that class). Once you're there and you decided WHICH window you want to change, create a new window skin, name it as you like (in my example it will be "Window2") and then add this to the initialize method in the window class you want to change:


    self.windowskin = Cache.system("Window2")


    The most important thing is to add it AFTER the line containing "super".


    EDIT: code corrected.
     
    Last edited by a moderator: Nov 29, 2016
    #4
  5. scarletjon

    scarletjon Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
     
    #5
  6. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,296
    Likes Received:
    546
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Since windowskin is defined in Window and that class is a parent for Window_Base (and every other window class inherits from Window_Base one way or another) you can use it in EVERY window class.


    Be aware of the fact that if you change it for a class, every child class inherits that new skin!


    Example: if you change it for the Window_Selectable class every window class related to Window_Selectable (Window_Command, for example) will have the new skin unless you specify something different in that specific class. In which case you have to specify the new skin in every related class you don't want to share the skin with Window_Selectable.
     
    #6
    scarletjon likes this.
  7. scarletjon

    scarletjon Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
    I'll keep this in mind, thank you so much for the help and advice! 
     
    #7

Share This Page