Exp decresing without level down

Discussion in 'RPG Maker VX Ace' started by LynX, Mar 15, 2016.

  1. LynX

    LynX Veteran Veteran

    Messages:
    81
    Likes Received:
    7
    Location:
    Poland
    First Language:
    Polish
    Hi is there a way to decrease experience ammount by 25% but without decreasing level ? If exp reach more than this level required ?
    I mean i want to decrease exp but disable level down.
     
    #1
  2. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,057
    Location:
    Toronto
    First Language:
    English
    Unfortunately, by default, level is tied to EXP


    You would need a script that would prevent level down.


    Add this to your project if you don't want to ever level down.

    Code:
    class Game_Actor < Game_Battler
      def change_exp(exp, show)
        @exp[@class_id] = [exp, 0].max
        last_level = @level
        last_skills = skills
        level_up while !max_level? && self.exp >= next_level_exp
        #level_down while self.exp < current_level_exp
        display_level_up(skills - last_skills) if show && @level > last_level
        refresh
      end
    end
     
    #2
    LynX likes this.
  3. LynX

    LynX Veteran Veteran

    Messages:
    81
    Likes Received:
    7
    Location:
    Poland
    First Language:
    Polish
    Thanks You Very Much Hime!
     
    #3

Share This Page