If you add a dynamic letter and inject it into the content at Day Ending, you have to add the mail for display tomorrow obviously. That means the game will be saved with a reference to the dynamic letter ("MyMailModWool" in this example) pending in the mail box. If the player quits the game at that point and returns later to continue playing, then that dynamic letter is not available, resulting in a "phantom letter". The mailbox will show a letter is available but when clicked on nothing will display. This can be handled in several ways, including by saving the custom letters and loading them when the player continues, but again this example code does not cover that yet. That is why the example uses On Day Starting and makes the letter available right away. | If you add a dynamic letter and inject it into the content at Day Ending, you have to add the mail for display tomorrow obviously. That means the game will be saved with a reference to the dynamic letter ("MyMailModWool" in this example) pending in the mail box. If the player quits the game at that point and returns later to continue playing, then that dynamic letter is not available, resulting in a "phantom letter". The mailbox will show a letter is available but when clicked on nothing will display. This can be handled in several ways, including by saving the custom letters and loading them when the player continues, but again this example code does not cover that yet. That is why the example uses On Day Starting and makes the letter available right away. |