本帖最后由 KB.Driver 于 2020-1-26 21:37 编辑
有两种方案
第一种,直接改战斗人数,缺点就是人多了你在战斗中会很麻烦,不推荐
class Game_Party;def max_battle_members; 99 end end
class Game_Party;def max_battle_members; 99 end end
第二种,不直接改战斗人数
class Game_Followers ITEM_MAX = 99 # 开火车最大人数 alias initialize_for_more_followers initialize def initialize(leader) initialize_for_more_followers(leader) $game_party.max_battle_members.upto(ITEM_MAX) do |index| @data.push(Game_Follower.new(index, @data[-1])) end end end class Game_Follower def actor $game_party.members[@member_index] end end
class Game_Followers
ITEM_MAX = 99 # 开火车最大人数
alias initialize_for_more_followers initialize
def initialize(leader)
initialize_for_more_followers(leader)
$game_party.max_battle_members.upto(ITEM_MAX) do |index|
@data.push(Game_Follower.new(index, @data[-1]))
end
end
end
class Game_Follower
def actor
$game_party.members[@member_index]
end
end
|