vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 28 Jul 2015 04:11 PM |
I am making an inventory system for my game, and what it does it when you click on a certain thing, it appears in your inventory as an image label. I already have the part down where you press e to open it and y to close it, that works fine.
What I need help with is the other part. I know how to make it so that when you click something an image label appears in it, but lets say I pick up two things. The two different things have to go in DIFFERENT slots. How would I make one thing go into one slot, and the other thing go into a another slot? Please help me out.
Someone already said I should use tables, but what should I do with them?
I was thinking something like GetChildren() inside of a table, but do it like this: GetChildren(#2) I don't know if that would work? Can you please tell me if it will? I was also thinking to put GetChildren() inside of a table, but then index the second value of GetChildren. Would that work? If none of these would work, please tell me what I should do with the tables. Thank you!! |
|
|
| Report Abuse |
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 28 Jul 2015 04:18 PM |
ChildAdded ( Instance child ) Fires when a child is added to the object. ChildRemoved ( Instance child ) Fires when a child is removed from the object.
when you get something or remove something from your inventory get the script to check everything in your inventory to update the table
yeah just use tables and those and some other things and ur all good |
|
|
| Report Abuse |
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 28 Jul 2015 05:02 PM |
| But what would the table actually be doing? |
|
|
| Report Abuse |
|