I'm creating my own Time System plugin and I'm trying to figure how to calculate the current day name based on the several factors (namely the plugin parameters). The attached screenshot is an example if the parameters read:
Days Per Month: 31
Months Per Year: 12 (only showing 3 though to keep it simple/smaller)
Day Names: ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]
So how do I get a function to return "Thu" based on the 1st of Month 2 in the example? (Or if the Days per Month were to be changed to 28), how to return "Mon" based on the 1st of Month 2, etc.
- To anyone before commenting "Why not use an already made time system plugin?"
A: While great in their own way, I am designing my own plugin to both tailor it to my needs, and I'm learning as I develop it. Enhancing it when/where I can (like I'm just now getting into the clock sprite side of it) and so the other systems don't really have what I need. So that's where I'm at with that.
Days Per Month: 31
Months Per Year: 12 (only showing 3 though to keep it simple/smaller)
Day Names: ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]
So how do I get a function to return "Thu" based on the 1st of Month 2 in the example? (Or if the Days per Month were to be changed to 28), how to return "Mon" based on the 1st of Month 2, etc.
- To anyone before commenting "Why not use an already made time system plugin?"
A: While great in their own way, I am designing my own plugin to both tailor it to my needs, and I'm learning as I develop it. Enhancing it when/where I can (like I'm just now getting into the clock sprite side of it) and so the other systems don't really have what I need. So that's where I'm at with that.