Yanfly Equip Core: Tying an Equipment's Stat Boost to a Percentage?

● ARCHIVED · READ-ONLY
Started by Scoodles 1 posts View original ↗
  1. Hello.

    I currently need help in tying a stat boost to a percentage using the Lunatic section of the Yanfly Equip Core Plugin.

    The idea I had in mind was that the Actor's weapon had varying stats that fluctuated during the course of battle, with her skills increasing one of four variables tied to elements (Fire, Water, Air, Earth). Each Variable would be at a maximum of one hundred. I'm aware I have to use

    stat = $gameVariables.value(# of Variable) Parameter, but I do not know how to make it into a Percentage.

    Example:

    Actor uses 'Earth Blast' and does her damage. The Variable for 'Earth Affinity' raises to 20 points afterwards. Her Defense should have a 20% Boost, and her HP should have a 10% boost because of it. If she raises her 'Earth Affinity' to 100 points, she should have a 100% Boost to her Defense, and a 50% boost to her HP.

    EDIT: Just realized I posted in the wrong forum. Would someone mind moving this to the Javascript Support section of the forum please?