[Solved] Date & Time System
I fixed the issue, some trigger was corrupt and broke every trigger made after it.
Well I have run into a little snag with my triggers not firing, only these three tho. They are enabled and Initially on. The chat message events were added after they wouldn't fire in an attempt to force a fire.
I fixed the issue, some trigger was corrupt and broke every trigger made after it.
Well I have run into a little snag with my triggers not firing, only these three tho. They are enabled and Initially on. The chat message events were added after they wouldn't fire in an attempt to force a fire.
-
NewDay
-
Events
-
Player - Player 1 (Red) types a chat message containing -date as An exact match
-
Time - Elapsed game time is 5.00 seconds
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Day Equal to 8
-
-
Then - Actions
-
Set Day = 1
-
Set Week = (Week + 1)
-
-
Else - Actions
-
Set Day = (Day + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Week Equal to 5
-
-
Then - Actions
-
Set Week = 1
-
Set Month = (Month + 1)
-
-
Else - Actions
-
Set Week = (Week + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Month Equal to 13
-
-
Then - Actions
-
Set Month = 1
-
Set Year = (Year + 1)
-
-
Else - Actions
-
Set Month = 1
-
-
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: ((|cff7777aaToday is + DayName[Day]) + (, + (MonthName[Month] + ( + ((String(Day)) + ( + ((String(Year)) + |r)))))))
-
-
-
Time
-
Events
-
Player - Player 1 (Red) types a chat message containing -time as An exact match
-
Time - Every 5.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Hour Equal to 25
-
-
Then - Actions
-
Set Hour = 1
-
Trigger - Run NewDay <gen> (ignoring conditions)
-
-
Else - Actions
-
Set Hour = (Hour + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Hour Greater than 12
-
-
Then - Actions
-
Game - Display to (All players) the text: (|cff7777aaIts + ((String((Hour - 12))) + (:00 + PM|r)))
-
-
Else - Actions
-
Game - Display to (All players) the text: (|cff7777aaIts + ((String(Hour)) + (:00 + AM|r)))
-
-
-
-
Last edited: