Alright so in the process of making an inventory system Ive run into a pretty ugly show stopper.
Some of the items I want players to have access to, have more than one word in their name ex: Baseball bat, Desert Eagle, Giant’s Club
I know that for stats like Cooking Skills you can get past this easily.
In the startup.txt you would simply type
*create cooking_skills
and then override it in the stats.txt
step one:
text cooking_skills
step two: add a space following the original and simply rewrite your new skill title
text cooking_skills Cooking Skills
and your “skill” would look smooth asf
but alas I’m trying to create an >Item< that is equally smooth and non-immersion breaking
And so on. The & is for concatenating things onto your inventory string variable.
Since this might be something you may have to do everytime the inventory changes, you could place it on a subroutine to always make the necessary updates to your inventory.
You might run into the problem where you have to add this checking in a lot of places (everytime you update the inventory).
A way to correct this is by using a *gosub to do this check. If you want to know how you can ask me later.
There are other ways to doing inventory also, I myself have one very different from yours, but you can PM me if you have questions about the *gosub or inventory.