Skip to content

Best practices to query an inventory for items and consume items #60

Answered by scriptsengineer
warsang asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Sorry for the delay, I hope the questions are still valid

  1. There are methods that check if there are items in your inventory node and there are also items that consume (The crafting system uses them, that is, you can consult the crafting system as a reference)
  2. The crafting system does just that, queries and then consumes

Remember that inventory information must be understood in an abstract way, for example, you could create an inventory to store the information of items that must be required to build. the Inventory node doesn't necessarily need to be used to have concrete items somewhere :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by warsang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants