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 do i change Final Level?

This little script should work, just change MAX_LEVEL with the max level you want.
Code:
MAX_LEVEL = 99

 

class Game_Actor

  def make_exp_list

    @exp_list[1] = @exp_list[MAX_LEVEL + 1] = 0

    m = actor.exp_basis

    n = 0.75 + actor.exp_inflation / 200.0;

    for i in 2..MAX_LEVEL

      @exp_list[i] = @exp_list[i-1] + Integer(m)

      m *= 1 + n;

      n *= 0.9;

    end

  end

end
 
vgvgf":33kenion said:
This little script should work, just change MAX_LEVEL with the max level you want.
Code:
MAX_LEVEL = 99

 

class Game_Actor

  def make_exp_list

    @exp_list[1] = @exp_list[MAX_LEVEL + 1] = 0

    m = actor.exp_basis

    n = 0.75 + actor.exp_inflation / 200.0;

    for i in 2..MAX_LEVEL

      @exp_list[i] = @exp_list[i-1] + Integer(m)

      m *= 1 + n;

      n *= 0.9;

    end

  end

end

Thanks =)
 

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