RPG Maker Forums

I feel like this is probably a really dumb question, but google doesn't seem to know so...

I want to give a one-time "+5% Hit Rate" boost to a single class when they reach level 2.  I tried the code below and it didn't work.  What would you recommend instead?

class Game_Actor < Game_Battler

  #--------------------------------------------------------------------------

  # * Level Up

  #--------------------------------------------------------------------------

  alias original_level_up level_up

  def level_up

    original_level_up

    if(@class_id == 1)

      if(@level == 2)

        @hit = += 0.05

      end

    end

  end

end

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top