设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

求助 MOG_ATB_战斗系统战斗内弹选项卡死

查看数: 26 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2025-4-12 23:36

正文摘要:

回复

百里_飞柳 发表于 前天 23:36
这也是个神奇的战斗,怎么直接一刀切把全部选择框的更新都ban了,然后在战斗中又直接忘记了事件里的选择框
  1. class Window_Selectable < Window_Base
  2.   #--------------------------------------------------------------------------
  3.   # ● Process Cursor Move
  4.   #--------------------------------------------------------------------------
  5.   def process_cursor_move
  6.     if SceneManager.scene_is?(Scene_Battle)
  7.       # 如果事件在执行中,则不跳过出现的选择框的光标移动
  8.       if $game_troop.interpreter.running?
  9.       else
  10.         return if skip_command?
  11.       end
  12.     end
  13.     mog_atb_wactor_process_cursor_move
  14.   end
  15.   #--------------------------------------------------------------------------
  16.   # ● Process Handling
  17.   #--------------------------------------------------------------------------
  18.   def process_handling  
  19.     if SceneManager.scene_is?(Scene_Battle)
  20.       # 如果事件在执行中,则不跳过出现的选择框的确定or取消
  21.       if $game_troop.interpreter.running?
  22.       else
  23.         return if skip_command?
  24.       end
  25.     end
  26.     mog_atb_wactor_process_handling
  27.   end   
  28. end
  29. class Scene_Battle
  30.   #--------------------------------------------------------------------------
  31.   # ● Execute Event Phase
  32.   #--------------------------------------------------------------------------            
  33.   alias mog_atb_battle_execute_event_phase execute_event_phase
  34.   def execute_event_phase
  35.     # 如果角色未在行动,则在事件执行结束后,不打开角色指令窗口
  36.     a = BattleManager.actor
  37.     @actor_command_window.visible = false if a == nil
  38.     mog_atb_battle_execute_event_phase   
  39.   end   
  40. end
复制代码
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-4-14 02:47

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表