赞 | 0 |
VIP | 5 |
好人卡 | 14 |
积分 | 15 |
经验 | 110639 |
最后登录 | 2015-10-15 |
在线时间 | 1157 小时 |
Lv3.寻梦者 小柯的徒弟
- 梦石
- 0
- 星屑
- 1535
- 在线时间
- 1157 小时
- 注册时间
- 2008-5-24
- 帖子
- 3085
|
- class Scene_Battle
- All_全体攻击状态 = [1,2,3]
- All_是否连自己也打 = true #正确——true、错误——false
- def make_basic_action_result
- if @active_battler.current_action.basic == 0
- @animation1_id = @active_battler.animation1_id
- @animation2_id = @active_battler.animation2_id
- if @active_battler.is_a?(Game_Enemy)
- if @active_battler.restriction == 3
- target = $game_troop.random_target_enemy
- elsif @active_battler.restriction == 2
- target = $game_party.random_target_actor
- else
- index = @active_battler.current_action.target_index
- target = $game_party.smooth_target_actor(index)
- end
- end
- if @active_battler.is_a?(Game_Actor)
- if @active_battler.restriction == 3
- target = $game_party.random_target_actor
- elsif @active_battler.restriction == 2
- target = $game_troop.random_target_enemy
- else
- index = @active_battler.current_action.target_index
- target = $game_troop.smooth_target_enemy(index)
- end
- end
- @target_battlers = [target]
- push_all
- for target in @target_battlers
- target.attack_effect(@active_battler)
- end
- return
- end
- if @active_battler.current_action.basic == 1
- @help_window.set_text($data_system.words.guard, 1)
- return
- end
- if @active_battler.is_a?(Game_Enemy) and
- @active_battler.current_action.basic == 2
- @help_window.set_text("逃跑", 1)
- @active_battler.escape
- return
- end
- if @active_battler.current_action.basic == 3
- $game_temp.forcing_battler = nil
- @phase4_step = 1
- return
- end
- end
- def make_skill_action_result
- @skill = $data_skills[@active_battler.current_action.skill_id]
- unless @active_battler.current_action.forcing
- unless @active_battler.skill_can_use?(@skill.id)
- $game_temp.forcing_battler = nil
- @phase4_step = 1
- return
- end
- end
- @active_battler.sp -= @skill.sp_cost
- @status_window.refresh
- @animation1_id = @skill.animation1_id
- @animation2_id = @skill.animation2_id
- @common_event_id = @skill.common_event_id
- set_target_battlers(@skill.scope)
- push_all
- for target in @target_battlers
- target.skill_effect(@active_battler, @skill)
- end
- end
- def push_all
- for i in All_全体攻击状态
- if @active_battler.states.include?(i)
- a = true
- break
- end
- end
- if a
- @target_battlers = []
- for i in $game_party.actors
- if i.exist? and (All_是否连自己也打 or i.id != @active_battler.id)
- @target_battlers.push(i)
- end
- end
- for i in $game_troop.enemies
- if i.exist?
- @target_battlers.push(i)
- end
- end
- end
- end
- end
复制代码 以前写过的脚本一个~~~好吧,我是来捣乱的>< |
|