Interchangable Parameters

● ARCHIVED · READ-ONLY
Started by Milena 2 posts View original ↗
  1. I just have a quick question. Pardon me if its going to be a long explanation (maybe) on your part to get exactly what I want. 

    I am wondering if what is the possibility of a character to take all the parameters of another actor and revert back to that actor's original parameters if such condition runs out? 

    For example:

    Eric uses the state "Change Param". When change param state is applied (either map or battle), the character can choose in a database of actor list who to be as. In other words, Eric can choose if he can copy Ernest, Natalie, Rick or Brenda's current parameters while the state is applied. When the state rids out, then Eric's parameters would go back to the original ones he has.
  2. An battlers parameters are determined by its param, sparam and xparam methods. If you want to copy these from another battler, all you would have to do would be extending those methods to return the copied battlers param instead:

    class Game_Battler

      alias_method:)param_alias, :param)

      def param(id)

        if copy_from_another_battler?

          return copied_battler.param(id)

        else

          return param_alias(id)

        end

      end

    end

    However, when you copy maximum hp or sp, you may have to refresh your battler every time the battler you copy is refreshed or state-cleared to update the battlers hp/sp.

    (to be completed, Sorry)