RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Rec vs. Pha?[VXA]

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 69
From what I see, 'recovery effect rate' and 'pharmacology' special parameters both influence the amount that an item heals you. What are the differences?

**
Rep:
Level 84
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.
« Last Edit: April 22, 2012, 06:38:14 AM by wsensor »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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.