|
| 17 Oct 2013 11:11 PM |
How would I go about making an efficient inventory, which I could create stores and banks and it'd still be compatible.
Any ideas?
(I'm not asking for code, just how the inventory information is stored and displayed. This is a very in-depth question and I apologize if I'm not specific enough. I'm attempting to make an RPG, but I got stumped at this point.) |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 11:16 PM |
I would go with string values in a local script to manage them, or something.
Copy the script to player when they join. Name it inventory or something. Put string values inside. ???? Profit. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 11:18 PM |
Thats interesting, but how would I access those stringvalues from a another outside object/script.
Like a bank? |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 11:26 PM |
game.players.player.localscript.stringvalue
That's how it would be done |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Oct 2013 11:30 PM |
Oh, I misunderstood.
I thought you meant variables inside the local script that = a string.
a = "Hey Friend!" b = "Hello World!" c = "Pi is good." |
|
|
| Report Abuse |
|
|