Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Bokaii · Jan 15, 2016 at 04:04 PM · inventory systemcrafting

Inventory and crafting

So I'm making a survival game, but I'm stuck with the inventory and crafting system. I've made the inventory system by following this tutorial:

https://www.youtube.com/watch?v=D5WEwG4L5HQ

I want to create a crafting system, but I'm out of ideas. Any ideas on how to make a crafting system, using this inventory system, or maybe a new and simple inventory system, in order to make the crafting system?? :D

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dibbie · Jan 15, 2016 at 04:28 PM

Im not sure how that system works, but in theory, a simpler method might be:

Create an array of gameobjects Get a gameObject thats actually just a panel with a image component attached to it, to store the visual of the item Display these items in a certain order, however you choose, 4 x 4, 5 x 5, 9 x 2, whatever...

Then, have a "Crafting" or Formula Sheet" with your inventory, so when certain items are combined, it checks if its a real "craft" that exists.

For example, in your "Formula sheet", 10 steel + 4 iron + 1 magic rod = Enchanted Sword, so if they only have 9 steel and try to craft something, the result is nothing, unless you have something to compensate for 9 steel as well.

Another way you could do it is, check both items. For example, if its steel + iron, its a sword, if its iron + tree bark, its a staff, and so on.

Theres 101 ways you can approach it, I guess it all really depends on exactly what your planning to do, how YOU specifically want both your inventory and crafting system to work. You can even go really advanced to the point that items have "quality" to them, and "durability", and a chance of being destroyed in the process, and so on.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bokaii · Jan 15, 2016 at 05:19 PM 0
Share

First of all, thank you for your answer.

  • now, I was thinking a crafting system, where I have a list of things I can craft, and if I have the required items, I can craft it by clicking it. But, in order to do that, I would have to have the crafting system and the inventory working together. And I'm just not sure how to do that.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

31 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Inventory Add Item error 2 Answers

Help with crafting system similar to terraria 0 Answers

2d mobile Multi Scene inventory 0 Answers

Inventory help. 0 Answers

How to add item to inventory with these scripts 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges