| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 7009 | 
 
| 最后登录 | 2013-9-6 | 
 
| 在线时间 | 17 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 17 小时
 
        - 注册时间
 - 2007-8-10
 
        - 帖子
 - 170
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
我想在Scene_Battle 4的update_phase4_step5 里写反击 
敌人A攻击我方某角色后,该角色有反击(已设定),就普通攻击攻击敌人A 
 这个 敌人A 我改怎么写,它是选上的被攻击的目标呢? 
########### 
或者在def make_basic_action_result里 
# 行动方的战斗者是角色的情况下 
      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.current_action.target_index 该怎么赋值呢? 
 
 
  版务信息:本贴由楼主自主结贴~ |   
 
 
 
 |