Hi im making a game and really want to put achievments in it but i dont know how, i want to make it so when people do something or reach a passage they earn and achievment and can go to an achievment page and see what they got.(it doesnt need to tell them they got it but it can)
I use harlowe 1.2.2
Comments
1. Initialise the variables within your story's startup tagged passage.
You can name the variables whatever you like.
2. Change the related variable's value to true when the player achieve the achievement.
3. Use an (if:) macro to check which achievements the player has obtained.
Whats the startup tag
Had you visited the link, you'd know that the tag is called... "startup", and all passages with that tag will be run at... "startup".
Sorry im new to this how do you give a tag to a passage
(if:)'s 1st value is the number 0, but should be a boolean.►
If you gave a number, you may instead want to check that the number is not 0. If you gave a string, you may instead want to check that the string is not "".
If you look at my previous examples you will see that the variables used Boolean values of true and false, and that I initialised the variables to false before the story/game started. Any variable that is not initialised by you will be automatically assign a value of zero.
status:(if: $achievementA is 1)[Achieved] (else:)[Locked]
status:(if: $achievementB is 1)[Achieved] (else:)[Locked]
status:(if: $achievementC is 1)[Achieved] (else:)[Locked]
and then like greyelf said, in a certain passage
(set: $achievementA to 1)
basically removing booleans