Hi!
In my story, I would like to implement Achievements.
I already have an idea how to do that: I am setting all conditions in the startup passage, for example, the character level is set to 0 and can go up while they play, then display something like this in the Achievements passage:
What I don't have in place yet, is a way for players to not to lose their achievements if they restart the game.
The only solution I can think of is the following:
1) have one startup passage that leads to the cover of the story
2) have variables specific for achievements in the startup passage (I know that the code above would need to be changed)
2) have a restart button that leads to a second "startup" passage that resets all other variables except for those related to achievements
This way, if a user starts the story for the very first time, they will go to the "real" startup passage, however, if they hit restart they go to a passage that resets everything except for the achievements related variables.
Do you know of a less crappy solution?
Would the workaround above work, or there is an obvious issue I am not considering?
In my story, I would like to implement Achievements.
I already have an idea how to do that: I am setting all conditions in the startup passage, for example, the character level is set to 0 and can go up while they play, then display something like this in the Achievements passage:
(if: $level > 1)[Made it past level 1!](else:)[This achievement is hidden.]
What I don't have in place yet, is a way for players to not to lose their achievements if they restart the game.
The only solution I can think of is the following:
1) have one startup passage that leads to the cover of the story
2) have variables specific for achievements in the startup passage (I know that the code above would need to be changed)
2) have a restart button that leads to a second "startup" passage that resets all other variables except for those related to achievements
This way, if a user starts the story for the very first time, they will go to the "real" startup passage, however, if they hit restart they go to a passage that resets everything except for the achievements related variables.
Do you know of a less crappy solution?
Would the workaround above work, or there is an obvious issue I am not considering?