Main Menu
  • Welcome to The RPG Maker Resource Kit.

Increasing the max level to a # greater than 99

Started by swiftdeathsk, August 03, 2007, 09:47:50 PM

0 Members and 1 Guest are viewing this topic.

swiftdeathsk

I was wondering (and hoping) if there was a way to edit the scripts to allow the player to go above the max default level, 99. I know that it cannot be done by editing the database (since we only have access to the in-game scripts, and not the RMXP program itself), but i've taken a look through the Game_Actor script and have noticed several indications which may be a way that the max level can be increased. Unfortunately, I dont have the experience to figure out just what line of coding would allow me to do this, so maybe someone else can help figure it out.

Here's a few lines in Game_Actor (ill also provide the line #) that i believe might be able to effect the max level:

    for i in 2..100
      if i > actor.final_level
(lines 98 &99)
from this section:
  #--------------------------------------------------------------------------
  # * Calculate EXP
  #--------------------------------------------------------------------------
  def make_exp_list
    actor = $data_actors[@actor_id]
    @exp_list[1] = 0
    pow_i = 2.4 + actor.exp_inflation / 100.0
    for i in 2..100
      if i > actor.final_level
        @exp_list[i] = 0
      else
        n = actor.exp_basis * ((i + 3) ** pow_i) / (5 ** pow_i)
        @exp_list[i] = @exp_list[i-1] + Integer(n)
      end
    end
  end
(lines 91-106)

and also:
    level = [[level, $data_actors[@actor_id].final_level].min, 1].max (line 484)
from this section:
  #--------------------------------------------------------------------------
  # * Change Level
  #     level : new level
  #--------------------------------------------------------------------------
  def level=(level)
    # Check up and down limits
    level = [[level, $data_actors[@actor_id].final_level].min, 1].max
    # Change EXP
    self.exp = @exp_list[level]
  end
(lines 478 to 487)

I hope that cuts down the time that it takes for someone to help.

Personally, i believe that if you just input a set integer in place of one of the variables, this will allow for a greater max level, but that's just an idea.

Thank you to whoever helps!

J-Crew

I'm not exactly sure how it's done but it is possible. I've seen edits on other sites that allow it. Also I've messed with the maximum number of variables and switches that can be used, and have been able to use a number far greater than it allows in the actual database. I suppose it would be about the same...scripting-wise.

swiftdeathsk

#2
>_> i was kinda hoping someone could tell me how, not just say "yes this is possible" -_-

but at least now i know it is possible  :)

EDIT: Also, I'm needing a way to allow skills to be learned at levels higher than 99. If this is possible, could someone please help me with this as well? Please and thank you!

da good king

sry, but there isn't one. searched hbgames.org (i knew I heard of it before there, they have some AMAZING scripts...damn trickster...DAM SEPH!)

there is a limit break script which allows to have more than the usual of other stats like EXP, MHP, MSP, but not level...