| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 12 | 
 
| 积分 | 1 | 
 
| 经验 | 12966 | 
 
| 最后登录 | 2020-6-2 | 
 
| 在线时间 | 132 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 80 
 
        - 在线时间
 - 132 小时
 
        - 注册时间
 - 2014-5-7
 
        - 帖子
 - 148
 
 
 
 | 
	
-   #--------------------------------------------------------------------------
 
 -   # ● 生成目标数组
 
 -   #--------------------------------------------------------------------------
 
 -   def make_targets
 
 -     if !forcing && subject.confusion?
 
 -       [confusion_target]
 
 -     elsif item.for_opponent?
 
 -       targets_for_opponents
 
 -     elsif item.for_friend?
 
 -       targets_for_friends
 
 -     else
 
 -       []
 
 -     end
 
 -   end
 
 
  复制代码 在Game_Action里面处理的,关于Item的方法参考F1文档。 
玩家输入的时候会先设置target_index,然后实际执行前会用上面的方法生成对象的数组。 
调用的地方是Scene_Battle-   #--------------------------------------------------------------------------
 
 -   # ● 使用技能/物品
 
 -   #--------------------------------------------------------------------------
 
 -   def use_item
 
 -     item = @subject.current_action.item
 
 -     @log_window.display_use_item(@subject, item)
 
 -     @subject.use_item(item)
 
 -     refresh_status
 
 -     targets = @subject.current_action.make_targets.compact
 
 -     show_animation(targets, item.animation_id)
 
 -     targets.each {|target| item.repeats.times { invoke_item(target, item) } }
 
 -   end
 
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |