Fujiwara
Sergeant at Arms
This is something simple I came up with for the Onin no Ran mod that probably has much wider application....Enjoy!
The start day, month, and year can be whatever you want it to be by changing the values in the first trigger. The year consists of 12 30-day months...not exactly the Gregorian calendar, but we're not worried about matching solar years with the seasons in M&B either One could model the lunar year with the following changes,
since there are generally 13 lunar months per solar year, give or take a day. If you like it, take it. Just give me a credit, huh?
(0.0, 0, ti_once, [], [(assign,"$day",1), (assign,"$month",7), (assign,"$year",1)]),
(0.0, 24, 0, [(lt, "$day", 31)], [(val_add,"$day",1)]),
(0.0, 0, 0.0, [(eq,"$day",31),(lt,"$month",13)], [(val_add,"$month",1), (assign,"$day",1)]),
(0.0, 0, 0.0, [(eq,"$month",13)], [(val_add,"$year",1), (assign,"$month",1)]),
The start day, month, and year can be whatever you want it to be by changing the values in the first trigger. The year consists of 12 30-day months...not exactly the Gregorian calendar, but we're not worried about matching solar years with the seasons in M&B either One could model the lunar year with the following changes,
(0.0, 0, ti_once, [], [(assign,"$day",1), (assign,"$month",7), (assign,"$year",1)]),
(0.0, 24, 0, [(lt, "$day", 29)], [(val_add,"$day",1)]),
(0.0, 0, 0.0, [(eq,"$day",29),(lt,"$month",14)], [(val_add,"$month",1), (assign,"$day",1)]),
(0.0, 0, 0.0, [(eq,"$month",14)], [(val_add,"$year",1), (assign,"$month",1)]),
since there are generally 13 lunar months per solar year, give or take a day. If you like it, take it. Just give me a credit, huh?