[Ace] One-time boost to Hit

● ARCHIVED · READ-ONLY
Started by abcxyz123 6 posts View original ↗
  1. 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?

    Spoiler
    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
  2. xparams and sparams by default are all handled by Features. So if you want to increase them, you'd need to add a feature that increases them.


    Shaz has a script for dynamically adding features
  3. If you were to add another variable to the actor for each param/xparam/sparam (one you can increase), then overwrite the definition for each param/xparam/sparam, it should work too.

    Hmmm....you may have just given me a script idea too....
  4. Yanfly has a script for allowing custom formulas for xparams.
  5. Yanfly's also doesn't let you do a one time boost (that I know of), as it only allows you to modify the formula it is based on.
  6. You could utilize the formula for that... If level is greater than 1, add the bonus.