赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 4 |
经验 | 0 |
最后登录 | 2019-6-14 |
在线时间 | 15 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 353
- 在线时间
- 15 小时
- 注册时间
- 2019-4-14
- 帖子
- 31
|
- module Weapon_Attack_Skill
- Weapon_id = [3]
- Skill_id = [61]
- end
- class Scene_Battle < Scene_Base
- include Weapon_Attack_Skill
- #--------------------------------------------------------------------------
- # * 作戰行為處理
- #--------------------------------------------------------------------------
- def process_action
- return if judge_win_loss
- return if $game_temp.next_scene != nil
- set_next_active_battler
- if @active_battler == nil
- turn_end
- return
- end
- @message_window.clear
- wait(5)
- @active_battler.white_flash = true
- unless @active_battler.action.forcing
- @active_battler.action.prepare
- end
- if @active_battler.action.valid?
- execute_action
- @active_battler.action.basic = 3
- end
- if @active_battler.is_a?(Game_Actor)
- for i in 0...Weapon_id.size
- if @active_battler.weapon_id == Weapon_id[i]
- execute_action_skill if @active_battler.action.basic == -1
- end
- end
- end
- unless @active_battler.action.forcing
- @message_window.clear
- remove_states_auto
- display_current_state
- end
- @active_battler.white_flash = false
- @message_window.clear
- end
- #--------------------------------------------------------------------------
- # * 更新主角行動指令選擇的指令輸入資訊
- #--------------------------------------------------------------------------
- def update_actor_command_selection
- if Input.trigger?(Input::B)
- Sound.play_cancel
- prior_actor
- elsif Input.trigger?(Input::C)
- case @actor_command_window.index
- when 0 # 攻擊
- Sound.play_decision
- for i in 0...Weapon_id.size
- if @active_battler.weapon_id == Weapon_id[i]
- @skill = $data_skills[Skill_id[i]]
- @active_battler.action.set_skill(@skill.id)
- if @skill.need_selection?
- if @skill.for_opponent?
- start_target_enemy_selection
- else
- start_target_actor_selection
- end
- else
- next_actor
- end
- else
- @active_battler.action.set_attack
- start_target_enemy_selection
- end
- end
- when 1 # 技能
- Sound.play_decision
- start_skill_selection
- when 2 # 防禦
- Sound.play_decision
- @active_battler.action.set_guard
- next_actor
- when 3 # 用品
- Sound.play_decision
- start_item_selection
- end
- end
- end
- end
复制代码
没时间完善,勉强能用 |
|