- Joined
- Jun 1, 2006
- Messages
- 108
Basically, I've got a timer which tells you what time of the year it is, and that year (for example January 2009). Every month lasts 30 seconds and when the month is over, it moves onto the next month. I've done all the way from September 1939 to 1946 (yes, WW2...) and I don't particularly want to have to replace it all, as it took a while.
Anyway, my problem is that with events in my map, I need the date. However some of these events depend on when other events occur, for example Neville Chamberlain resigning as Prime Minister of the UK a month after Oslo in Norway falling to German control. Events in my map look like September 17 1939 - USSR Declares War On Poland, although for these dependent events I intend them to look more like 17 September 1939 - USSR Declares War On Poland. I've managed to get the day of the month done easily when depending on the timer, however I'm have no idea how to extract the Timer Window title, so I'm stuck without the month or year.
Anyway, my problem is that with events in my map, I need the date. However some of these events depend on when other events occur, for example Neville Chamberlain resigning as Prime Minister of the UK a month after Oslo in Norway falling to German control. Events in my map look like September 17 1939 - USSR Declares War On Poland, although for these dependent events I intend them to look more like 17 September 1939 - USSR Declares War On Poland. I've managed to get the day of the month done easily when depending on the timer, however I'm have no idea how to extract the Timer Window title, so I'm stuck without the month or year.
-
Trigger
-
Events
- Unit - A unit Changes owner
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 9 (Gray)
- (Triggering unit) Equal to City 0525 <gen>
-
Actions
- Wait 30.00 seconds
- Game - Display to (All players) for 15.00 seconds the text: ((String((Remaining time for MonthTimer))) + ( + (<Empty String> + <Empty String>)))
- Trigger - Turn off (This trigger)
-
Events