Auto-translated
The function that handles the new day doesn't receive a parameter with the hero's name. Therefore, the if...then statement needs to be removed, as well as one of the end statements. In StartCombat, the hero's name also needs to be enclosed in quotation marks.