11-13-2010, 03:05 PM
(11-13-2010, 02:44 PM)Xzotic Wrote: I really think that it would be easier in the end to just code it in the program itself. Put it in a function so all you have to do is call a function. Of course that would take more planning that just what i said. Might need to add a few more variables and statements, but overall I think it is a better method. You would still have to read it from the file everytime + have the information in the file.
I agree, unless you plan on changing the level values after the program has been built, or through settings of some sort. I think the best way would be to hard code it, and think of a way to incorporate how much the exp goes up into what level they are on into a function. If you really want code on how to read from a text I will give it to you, but reading the text is just the beginning. You will have to specify the data to only pull what you need per level.
I code at http://tech.reboot.pro