Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Example: Player has 4 characters in his party... takes one out, so the remaining 3 get more EXP per character, but the same total EXP
How I make it so that the remaining party members get 1/3 each of a EXP lump, instead of 1/4 for 4 characters?
if you're using an system that don't change the "def start_phase5" from Scene_Battle, look for this on Scene_Battle 2
Code:
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
actor.exp += exp
if actor.level > last_level
@status_window.level_up(i)
end
end
end
you can add this before that:
Code:
exp /= $game_party.actors.size
With this, the exp will be based on the party number, but will be the same even if there is dead actors.
you can instead add this:
Code:
size = 0
for actor in $game_party.actors
size += 1 if actor.exist?
end
exp /= size