'Sacrifice Stats to Increase Another Stats' Skill

Hello.


Can I ask if this skill is possible in RPG Maker VX Ace?


I want to make a skill where a player can reduce a stat to boost another stat with exact value.


Example:


A player has 10 ATK and 80 DEF.


When the player uses a skill that will take half of DEF to increase ATK, the player will gain 40 ATK.
you can make a state that gives a -50% to one stat and a +50% to another by default, but to transfer points between parameters you'll need a script


I've moved this thread to Ace Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
It can be done using this script.

Original thread: https://forums.rpgmakerweb.com/threads/sacrifice-stats-to-increase-another-stats-skill.71901/