McPaul

On my way to become a controversial and hated member.

He/ Him
Switzerland
Seen 5 Hours Ago
Posted 9 Hours Ago
202 posts
2.7 Years
Hello!
As I'm tyring to learn how to use pokeemerald, the oldhags will like this try to make Emerald stats like GSC. I managed to make all stats maxed out (no EV limit, all EV can get maxed, vitamins like Calcium all give 16 EV each up to 160 EV to give the same effect as GSC too, SPA and SPDEF have the same IV and natures are all neutral.)

But the last thing to do to GSCize Emerald stats is to delete Zinc and make Calcium raise SPA AND SPDEF at the same time. So the item's code got modified like this:

const u8 gItemEffect_Calcium[10] = {
[5] = ITEM5_EV_SPATK | ITEM5_EV_SPDEF | ITEM5_FRIENDSHIP_ALL,
[6] = 16,
[7] = 5,
[8] = 3,
[9] = 2,

The problem here is that now the Pokémon can eat 20 Calcium instead of 10 and one stat gets raised THEN another instead of the two at the same time.
How could the two of them be raised at the same time with only one Calcium?

Thanks for your answer!

McPaul

On my way to become a controversial and hated member.

He/ Him
Switzerland
Seen 5 Hours Ago
Posted 9 Hours Ago
202 posts
2.7 Years
I did it! I found it by myself!

For those who would be interested in this here is the code I made:

const u8 gItemEffect_Calcium[10] = {
[3] = ITEM3_EV_SPATK | ITEM3_EV_SPDEF,
[4] = ITEM4_FRIENDSHIP_ALL,
[5] = 16,
[6] = 16,
[7] = 5,
[8] = 3,
[9] = 2,
};