Give all items
Posted: Sat Sep 25, 2021 9:53 pm
Hey all, I am new here and been messing with making tables and learning. I recenetly posted a table I made for final fantasy 13 that somebody had requested a table for. It was ironically the game I chose to practice on.
Anyway, I am working on a give all items code and I have it able to give all basic items (potions, elixirs, antidotes, etc...)
Now I swear there is a better way to write the code in, its a simple inventory system, just input item id name and just a couple bytes later input quantity.
(green is the item id, which I currently have displayed per byte) (red is the quantity)
[Link]
My question is how would you personally go about writing that code into the game?
The way I did it, I feel has to be the long route and I feel there must be a better way to go about inputting all that info and don't want to continue writing code for it if its not an efficient way.
I have it writing the hex amount skip 4 bytes write again, until it finishes the name and then input quantity.
I was thinking like a table that could be called and just fills the bytes in automatically instead of having to control it jumping around.
There is nothing around the area besides the inventory, much further down is weapons, then accessories, materials, then final key items.
I don't want to make it jump around so much for so many items. I just can't see it being efficient lol.
Anyway, I am working on a give all items code and I have it able to give all basic items (potions, elixirs, antidotes, etc...)
Now I swear there is a better way to write the code in, its a simple inventory system, just input item id name and just a couple bytes later input quantity.
(green is the item id, which I currently have displayed per byte) (red is the quantity)
[Link]
My question is how would you personally go about writing that code into the game?
The way I did it, I feel has to be the long route and I feel there must be a better way to go about inputting all that info and don't want to continue writing code for it if its not an efficient way.
I have it writing the hex amount skip 4 bytes write again, until it finishes the name and then input quantity.
I was thinking like a table that could be called and just fills the bytes in automatically instead of having to control it jumping around.
There is nothing around the area besides the inventory, much further down is weapons, then accessories, materials, then final key items.
I don't want to make it jump around so much for so many items. I just can't see it being efficient lol.