08-02-2009, 11:45 PM
LOL.
I'm still working on the challenges system. I was somewhat stuck when it looked like my script wasn't saving the completed challenges, which left me frustrated. I had looked at the script, modified it plenty of times to see if it would fix but to no avail. After several minutes (maybe an hour later?), I looked at the script and realised what was wrong. The challenges were a constant instead of a instance variable and they were also outside of the initialize method. I replaced all instances of GAME_CH with @data and moved the challenges into the initialize method. Another thing that was wrong which had left me feeling very stupid was that I had made the script write the data before marking the challenge as complete!
Now I need to do a few more things to the script.
I'm still working on the challenges system. I was somewhat stuck when it looked like my script wasn't saving the completed challenges, which left me frustrated. I had looked at the script, modified it plenty of times to see if it would fix but to no avail. After several minutes (maybe an hour later?), I looked at the script and realised what was wrong. The challenges were a constant instead of a instance variable and they were also outside of the initialize method. I replaced all instances of GAME_CH with @data and moved the challenges into the initialize method. Another thing that was wrong which had left me feeling very stupid was that I had made the script write the data before marking the challenge as complete!
Now I need to do a few more things to the script.
- I need to make my script rely less on Scene_Base. I want to update the challenges script without having to use RMVX's scene base. Plus, it would be so much easier for me to port it to RMXP. Perhaps I'll pull a page from Zeriab's book and use the Input Class/Module? @_@ I should go check it out after this.
- Also, I'm trying to figure out how I would go about trying to secure the challenges and prevent people from cheating. Yes, I'll need some help with the security of the challenges.