プレイ日記
Velocireed Bobolito2001
BEHOLD! now, how do you load a save file from a text file? i want to be able to load like in pokemon, where you only have one file and new game. I currently have no idea how to show and load a save file
1そうだね
プレイ済み
返信[1]
親投稿
MathPRG MathProgrammer
The easiest way to do this would be to save your values in a DAT file. However, you can only put numerical values into these files. To save values to a DAT file, make an array with as many dimensions as you need, and store save file variables to its individual elements. Then you tell it to save the data with 'SAVE"DAT:nameOfFile",nameOfArray'
0そうだね
プレイ済み
返信[2]
親投稿
MathPRG MathProgrammer
Then, most easily being done with the same array, use 'LOAD"DAT:fileYouSaved",nameOfArray,0' the 0 at the end will rid of the dialog display.
0そうだね
プレイ済み
返信[3]
親投稿
MathPRG MathProgrammer
This will store the data you saved to the array. Then you just need to declare your variables with what you saved. The elements of the array will be in the same way they were when you saved them too, so don't worry about that :)
0そうだね
プレイ済み
返信[4]
親投稿
Velocireed Bobolito2001
Okay, Thanks!
0そうだね
プレイ済み
返信[5]
親投稿
κιъъιε kibbledude
Is this an rpg?
0そうだね
プレイ済み
返信[6]
親投稿
Velocireed Bobolito2001
Not Really...
0そうだね
プレイ済み
返信[7]
親投稿
κιъъιε kibbledude
oh... Ill still play it though!
0そうだね
プレイ済み
返信[8]
親投稿
Velocireed Bobolito2001
Well, There's nothing to play yet, but the game is still going through some major design changes!
0そうだね
プレイ済み