|
-
Dec 5th, 2000, 03:40 PM
#1
Thread Starter
New Member
I do not know how to save without all the variables being erased.
Could anybody point me to a website, or show me how to?
Damn Clone Panel 
-
Dec 5th, 2000, 06:23 PM
#2
Frenzied Member
Look up in your help files these functions:
Open #
Close #
Get #
Put #
Write #
Print #
Input #
You can create a file on the hard disk and save all your variables in a certain order, then just read them all again in that order when you start the game up again.
It's not complicated. File access is something everyone should know how to use, so check it out.
Harry.
"From one thing, know ten thousand things."
-
Dec 6th, 2000, 03:54 PM
#3
Code:
Open "Game.txt" For Output As #1
Write #1, HitPoints, Strength, Defense, Level
Close #1
-
Dec 7th, 2000, 12:13 PM
#4
Thread Starter
New Member
thats nice code but
how do you get the info that was written?
Damn Clone Panel 
-
Dec 7th, 2000, 02:14 PM
#5
Frenzied Member
If you use Write # then you can use Input # to get the info back again and store it in variables.
Code:
Open "Game.txt" For Output As #1
Input #1, HitPoints, Strength, Defense, Level
Close #1
That would read those variables back in from the file.
Harry.
"From one thing, know ten thousand things."
-
Dec 7th, 2000, 07:51 PM
#6
Thread Starter
New Member
Thanx for all the help... i really appreciate it.
I don't care much for the cheating part, as this is a school project and im sure my teacher won't be cheating.
once again, thanks.
Damn Clone Panel 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|