- Joined
- Oct 12, 2008
- Messages
- 1,570
Hi guys,,
I got a question,, every time it becomes night in a WC3 game i need to do some actions,,
but how do i make it that way?
i got this so far:
(Need the start trigger??
Can anyone plz help me??
Yixx,,
I got a question,, every time it becomes night in a WC3 game i need to do some actions,,
but how do i make it that way?
i got this so far:
-
Change
-
Events
- Time - Every (240.00 / ((Current time of day speed) / 100.00)) seconds of game time
- Conditions
-
Actions
- Set DayNr = (DayNr + 1)
- Set Date = (Date + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MonthNr Equal to 2
- Date Equal to 28
-
Then - Actions
- Set Date = 1
- Set MonthNr = (MonthNr + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- MonthNr Equal to 4
- MonthNr Equal to 6
- MonthNr Equal to 9
- MonthNr Equal to 11
-
Conditions
- Date Equal to 30
-
Or - Any (Conditions) are true
-
Then - Actions
- Set Date = 1
- Set MonthNr = (MonthNr + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- MonthNr Equal to 1
- MonthNr Equal to 3
- MonthNr Equal to 5
- MonthNr Equal to 7
- MonthNr Equal to 8
- MonthNr Equal to 10
- MonthNr Equal to 12
-
Conditions
- Date Equal to 31
-
Or - Any (Conditions) are true
-
Then - Actions
- Set Date = 1
- Set MonthNr = (MonthNr + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MonthNr Equal to 13
-
Then - Actions
- Set MonthNr = 1
- Set Year = (Year + 1)
- Else - Actions
-
If - Conditions
- Set Date_String = ((Day[DayNr] + ( + (String(Date)))) + (((th + ) + Month[MonthNr]) + ( + (String(Year)))))
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Date_String
-
Events
(Need the start trigger??
-
Start Time
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- -------- Variables for Day and Month Names --------
- Set Day[1] = Monday
- Set Day[2] = Tuesday
- Set Day[3] = Wednesday
- Set Day[4] = Thursday
- Set Day[5] = Friday
- Set Day[6] = Saturday
- Set Day[7] = Sunday
- Set Month[1] = January
- Set Month[2] = February
- Set Month[3] = March
- Set Month[4] = April
- Set Month[5] = May
- Set Month[6] = June
- Set Month[7] = July
- Set Month[8] = August
- Set Month[9] = September
- Set Month[10] = October
- Set Month[11] = November
- Set Month[12] = December
- -------- Variables for Day and Month Names --------
- -------- --------
- -------- Set Starting Time --------
- Set DayNr = (Random integer number between 1 and 7)
- Set MonthNr = (Random integer number between 1 and 12)
- Set Year = (Random integer number between 500 and 1000)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MonthNr Equal to 2
-
Then - Actions
- Set Date = (Random integer number between 1 and 28)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- MonthNr Equal to 4
- MonthNr Equal to 6
- MonthNr Equal to 9
- MonthNr Equal to 11
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set Date = (Random integer number between 1 and 30)
-
Else - Actions
- Set Date = (Random integer number between 1 and 31)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Set Date_String = ((Day[DayNr] + ( + (String(Date)))) + (((th + ) + Month[MonthNr]) + ( + (String(Year)))))
- Multiboard - Create a multiboard with 1 columns and 1 rows, titled Date
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Date_String
- Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 15.00% of the total screen width
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
- Multiboard - Show (Last created multiboard)
-
Events
Can anyone plz help me??
Yixx,,