Makes it easier to switch actors on the status screen with left and right arrow keys.
Creator name: Saara
Terms of Use
Non-commercial use: OK
Commercial use: Not Allowed
Redistribution: credit required
Processing: OK
Redistribution after processing: credit required
For RPG Maker VX Ace
Preview
How to Use
Paste this script above Main.
Script
Ruby:
#=============================================================================== # # ☆ Left and right keys on actor menu! by Saara # #------------------------------------------------------------------------------- # When window is a single row, the left and right keys will have a LR function. # Which makes it easier to move to the next/ previous actor on status screen. #------------------------------------------------------------------------------- #============================================================================== # ■ Window_Selectable #------------------------------------------------------------------------------ # Window class with cursor movement and scrolling functions. #============================================================================== class Window_Selectable #-------------------------------------------------------------------------- # ● Cursor movement process #-------------------------------------------------------------------------- def process_cursor_move return unless cursor_movable? last_index = @index cursor_down (Input.trigger?(:DOWN)) if Input.repeat?(:DOWN) cursor_up (Input.trigger?(:UP)) if Input.repeat?(:UP) if col_max == 1 cursor_pagedown if !handle?(:pagedown) && Input.trigger?(:RIGHT) cursor_pageup if !handle?(:pageup) && Input.trigger?(:LEFT) else cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT) cursor_left (Input.trigger?(:LEFT)) if Input.repeat?(:LEFT) end cursor_pagedown if !handle?(:pagedown) && Input.trigger?(:R) cursor_pageup if !handle?(:pageup) && Input.trigger?(:L) Sound.play_cursor if @index != last_index end #-------------------------------------------------------------------------- # ● Handling process for decision and cancellation #-------------------------------------------------------------------------- def process_handling return unless open? && active return process_ok if ok_enabled? && Input.trigger?(:C) return process_cancel if cancel_enabled? && Input.trigger?(:B) if col_max == 1 return process_pagedown if handle?(:pagedown) && Input.trigger?(:RIGHT) return process_pageup if handle?(:pageup) && Input.trigger?(:LEFT) end return process_pagedown if handle?(:pagedown) && Input.trigger?(:R) return process_pageup if handle?(:pageup) && Input.trigger?(:L) end end 复制代码
Credit and Thanks: Saara
Terms of Use - Free for non-commercial use with credit of "Saara"
Source
https://forum.tkool.jp/index.php?threads/vxaceスクリプト素材-メニューの左右キーをlrボタンに!.268/
本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/left-and-right-keys-on-actor-menu.130909/