Heh, nothing wrong with making an internal encryption process.
I've actually made one that might help you a bit, this tutorial is not my final version(it's written in visual basic, which means it's pretty easy to adapt into Darkbasic) but here's what i have so far..
http://members.shaw.ca/creeo/vbtutorials/vbtutorial1.htm. The vb project files are also included at the top of the page.
I guess i should explain a bit of what's happening in the tuturial, or if your just too lazy to read or visit the page.
Basically you have a string, let's say "BAD" for example.
Now, BAD in ascii code is 666568.
What the program does IS convert it to ascii code. Once it's done converting, it saves it to a text file.
Here's the catch, i know your going to say... oh well, some guys going to figure out that all i did is convert it to ascii code and convert it back to string(thus revealing storyline plots etc) which we dont want.
So as your converting to ascii, you not only convert it, but after it's done converting you add a number.. a number that only you know.
ie. 6
ie. BAD = (66+6), (65+6), and (68+6)
This makes it much harder for someone to convert straight off the hop and expect to see results.
Now your thinking.. oh crap but this means when i convert it back to string it's not going to work for me either. Wrong, all you have to do is in your game code reverse it. Remove 6 from each letter and then convert it back to string.
ie "BAD" converted with the +6 is 727174
Converting it back - (72-6), (71-6), and (74-6)
The cool thing about it is, you can pick whatever number you'd like to make the secret number. Though i suggest leaving it under 10 as it's easier to code in.
Truthfully, i dont expect any newcomer to create this kind of code, it's more in the intermediate section.. although i'm sure that some newcomers can do this. Hope this helps
if you have any questions post back here and i'll try to get back to you.
PS - I think this is my longest post ever
- Merix