The RPG Maker Resource Kit

Other Game Creation => Game Creation General Chat => Topic started by: Mushu on April 22, 2012, 05:35:39 AM

Title: Rec vs. Pha?[VXA]
Post by: Mushu on April 22, 2012, 05:35:39 AM
From what I see, 'recovery effect rate' and 'pharmacology' special parameters both influence the amount that an item heals you. What are the differences?
Title: Re: Rec vs. Pha?[VXA]
Post by: wsensor on April 22, 2012, 06:34:30 AM
They both effect healing.
Recovery Effect Rate (REC) effects the healing rate of everything.
Pharmacology effects items specifically and modifies the healing effects only if an item was used.

Code: [Select]
  #--------------------------------------------------------------------------
  # * [HP Recovery] Effect
  #--------------------------------------------------------------------------
  def item_effect_recover_hp(user, item, effect)
    value = (mhp * effect.value1 + effect.value2) * rec #Recovery Effect Rate this is always factored in during healing.
    value *= user.pha if item.is_a?(RPG::Item) #Pharmacology is only factored if an item was used.
    value = value.to_i
    @result.hp_damage -= value
    @result.success = true
    self.hp += value
  end
  #--------------------------------------------------------------------------
  # * [MP Recovery] Effect
  #--------------------------------------------------------------------------
  def item_effect_recover_mp(user, item, effect)
    value = (mmp * effect.value1 + effect.value2) * rec #Recovery Effect Rate this is always factored in during healing.
    value *= user.pha if item.is_a?(RPG::Item) #Pharmacology is only factored if an item was used.
    value = value.to_i
    @result.mp_damage -= value
    @result.success = true if value != 0
    self.mp += value
  end
  #----------------

I don't like how these work exactly I would rather see one effect items effectiveness and one effect skills specifically but as it is right now they work together.
If you want to only effect healing using pharmacology than don't use REC. If you want to effect healing in general and not just items don't use Pharmacology.
Title: Re: Rec vs. Pha?[VXA]
Post by: modern algebra on April 22, 2012, 12:29:36 PM
pharmacology is based on the user, while recovery effect rate is based on the actor receiving the item.

In other words, an actor's recovery effect rate will effect how much he or she is healed, while an actor's pharmacology will effect how much his or her target is healed when he or she uses an item.