Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Getting the scenes to appear in a window.

Sorry that I've been asking for help in this forum alot lately but I've only been using RMXP (even though I've used previous RPG Makers before) for a few days and Ruby is proving taxing at points. This is probably kind of a big question so I'm not looking for people to completely tell me the whole answer (unless it's easier than I think) but instead point me in the direction of things to look up or what areas I should investigate. The idea is that my current menu system is like so which I am working on (I know it's not very good but as said I've only been using RMXP for a few days).

http://img168.imageshack.us/img168/4554/untitled1ef0.th.jpg[/IMG]

The idea is that the bit where my party is (the Window_MenuStatus bit) changes to the item/skill/stat/whatever window instead of changing the whole scene. Help of where I should look to continue on next would be greatly appreciated, I'm not very ruby acquainted yet as I've just been learning by messing with stuff.
 
Generally, you can modify a scene by adding a new window object. Then in the update method, where it branches off into sub-methods, above the branch, add a check for your method.

Code:
class Scene_Yourscene
  alias_method :yourname_scriptname_yourscene_update, :update
  def update
    if @your_window != nil & @your_window.active
      update_yourwindow
      return
    end
    yourname_scriptname_yourscene_update
  end
  def update_yourwindow
    # your code here
  end
end

So just alter where it switches to your alternate scene to instead, create a new item window. Then, create your item stuff in your new method.

A good example of this is in Scene_Battle, in phase3.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top