Author Topic: [XP] Selectable window update code in Scene_Map?  (Read 120 times)

Offline Lonelyafman

  • Total Beginner
  • Posts: 8
  • LV: 0
    • View Profile
[XP] Selectable window update code in Scene_Map?
« on: May 28, 2018, 03:12:54 PM »
oh well i have nothing to lose
i made the item window be called to appear in the map scene instead of through the menu scene (as well as the player's status) but the arrow keys don't move the cursor between items and pressing the action button only changes the item selection rectangle's opacity. so there are obviously issues with frame update, refresh, and that kind of thing but i can't figure out what to add to the Window_Item class:

(click to show/hide)

screenshot of the static thing:

also, i don't know how to close the window with another ESC press but that's not as high priority.
guidance is much appreciated.
« Last Edit: May 28, 2018, 07:16:45 PM by KK20 »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3190
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Selectable window update code in Scene_Map?
« Reply #1 on: May 28, 2018, 07:27:58 PM »
I can tell that you're learning how to script. Good! But I will just tell you that what you're doing isn't super straightforward.

For starters, I'm going to need to see how you're calling your item window on the map. Did you modify Scene_Map to do this?

The check for button B is also doing nothing. Most likely you're going to want to put that in your map scene. Where it is right now, the only time it gets ran is when your game is opened and everything is loading before the title screen appears.
Code: [Select]
# an example...don't put this in your game
def update
    if Input.trigger?(Input::B)
  # other things that update in the scene go here...
Not sure what your plan is with the @item_window attribute either.

Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!