• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Time-of-day event

Status
Not open for further replies.
Level 4
Joined
Jul 15, 2012
Messages
89
Hello, any idea why this trigger doesnt work for me? nothing happens when in game time reaches whatever time the event says .when i add a set-time-of-day-speed action to this trigger the game crashes at 1.00 and no error apears,any idea?
  • Trigger
    • Events
      • Game - The in-game time of day becomes Equal to 1.00
    • Conditions
    • Actions
      • Game - Display to (All players) the text: 12345123453123567498
i disabled this trigger and that one started working but the game stops for one second at 1.00 (all i want to do is to make night last twice day) can anyone help please?
  • Cinematic1
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.00 seconds
      • Set Group = (Units of type Police Vije)
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • Unit - Hide (Picked unit)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Group)
      • Set PlayerGroup = (All players)
      • Player Group - Pick every player in PlayerGroup and do (Actions)
        • Loop - Actions
          • Camera - Apply Camera 001 <gen> for (Picked player) over 0.00 seconds
      • Custom script: call DestroyForce(udg_PlayerGroup)
      • Wait 1.00 seconds
      • Set point = (Center of Region 000 <gen>)
      • Unit - Order Heli 0015 <gen> to Neutral Tinker - Cluster Rockets point
      • Custom script: call RemoveLocation(udg_point)
      • Wait 2.20 seconds
      • Set point = (Center of Region 001 <gen>)
      • Unit - Order Heli 0015 <gen> to Neutral Tinker - Cluster Rockets point
      • Custom script: call RemoveLocation(udg_point)
      • Wait 1.00 seconds
      • Animation - Change Heli 0015 <gen> flying height to 15.00 at 600.00
      • Wait 3.50 seconds
      • Game - Display to (All players) the text: Rooze Aval ...
      • Set Group = (Units of type Police Vije)
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) controller) Equal to User
            • Then - Actions
              • Unit - Unhide (Picked unit)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Group)
      • Animation - Change Heli 0015 <gen> flying height to 4000.00 at 1300.00
      • Wait 1.50 seconds
      • Player - Set Player 1 (Red) Current gold to 0
      • Trigger - Turn on Zombie raise from dead <gen>
      • Trigger - Turn on No conflict <gen>
      • Unit - Hide Heli 0015 <gen>
      • Cinematic - Turn off letterbox mode (show interface) for PlayerGroup: fade in over 1.00 seconds
      • Custom script: call DestroyForce(udg_PlayerGroup)
      • Set point = (Center of Region 000 <gen>)
      • Unit - Order zombie 585 0114 <gen> to Attack-Move To point
      • Unit - Order zombie 585 0113 <gen> to Attack-Move To point
      • Unit - Order zombie 585 0112 <gen> to Attack-Move To point
      • Custom script: call RemoveLocation(udg_point)
 
Last edited by a moderator:
Level 4
Joined
Jul 15, 2012
Messages
89
A double post is two consecutive posts from one person. It doesn't mean that you posted the same exact thing twice.

a double post in my definition is a question asked twice .would you please give link to these two posts of mine that are against the rules?

Time of day is a real variable. Comparing the equality of reals often has problems due to reals being inaccurate(they don't accurately translate to binary).

To mitigate this you should instead use "Becomes greater than".

i changed dawn and dusk time in gameplay constant to 9AM and 17 (to make night last longer) but it didnt work either sun still comes up at 6AM and sets at 18.
(and that "Becomes greater than" thing didnt solve it)
 
Last edited by a moderator:
Status
Not open for further replies.
Top