Joined
Aug 13, 2019
Messages
69
Reaction score
12
First Language
english
Primarily Uses
RMVXA
hello.

I am using the storage boxes script by imp.

everything works fine but there is something that I don't like, and it is the following:

When you open a chest or closet , your inventory is shown on the left and the box on the right.

to move between the box and the inventory (vice versa) you must do it with the arrows (keyboard)

Example:

Right Arrow->You move to the box
Left Arrow->You move back to inventory.

Sin título.png

I want it to be able to move by pressing the left mouse button but it cannot, when clicking on the other side, the options "store" or "take" item appear, but the cursor does not go to the other side.

Is there a way to make the mouse cursor act like the keyboard arrows?

I use falcao mouse buttons script:

https://falcaorgss.wordpress.com/2012/09/17/mouse-system-buttons-update-1-5/

Thank you.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,140
Reaction score
1,109
First Language
English
Primarily Uses
RMVXA
Ruby:
class Scene_ItemStorage < Scene_MenuBase
  alias r2_item_storage_mouse_cursor  update
  def update
    r2_item_storage_mouse_cursor
    update_mouse
  end
  def update_mouse
    if $mouse_cursor.visible
      Mouse.update
      $game_arrows.update
      mx, my = *Mouse.position
      $mouse_cursor.x = mx unless mx.nil?
      $mouse_cursor.y = my unless my.nil?   
    end
    if ($mouse_cursor.x > Graphics.width / 2) && @bag_window.active
      @bag_window.deactivate
      @box_window.activate
    elsif ($mouse_cursor.x < Graphics.width / 2) && @box_window.active
      @box_window.deactivate
      @bag_window.activate
    end
  end
end
 
Joined
Aug 13, 2019
Messages
69
Reaction score
12
First Language
english
Primarily Uses
RMVXA
Ruby:
class Scene_ItemStorage < Scene_MenuBase
  alias r2_item_storage_mouse_cursor  update
  def update
    r2_item_storage_mouse_cursor
    update_mouse
  end
  def update_mouse
    if $mouse_cursor.visible
      Mouse.update
      $game_arrows.update
      mx, my = *Mouse.position
      $mouse_cursor.x = mx unless mx.nil?
      $mouse_cursor.y = my unless my.nil?
    end
    if ($mouse_cursor.x > Graphics.width / 2) && @bag_window.active
      @bag_window.deactivate
      @box_window.activate
    elsif ($mouse_cursor.x < Graphics.width / 2) && @box_window.active
      @box_window.deactivate
      @bag_window.activate
    end
  end
end

works perfect, thanks!

Do you think it is possible to do this but on the save and load game screen?

it won't let me move between different games with the mouse, only the keyboard.
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,140
Reaction score
1,109
First Language
English
Primarily Uses
RMVXA
Is that the default save and load screens?
 

Latest Threads

Latest Profile Posts

Dog saliva is an antiseptic.
NghNgE9.gif
Oh man. IGMC's finally back. I really want to participate, but I'm not sure if I have the time.
It is DC's turn to be celebrating her leveling up and starts her 20th year. We were many to think she wouldn't live that long. Starts your cats motors and make 'em purr!
why_hello_mira.jpg

I made myself a cult leader, and a concept scene for him as well. :LZSexcite:

Forum statistics

Threads
123,318
Messages
1,155,748
Members
161,739
Latest member
Ken_Brightblade
Top