| 
 
| 赞 | 1 |  
| VIP | 22 |  
| 好人卡 | 4 |  
| 积分 | 1 |  
| 经验 | 14594 |  
| 最后登录 | 2015-10-25 |  
| 在线时间 | 796 小时 |  
 Lv1.梦旅人 綾川司の姫様< 
	梦石0 星屑50 在线时间796 小时注册时间2007-12-20帖子4520  
 | 
| Scene_Battle 4 
   #--------------------------------------------------------------------------# ● 生成基本行动结果
 #--------------------------------------------------------------------------
 def make_basic_action_result
 # 攻击的情况下
 if @active_battler.current_action.basic == 0
 # 设置攻击 ID
 @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
@active_battler.restriction代表那个限制。
 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
 | 
 |