Users browsing this thread: 1 Guest(s)
It is the apocalypse after all.

#5
Posts: 383
Threads: 34
Thanks Received: 10
Thanks Given: 13
Joined: Dec 2018
Reputation: 18
Status
Moog
(07-19-2021, 07:49 PM)madsiur Wrote:
(07-19-2021, 07:44 PM)C-Dude Wrote: Here's the tedious way, which requires only a hex editor and reckless abandon of optimization:

Well this work, I thought the "remove item X from inventory" was subtracting 1 from the current item quantity, that's why I didn't thought the event route was the most practical one. Even then, you could with notepad++ and uses or copy/paste/replace write the event hex of 99 times a removal of 1 on 255 items. It's juist that it would take about 5000 bytes of free space lol

No, you're right, it is only subtracting one item from the inventory.  The loop I wrote runs 100 times, each time subtracting 1 from each item index 0 to FE.  Takes 528 bytes total with the bypass event to make it happen (bypass event hooks in where Celes's statuses are scrubbed clean).  Writing a custom event would take, like... 6 bytes of free event space, and however much space the ASM to empty the inventory requires?  Maybe 30 bytes total throughout the ROM?  That's way more efficient than what I posted.
  Find
Quote  



Messages In This Thread
It is the apocalypse after all. - by fw4210 - 07-19-2021, 06:56 PM
RE: It is the apocalypse after all. - by madsiur - 07-19-2021, 07:09 PM
RE: It is the apocalypse after all. - by C-Dude - 07-19-2021, 07:44 PM
RE: It is the apocalypse after all. - by madsiur - 07-19-2021, 07:49 PM
RE: It is the apocalypse after all. - by C-Dude - 07-19-2021, 07:54 PM
RE: It is the apocalypse after all. - by madsiur - 07-19-2021, 07:55 PM
RE: It is the apocalypse after all. - by fw4210 - 07-20-2021, 01:43 PM
RE: It is the apocalypse after all. - by C-Dude - 07-20-2021, 03:16 PM
RE: It is the apocalypse after all. - by fw4210 - 07-20-2021, 07:24 PM
RE: It is the apocalypse after all. - by C-Dude - 07-20-2021, 07:49 PM
RE: It is the apocalypse after all. - by fw4210 - 07-20-2021, 08:19 PM
RE: It is the apocalypse after all. - by C-Dude - 07-20-2021, 10:07 PM
RE: It is the apocalypse after all. - by fw4210 - 07-20-2021, 11:13 PM
RE: It is the apocalypse after all. - by C-Dude - 07-20-2021, 11:16 PM
RE: It is the apocalypse after all. - by fw4210 - 07-21-2021, 12:04 AM
RE: It is the apocalypse after all. - by fw4210 - 07-21-2021, 12:29 AM
RE: It is the apocalypse after all. - by fw4210 - 07-21-2021, 02:12 AM
RE: It is the apocalypse after all. - by fw4210 - 07-21-2021, 03:39 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite