赞 | 0 |
VIP | 136 |
好人卡 | 4 |
积分 | 1 |
经验 | 2058 |
最后登录 | 2013-1-17 |
在线时间 | 142 小时 |
Lv1.梦旅人 辉瑞中国首席研究员<
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 142 小时
- 注册时间
- 2008-1-18
- 帖子
- 2129
|
先在Game_Pet中加attr_accessor :maseter_id
def make_action中if $game_party.actors[self.maseter_id].dead? then
return
end
class Sprite_Pet中def initialize(viewport, father_id = 0)
super(viewport)
@father_id = father_id
if $game_party.actors[father_id] != nil
if $game_party.actors[father_id].pet_id != 0
@battler = Game_Pet.new($game_party.actors[father_id].pet_id)
@battler.maseter_id = father_id
else
@battler = nil
end
end
end
class Sprite_Battler中注释掉@battler.pet_id = 0
应该达到LZ所需效果
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|