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.

DarkBASIC Discussion / save system help please???

Author
Message
pagio
23
Years of Service
User Offline
Joined: 8th Jan 2003
Location: - Please Select -
Posted: 24th Mar 2003 21:41
the player open a chest and gets a potion what is the esyest way that next time the player visit that area the chest is open and there is no potion inside?
i have think something like when chest is open then chest001=1 and if chest001=1 then nothing will hapens if the player tries to pen the chest bute then how can i save that to a file?how i can right a file that stores chest001=1,chest002=1,chest003=1 and i want to save all not just 1 so next time i read the file the first read will be chest001=1 not only 1
Dont forget the retro games
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 24th Mar 2003 23:56
Assign each chest a number in an array like 1, 2 and 3. Then just write that array to a file. Just use an array for all the chests, and have each array slot be a chest.

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
pagio
23
Years of Service
User Offline
Joined: 8th Jan 2003
Location: - Please Select -
Posted: 25th Mar 2003 14:04
how can i right an array to a file?

Dont forget the retro games

Login to post a reply

Server time is: 2026-06-11 09:56:31
Your offset time is: 2026-06-11 09:56:31