I'd look for a different method if you have a bunch of flags, items, and attributes that need reset.
if (player.stats = 100) {
msg ("password: godmode")
} else if (player.cash > 1000000) {
msg ("password: rich")
} else if (player.stats = 100 and player.cash > 1000000) {
msg ("password: richgodmode")
}I'm well aware that you may want to be able to start the game over while continuing some data over to it
I don't understand the reason of creating your own resetting, when you can just actually stop the game, and start a new game.
That's an interesting idea, XanMag! I haven't thought of that since my game is not online yet. I guess I'd have to publish it one first time, then update it with the link to the game homepage (does updating work well by the way? I think I've seen a topic with someone having problems updating the game).
Anyway, this solution seems to be a good one for an online version. Thanks for that!
The thing is, I'd like my game to be available online and for download as well, and then your solution doesn't work for a desktop version, I guess.
If anyone thinks of a solution that could work for a desktop version of the game, I'm all ears :)
I have never had a problem updating my game. Update. Wait 20-30 seconds for file to upload. Done. If it happens, it does not happen very often. Good luck.