Posted 29 April 2012 - 10:57 AM
I made an inventory using tables, whenever you kill a guy it inserts an item into the table. When you press Tab to go to the inventory screen it will show you what you have in your inventory and the inventory screen has an input system (read()) at the bottom.
How do I make it so that when you type something like "eat (any item)" it will eat the requested item you have in your inventory, if you have it. Because I don't want to manually make ALL the ifs and ends and thens when I plan to have tons of items in the game.
How do I make it so that when you type something like "eat (any item)" it will eat the requested item you have in your inventory, if you have it. Because I don't want to manually make ALL the ifs and ends and thens when I plan to have tons of items in the game.