Envision, Create, Share

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.

How to give More EXP when the player uses less characters

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?
 
Okay, I could do a simple mod depending on your battle system.

experience to give out = experience / party size
then give the experience to each actor. This'll evenly split the exp for each actor.
 

Atoa

Member

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
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top