Hey all! I am currently working on a script (using Yanfly's Command Equip as a base) that mimics the in-battle equip change function in Final Fantasy games. Basically, while in the item menu in battle, pressing UP while on the topmost row of items will bring up another window where you can change your weapon and shield.
I have the actual equip change menu working, and I can access it from the item menu in-battle. My only problem right now lies in the Process Handling of :UP. I can't seem to make it only call up the in-battle equip scene when it is pressed while the cursor is on the top row of the menu only. I have it so that it triggers from either the top row, or while moving to the top row from the second row, but I'd like it to only work while the cursor is on the very top row of the menu. If this isn't possible, I can easily assign it to another button, but I'm going for authenticity here so it'd be nice if there was a way to make it work.
Here's what I have so far, this calls the scene when :UP is pressed from either the top row or second row. I only want the scene to be called when the cursor is already on the very top row.
return process_equip if @index <= 1 && Input.trigger?🙂UP)Like I said, this makes it work when :UP is pressed on the first row, but when :UP is pressed while the cursor is on the second row, it goes up to the first row AND calls the scene (below that, UP works fine and only scrolls through the item menu). I only want the scene called if the cursor is already on the top row, and :UP is pressed.
This is probably something really, really simple that I am just missing in my noobishness, but I've just started working with menus and windows so I have been learning by referencing the base scripts and others.
Thanks for any help! ^^
I have the actual equip change menu working, and I can access it from the item menu in-battle. My only problem right now lies in the Process Handling of :UP. I can't seem to make it only call up the in-battle equip scene when it is pressed while the cursor is on the top row of the menu only. I have it so that it triggers from either the top row, or while moving to the top row from the second row, but I'd like it to only work while the cursor is on the very top row of the menu. If this isn't possible, I can easily assign it to another button, but I'm going for authenticity here so it'd be nice if there was a way to make it work.
Here's what I have so far, this calls the scene when :UP is pressed from either the top row or second row. I only want the scene to be called when the cursor is already on the very top row.
return process_equip if @index <= 1 && Input.trigger?🙂UP)Like I said, this makes it work when :UP is pressed on the first row, but when :UP is pressed while the cursor is on the second row, it goes up to the first row AND calls the scene (below that, UP works fine and only scrolls through the item menu). I only want the scene called if the cursor is already on the top row, and :UP is pressed.
This is probably something really, really simple that I am just missing in my noobishness, but I've just started working with menus and windows so I have been learning by referencing the base scripts and others.
Thanks for any help! ^^