76 posts
Location
Death City
Posted 21 September 2012 - 11:23 PM
I was wondering if there was anyway to have memory stored over different programs, like if you want to have something name you on initial boot it will say Whats your name, other times it will say oh hey so and so but you can do it with like multiple things?
Thanks
3790 posts
Location
Lincoln, Nebraska
Posted 21 September 2012 - 11:38 PM
You can do one of two things:
- Write a variable to a global value. Not recommended, but can be used.
- Write to a separate file in ComputerCraft. Harder to do, but more reliable.
1604 posts
Posted 21 September 2012 - 11:39 PM
3. Make an api that stores the value.
76 posts
Location
Death City
Posted 21 September 2012 - 11:42 PM
I knew what the options were I just have no idea how to do those things
1604 posts
Posted 21 September 2012 - 11:51 PM
1. Simply make a variable that's not local. (if you don't know how to do this, you really need to learn lua before).
2. You'll need the fs api, take a look at the wiki to learn how to use it.
3. An api is a file that contains functions. Just make one that lets you store a value.
5 posts
Location
Southern California
Posted 22 September 2012 - 12:09 PM