I was wondering if there were any examples of an inventory system in the style of JRPGs where basically it can fit an indefinite number of items, scroll through them as necessary, and display quantity. I have already started working on this type of a system but since I'm new an example would be extremely helpful if one exists (i tried searching). Thanks.
Develop games in your browser. Powerful, performant & highly capable.
I don't believe there are any examples of a specifically JRPG kind of inventory.
However, there is David's example which I have never actually looked into. So I cannot say if it's close to the style you're aiming for or not.
Then there's scidave's tutorial Mikey's Adventure, which i believe does feature a list kind of inventory.
There's also a simple example I made for a western-style RPG inventory:
Looking through these examples might help you to find an own approach. I'd say such a thing would definitely involve an array, to create the columns and the rows of the item list and a hash table which has the items stored with their quantity as the key value. So much for the very rough theory.
If you need further help keep asking.
Thanks! Since posting this I have already found and modified Mikey's Adventure inventory to include most of the functions i need. In addition, I still haven't fully decided whether a jrpg or wrpg style system would work better for my game or if it will be some hybrid (the game is neither of those genres and both systems have pros and cons as a result) so thanks for the wrpg example as well