3rd Gen Expert Posted January 16 Posted January 16 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?
Kaphotics Posted January 16 Posted January 16 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.
3rd Gen Expert Posted January 16 Author Posted January 16 On 1/16/2025 at 5:23 AM, 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. Expand 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?
Kaphotics Posted January 16 Posted January 16 On 1/16/2025 at 5:23 AM, Kaphotics said: PKHaX already lets you set whatever quantity you want Expand not PKHeX
3rd Gen Expert Posted January 16 Author Posted January 16 On 1/16/2025 at 5:17 PM, Kaphotics said: not PKHeX Expand Thought that was a typo...thanks.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now