Absorb percentage of enemies stats

I am searching for a script that is similar to the Cannibalism script but not exactly.
I want a script that would go onto a move, and this move would allow you to absorb X% of the enemies stats into your owns, permanently, exactly like the "Grow" mechanic.
I would like a version that takes a configurable % from the enemies stats and adds it to your own permanently,
and one that just adds a configurable % to your own stats permanently (doesn't weaken the enemy. it add a % of the enemies stats to your own without taking it from them.)
If this is possible I would absolutely love this script!
Thank you.
The simplest answer that requires no script would be.
Use damage formula. And write this.
Code:
a.add_param((b.atk * 0.1).to_i, 2); <your damage formula here>

How does this work?
Code:
a.add_param(<value>, <stat id>)
This code would permanently increase the stat of the character.
<value> would be the increment
<stat id> would be the stat ID listed as follow:
  • 0. Max HP
  • 1. Max MP
  • 2. ATK
  • 3. DEF
  • 4. MAT
  • 5. MDF
  • 6. AGI
  • 7. LUK
Code:
a.add_param(b.atk, 2)
This code is equal as add the target's attack stat to your attack stat

Code:
a.add_param(b.atk * 0.1, 2)
This code is equal as add 10% of the target's attack stat to your attack stat.
However, since it would convert the number to decimal number and that would not look nice in the menu, we need to convert it to integer, and thus it becomes like this.
Code:
a.add_param((b.atk * 0.1).to_i, 2)

I hope this helps.
The simplest answer that requires no script would be.
Use damage formula. And write this.
Code:
a.add_param((b.atk * 0.1).to_i, 2); <your damage formula here>

How does this work?
Code:
a.add_param(<value>, <stat id>)
This code would permanently increase the stat of the character.
<value> would be the increment
<stat id> would be the stat ID listed as follow:
  • 0. Max HP
  • 1. Max MP
  • 2. ATK
  • 3. DEF
  • 4. MAT
  • 5. MDF
  • 6. AGI
  • 7. LUK
Code:
a.add_param(b.atk, 2)
This code is equal as add the target's attack stat to your attack stat

Code:
a.add_param(b.atk * 0.1, 2)
This code is equal as add 10% of the target's attack stat to your attack stat.
However, since it would convert the number to decimal number and that would not look nice in the menu, we need to convert it to integer, and thus it becomes like this.
Code:
a.add_param((b.atk * 0.1).to_i, 2)

I hope this helps.
It didn't work. I'm also unable to add multiple parameters.
By "didn't work". How did you confirm that it didn't work?
By "didn't work". How did you confirm that it didn't work?
I tested it in-game on a save. My stats did not increase at all.
Show me how you do it. The proof, not just a text.
What was the number, the damage formula you use, how much increase did you expect. And importantly, all the steps you have gone through to test and confirm.

Original thread: https://forums.rpgmakerweb.com/threads/absorb-percentage-of-enemies-stats.139548/