赞 | 0 |
VIP | 0 |
好人卡 | 20 |
积分 | 17 |
经验 | 42858 |
最后登录 | 2024-9-22 |
在线时间 | 761 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1696
- 在线时间
- 761 小时
- 注册时间
- 2013-9-23
- 帖子
- 211
|
本帖最后由 午睡的风铃 于 2015-7-2 12:50 编辑
这段脚本是从MOG的ATB里截取来的,应该不会违反啥规约之类的吧。
应该不可能跟MOG的其他脚本不兼容
作用是不显示敌人出现时的提示和战斗中的实况。
完全无脑的复制粘贴了两个类的全部内容,可能会有无用的部分在里边(─.─|||- module MOG_ATB_SYSTEM
- WAIT_LOG_WINDOW = false
- MESSAGE_ENEMY_APPEAR = false
- end
- #==============================================================================
- # ■ BattleManager
- #==============================================================================
- module BattleManager
- #--------------------------------------------------------------------------
- # ● Battle Start
- #--------------------------------------------------------------------------
- def self.battle_start
- $game_system.battle_count += 1
- $game_party.on_battle_start
- $game_troop.on_battle_start
- if MOG_ATB_SYSTEM::MESSAGE_ENEMY_APPEAR
- $game_troop.enemy_names.each do |name|
- $game_message.add(sprintf(Vocab::Emerge, name))
- end
- end
- if @preemptive
- $game_message.add(sprintf(Vocab::Preemptive, $game_party.name))
- elsif @surprise
- $game_message.add(sprintf(Vocab::Surprise, $game_party.name))
- end
- wait_for_message
- end
- #--------------------------------------------------------------------------
- # ● Input Start
- #--------------------------------------------------------------------------
- def self.input_start_at(battler)
- if @phase != :input
- @phase = :input
- battler.make_actions
- clear_actor
- end
- return !@surprise && battler.inputable?
- end
- #--------------------------------------------------------------------------
- # ● Turn Start
- #--------------------------------------------------------------------------
- def self.turn_start
- @phase = :turn
- clear_actor
- make_action_orders
- end
- #--------------------------------------------------------------------------
- # ● Preemtive Attack
- #--------------------------------------------------------------------------
- def self.preemptive_attack
- @preemptive
- end
- #--------------------------------------------------------------------------
- # ● Suprise Attack
- #--------------------------------------------------------------------------
- def self.surprise_attack
- @surprise
- end
- end
-
- if !MOG_ATB_SYSTEM::WAIT_LOG_WINDOW
- #==============================================================================
- # ■ BattleManager
- #==============================================================================
- class Window_BattleLog < Window_Selectable
- #--------------------------------------------------------------------------
- # ● Refresh
- #--------------------------------------------------------------------------
- def refresh
- end
- #--------------------------------------------------------------------------
- # ● Message Speed
- #--------------------------------------------------------------------------
- def message_speed
- return 5
- end
- #--------------------------------------------------------------------------
- # * Wait for Effect
- #--------------------------------------------------------------------------
- def wait_for_effect
- return false
- end
- end
- end
复制代码 |
|