3rd Gen Expert Posted Thursday at 03:12 AM Posted Thursday at 03:12 AM 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 Thursday at 05:23 AM Posted Thursday at 05:23 AM 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 Thursday at 03:56 PM Author Posted Thursday at 03:56 PM 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?
Kaphotics Posted Thursday at 05:17 PM Posted Thursday at 05:17 PM 11 hours ago, Kaphotics said: PKHaX already lets you set whatever quantity you want not PKHeX
3rd Gen Expert Posted Thursday at 06:23 PM Author Posted Thursday at 06:23 PM 1 hour ago, Kaphotics said: not PKHeX 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