If I were you, I wouldn\'t go by me, because knowing me, I probably messed something up. Anyway:
writeini $1 $+ .ini $1 MAttack $calc($readini($1 $+ .ini,$1,MHp) + %Defense)
writeini $1 $+ .ini $1 MDefense $calc($readini($1 $+ .ini,$1,MHp) + %Attack)
I changed MAttack and MDefense to Attack and Defense...And viola..And so that you don\'t get negative health check the snippets cuz someone posted a solution to that.