Posted 30 October 2012 - 03:45 AM
So I've been trying to figure out for the past few days how I could save data to a file to receive at a later time. What I'm trying to do is make an adventure game where users can save their progress to a file. If possible, I would like it so that each user saves their data on a different file. Example: My file would be elfin8ersavedata. The program would then save different data on each line of the program. For an example, Line 1 would have the players ID, line 2 would have the players username, line 3 would have the users password, line 4 would have the users maxhp, line 5 would have the users hp, line 6 would have the users maxmp, line 7 would have the users mp, ect. Then, when the program needed to access these files, the program would read each line, and change a variable to match up with that line.
Am I making any sense at all? How would I do this?
I'm kinda new to computercraft, so the easier explained the better :P/>/>
Am I making any sense at all? How would I do this?
I'm kinda new to computercraft, so the easier explained the better :P/>/>