Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Making separate profiles help?

Author
Message
SkimbleBarben the Third
14
Years of Service
User Offline
Joined: 14th Feb 2010
Location:
Posted: 19th Feb 2010 19:08
I would like somebody to give me a code snippet that I could integrate into my game(which is entirely text-based, by the way), allowing anyone who plays to be able to save their progress separately from anybody else's and then load it at another time.
Thanks in advance.

See now I am become life, creator of worlds.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
SkimbleBarben the Third
14
Years of Service
User Offline
Joined: 14th Feb 2010
Location:
Posted: 20th Feb 2010 16:48
Sorry about that, I hadn't read that. In that case, could you just tell me the core command I need and then I could try to work it out from there?

See now I am become life, creator of worlds.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 22nd Feb 2010 20:55
If you will look up FILE COMMANDS in the help file, you will find various ways to store data. One of the easier ways is to keep all your player data in an array, then just save the array. The SAVE ARRAY and LOAD ARRAY commands are explained in the CORE COMMANDS help listing.

Login to post a reply

Server time is: 2024-11-24 20:36:52
Your offset time is: 2024-11-24 20:36:52