Warcraft III resources & community, 2003–2006 · archived

Little help

8 posts
#1

Little help

Ok I am trying to make a more realistic weather or rather day/night for 1 future map. I tried some triggers but didnt work and this has to be a cyclic event.

I tried something simple 1st:
E: Game - The in-game time of day becomes Greater than or equal to 8.00
Visibility - Disable fog of war

Yes the time goes and passes 8:00 the visibility doesnt disable, it didnt work.

Can somone tell me all the triiggers for the following:

When the time is between 8:00 and 19:00 the fog of war to be disabled for the entire map, there are lamps (units)- these lamps (all maps on the map) to be 'killed'thus not lit, a global weather - sunlights that also stop when the time becomes 19:01.

When the time becomes b-n 19:01 and 7:59, the fog of war to be enabled for the entire map, lamps (all maps on the map or whatever the way to put lamps on the same palces is) to be repalced with new (using the max hp) and environemtn-moon lights.

1 THING: This shouldnt happen once but always when the time becomes x and y, a cyclic event.

The problems comes mostly from how to connect them like i use If/Then/Else but these 2 - day and night either overlap or i dont know why it doesnt work 2)the time passes throught the number given in the conditions/actions and nothing happens.
#2

Re: Little help

hahahaha
#3
@ kevinking65
Try to make some contributing post.


@ 3.26ly
These trigger works for me I think

Sunshine
    Events
        Game - The in-game time of day becomes Greater than or equal to 8.00
        Game - The in-game time of day becomes Greater than or equal to 19.01
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (In-game time of day) Greater than or equal to 8.00
                (In-game time of day) Less than or equal to 19.00
            Then - Actions
                Visibility - Disable fog of war
                Visibility - Disable black mask
            Else - Actions
                Visibility - Enable fog of war
                Visibility - Enable black mask


But I didn't bother figure out constantly Fog of War similar to DotA's fog of war.
#4
I tried your way but it didnt work, in fact as i said up even when i make the simple map initilaization and visibility disable fog of war it didnt work. Im not using it in another triggers. How about you connrect my mistakes? Here are the full functions i want but they dont work:


E: Map initialization
C: -
A:
Game - Set the time of day to 7.00
NOTE for you: 1st If/Then/Else Action)
If - Conditions
(In-game time of day) Equal to 8.00
Then Actions:
Destructible - Pick every destructible in (Entire map) and do (If ((Destructible-type of (Picked destructible)) Equal to Streetlamp) then do (Animation - Play (Picked destructible)'s death animation) else do (Do nothing))
Environment - Create at (Entire map) the weather effect Rays Of Light
Visibility - Disable fog of war
Visibility - Disable black mask
Else Actions: -

NOTe fot you: (2nd If/Then/Else Action)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Equal to 19.00
Then - Actions
Destructible - Pick every destructible in (Entire map) and do (If ((Destructible-type of (Picked destructible)) Equal to Streetlamp) then do (Animation - Play (Picked destructible)'s stand animation) else do (Do nothing))
Destructible - Pick every destructible in (Entire map) and do (If ((Destructible-type of (Picked destructible)) Equal to Streetlamp) then do (Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Position of (Picked destructible)) to a radius of 400.00) else do (Visibility - disable (last created visibility modifier))
Environment - Create at (Entire map) the weather effect Rays Of Moonlight
Visibility - Enable fog of war
Visibility - Enable black mask
Else - Actions: -

These are 2 If/Then/else Actions and nothing happens. If i make the whole 2nd actions as ELSE action of the 1st If/Then/Else still nothing happens. Thats why i left the Else actions of both If/Then/Else blank, doesnt matter if i make Esle - Do nothing or not.
#5
I don't know how else to tell you if your "Disable Fog of War" don't work. Maybe check to see if you have any other trigger like "Periodic 0.01, enable Fog of War".
#6
Anyone else who can make this thing work ? How doesnt even the fog of war disable i dont get it. maybe the time becoming a number doesnt work for the actions to happen. Somethign wrong in my triggers ?
#7
I made it work everything for hours. It is the same i did it with 4 events of time, with the long triggers i did al;ready up here and a special 2nd trigger to every 444 seconds set time of the day to 8.00 am, wait 222 seconds set time of the day to 19.00 pm all worked, even the lamps turnt on and off at that time however the triggers SUCK, since they make a crash of the game out of memory.
#8
Blizzard did nothing well. Now i have to remove what i did so perfect with exact calculations. Bullshit.