There are many different ways to implement this in Harlowe 3. What you need to think about first is what data matters the most and how you want to work with it.
For example, looking at the dates themselves, are certain dates more important than others? Is there a sense of “time” within the story where it passes if certain things happen (i.e. the story ends each “day” and then time passes)?
If the dates are fixed, you could use an Array to store the values in order. That might look like the following:
(set: $dates to (a: "Jan 1261", "Jun 1261", "Jul 1280") )
Then, for the passage in which you show them, you might do something like this:
(for: each _date, ...$dates)[
Event that happened.
If the story is more dynamic, you could start with an array and then increase the date each time. So, for that, it might work like the following to set it up the first time:
(set: $day to 1261)
(set: $month to "Jan")
(set: $dates to (a: $month + " " + (str: $day) ) )
(Notice that in the above code, I used the
(str:) macro to convert the number, 1261, into a string before “joining” it to the value of
$month, which is a string.)
Each new day, would be something like the following where
$day is increased and then added to the existing array of values
(set: $day to $day + 1)
(set: $dates to it + (a: $month + " " + (str: $day) ) )
To show the array, the previous code to “loop” through the array could be used.
Testing for Events
With the dates figured it, the next problem is how to show the events. Again, like before, what events are important? Are they fixed? Are they binary – that is, can either one thing or another happen?
If the story has a simpler branching structure, this is easier to test for an arrange. Something to consider using is a series of
(else:) macro usages.
(if: $birthdayPresent is true)[
Got a birthday present from my mother.
Skipped the birthday party
(if: $fellFromTree is true) [
Fell from a tree and broke my ankle.
] (else:) [
Didn't climb tree.
Hopefully this can get you going on how to organize things into an initial diary structure where you are considering the story and how to store and work with its data.