• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Event: Every time night falls in WC3

Status
Not open for further replies.
Level 16
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:
  • 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 (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
          • Date Equal to 30
        • Then - Actions
          • Set Date = 1
          • Set MonthNr = (MonthNr + 1)
        • 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 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
          • Date Equal to 31
        • Then - Actions
          • Set Date = 1
          • Set MonthNr = (MonthNr + 1)
        • Else - Actions
      • 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
      • 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

(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
            • Then - Actions
              • Set Date = (Random integer number between 1 and 30)
            • Else - Actions
              • Set Date = (Random integer number between 1 and 31)
      • 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)
I know that i need to set a variable to the multiboard,, but that is not relevant now,,

Can anyone plz help me??

Yixx,,
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
I thought that too at first,, but it doesnt change the date =S
I am just working on a date system in a map,, but it wont work,,

'in-game time' ? In the event? I cant find something like thatt,,

BTW,, what date system??


OMG,, i am just SOO stupid!!
Tnx!! +rep!
 
Status
Not open for further replies.
Top