Faz com que os personagens que entrem na equipe do herói estejam no nível médio (nível de todos os membros somado e depois divido pelo número de heóis) da mesma.

Desenvolvimento: SandGolem
Apenas copie o script e quando for colocar um novo herói, use o comando initialize.

#==========================================================================
# * Novo personagem tem nível médio do grupo
#==========================================================================
# por SandGolem
# Version 1
# 25.06.06
#==========================================================================
# Altere aqui a switch que desativa o script
#==========================================================================
SG_DontLevelAverage_Switch = 0
#==========================================================================
begin
SDK.log('SG New Character has Average Level', 'sandgolem', 1, '25.06.06')
if SDK.state('SG New Character has Average Level') != true
@sg_avglevel_disabled = true
end
rescue
end

if !@sg_avglevel_disabled
#--------------------------------------------------------------------------

class Interpreter
alias sandgolem_actorlevelavg_interp_129 command_129
def command_129
if @parameters[1] == 0 && @parameters[2] == 1
$sg_levelupaverage_actor = 1
if SG_DontLevelAverage_Switch != 0
if $game_switches[SG_DontLevelAverage_Switch]
$sg_levelupaverage_actor = nil
$game_switches[SG_DontLevelAverage_Switch] = nil
end
end
end
sandgolem_actorlevelavg_interp_129
$sg_levelupaverage_actor = nil
end
end

class Game_Actor < Game_Battler
alias sandgolem_actorlevelavg_actor_setup setup
def setup(actor_id)
sandgolem_actorlevelavg_actor_setup(actor_id)
if $sg_levelupaverage_actor && @level != nil
sg_temp_level = 0
$game_party.actors.each { |i| sg_temp_level += i.level }
sg_temp_level /= $game_party.actors.size
if @level <span id="mce_SELREST_start" style="overflow:hidden;line-height:0;">&#65279;</span>&lt; sg_temp_level
self.level=(sg_temp_level)
recover_all
end
end
end
end

#--------------------------------------------------------------------------
end
Anúncios