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.

A script to allow all actors to recieve experience

I'd like a script to allow all actors to recieve the same amount of experience points regardless of whether or not they are in battle or even in the party.
 

poccil

Sponsor

You can do this by overwriting the method cant_get_exp? in the Game_Battler class:

Code:
class Game_Battler
 def cant_get_exp?
  return false
 end
end

If you mean all actors, you can do this instead: Modify the script section Scene_Battle 2 (the function named start_phase5):

Code:
    for i in 0..999
      actor = $game_actors[i]
      if actor
        actor_id=-1
        for j in 0...$game_party.actors.size
         actor_id=j if $game_party.actors[j]==actor
        end
        last_level = actor.level
        actor.exp += exp
        if actor.level > last_level && actor_id>=0
          @status_window.level_up(actor_id)
        end
      end
    end
 

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