Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exact Code:
- <Custom Apply Effect>
- user.Phoenix = 0;
- </Custom Apply Effect>
- <Custom Regenerate Effect>
- // Increase the number of turns passed for phoenix effect.
- user.Phoenix += 1;
- var phoenixion = $dataWeapons[3];
- // Check if the number of turns is at least 3.
- if (user.Phoenix >= 3 && target.hasWeapon(phoenixion) && user.PhRevive <= 3) {
- // The HP regeneration rate.
- var rate = 0.30;
- var mprate = 0.25;
- var tprate = 0.35;
- // Create the value for HP regenerated.
- var value = Math.ceil(rate * user.mhp);
- var val = Math.ceil(mprate * user.mmp);
- var Tval = Math.ceil(tprate * 125);
- // User gains HP amount.
- target.startAnimation(49);
- user.gainHp(value);
- user.gainMp(-val);
- user.gainTp(-Tval);
- target.startDamagePopup();
- user.PhRevive += 1;
- }
- </Custom Regenerate Effect>
- Unrestricted (Applies to all party members and no weapon restrictions)
- <Custom Apply Effect>
- user.Phoenix = 0;
- </Custom Apply Effect>
- <Custom Regenerate Effect>
- // Increase the number of turns passed for phoenix effect.
- user.Phoenix += 1;
- // Check if the number of turns is at least 3.
- if (user.Phoenix >= 3 && user.PhRevive <= 3) {
- // The HP regeneration rate.
- var rate = 0.30;
- var mprate = 0.25;
- var tprate = 0.35;
- // Create the value for HP regenerated.
- var value = Math.ceil(rate * user.mhp);
- var val = Math.ceil(mprate * user.mmp);
- var Tval = Math.ceil(tprate * 125);
- // User gains HP amount.
- target.startAnimation(49);
- user.gainHp(value);
- user.gainMp(-val);
- user.gainTp(-Tval);
- target.startDamagePopup();
- user.PhRevive += 1;
- }
- </Custom Regenerate Effect>
Advertisement
Add Comment
Please, Sign In to add comment