- Sep 6, 2021
- 740
- 1,677
I'm attempting to add a simple time display in my game that shows up on all the called screens. I've been looking online for a while today and I found the following code that does 'almost' everything I need....
Instead of displaying the number of days as the above code does ( clock.day ), I instead want to display the number of weeks that have passed, so my final display would be something like...
Week: 10
Saturday
noon
At first, I thought I could just keep the clock.day variable and just divide it by 7 to get a new Week total. But this is where my total lack of any python knowledge killed me... damned if i can figure out how to do a simple mathematical operation in Ren'Py, lol.
So, I was wondering if one of you knowledgeable coders on here could just help me modify the above Class (day_time) to include a Weeks section that automatically advances after every 7 days?
You don't have permission to view the spoiler content.
Log in or register now.
Instead of displaying the number of days as the above code does ( clock.day ), I instead want to display the number of weeks that have passed, so my final display would be something like...
Week: 10
Saturday
noon
At first, I thought I could just keep the clock.day variable and just divide it by 7 to get a new Week total. But this is where my total lack of any python knowledge killed me... damned if i can figure out how to do a simple mathematical operation in Ren'Py, lol.
So, I was wondering if one of you knowledgeable coders on here could just help me modify the above Class (day_time) to include a Weeks section that automatically advances after every 7 days?