I'm new to Twine so I don't know much here. I'm trying to have the sentence "It is X:XX in the morning." The time depends on another variable I have called $MinToAlarm. (The character woke up before the alarm and other things happen before the alarm goes off to make time pass.) Depending on what exactly the character has done, it changes what time it will be. I'm trying to use another variable called $time and using the (if:) macro but I think I'm doing something wrong because the sentence always ends up being "It is 0 in the morning." Please help if you can! I'm sorry if I sound naive. It's because in this subject, I am. Thank you!
Comments
Basically:
AlarmTime would need to be in minutes since midnight - so 7:30am would be 450. % is integer division - you might need a floor function to emulate it.
Basically, create three vars: hour, minute and day. Then use (if:) to check if minute is > than 59, so hour will increase 1. Same for hour: if > than 23, increase 1 day. When the minutes will pass it's up to you.
My debug snippet: