class Game_Followers
def initialize(leader)
@visible = $data_system.opt_followers
@gathering = false # 集合處理中的標志
@leader = leader
@data = []
@mama = []
end
def yooo_very_fresh
$game_player.refresh
SceneManager.scene.spriteset.refresh_characters
end
def jj(aid)
@data == [] ? p = @leader : p = @data[-1]
@data.push(Game_Follower.new(aid, p))
@mama[aid] = [] unless @mama[aid]
@mama[aid].push(@data[-1])
msgbox @mama[aid].size
@data[-1].moveto($game_player.x, $game_player.y)
yooo_very_fresh
end
def cut_jj(aid)
@data.delete(@mama[aid][0])
@mama[aid][0] = nil
@mama[aid].compact!
@data.each_with_index do |baby, i|
i == 0 ? baby.preceding_character = @leader : baby.preceding_character = @data[i-1]
end
yooo_very_fresh
end
end
class Game_Follower < Game_Character
attr_writer :preceding_character
def actor
$game_actors[@member_index]
end
end
class Scene_Map < Scene_Base
attr_reader :spriteset
end