Jump to content

Recommended Posts

Posted

As I have seen by various cheating devices/ACE, it is very possible to have more than 99 items. I don't actually know what the upper ceiling is. 

What is the ceiling and how can I adjust an items quantity to this amount? Are there any issues with exceeding this arbitrary limit?

Posted

As you've already mentioned, the game will fail to render the quantity to a human-readable number of the current value.

Referring to the Emerald disassembly, the items are stored as u16 Item, u16 Quantity.

https://github.com/pret/pokeemerald/blob/9952b676db9d2c8d5e71f7339eb000d8aa496ab4/include/global.h#L582-L586

So, the quantity can be at most 65535 (2^16 - 1). PKHaX already lets you set whatever quantity you want (that can be stored by the structure, aka 65535 max in Gen3). Any issues? Try it and see.

Posted
10 hours ago, Kaphotics said:

As you've already mentioned, the game will fail to render the quantity to a human-readable number of the current value.

Referring to the Emerald disassembly, the items are stored as u16 Item, u16 Quantity.

https://github.com/pret/pokeemerald/blob/9952b676db9d2c8d5e71f7339eb000d8aa496ab4/include/global.h#L582-L586

So, the quantity can be at most 65535 (2^16 - 1). PKHaX already lets you set whatever quantity you want (that can be stored by the structure, aka 65535 max in Gen3). Any issues? Try it and see.

Appreciate the response. I did try using the 20241111 release, and I found the following attached. As you can see, berries and PC items are the only ones that can surpass 99 items, and that is still capped at 999.

Default Give Amount is what is shown in the count text box at the bottom of the bag edit window

Maximum Entry is what the text edit field restricts for entry on a particular item's quantity

Maximum value saved is what PKHeX will actually save after you enter the maximum entry in the item's quantity text edit field and click 'Save' (only key items have a discrepancy).

Perhaps I am doing something wrong? Or have to disable some legality checker?

Screenshot2025-01-16095014.thumb.png.9d957922e86eb77aeab0c92ae36765f3.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...