Fog of War

bYo

New Member
Reaction score
5
Or you could create a trigger on Map Initilization:

Trigger:
  • Melee Initialization Copy
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set temp_region = (Playable map area)
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across temp_region
      • Custom script: call RemoveRect (udg_temp_region)


Unfotunately there is no "All Players" so you'll have to do it for each individual player. Just copy the line "Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across temp_region" and change it to Player 2 (Teal) Etc.
 

Carnerox

The one and only.
Reaction score
84
Or you could create a trigger on Map Initilization:

Trigger:
  • Set temp_region = Playable Map Area <gen>
    • Visibility - Create an initially Enabled visibility modifier for All Players emitting Visibility across temp_region
    • Custom script: call RemoveRect (udg_temp_region)

tisk tisk tisk.

just do

Trigger:
  • Visibility - Disable fog of war
 

Carnerox

The one and only.
Reaction score
84
Or that. Shhh, I've only been doing WE for 2 weeks :(.

more like use that. You should only use the trigger you made for small areas you want visible. Also he didn't want visible he wanted Fog of War stuff gone, so it looks like you've explored the whole map. :)
 

Bogrim

y hello thar
Reaction score
154
That's not the only issue with your trigger. Playable map area is a preset region and you don't need to worry about memory leaks when using it. Instead, you create a temporary region using a preset region and then destroy the temporary region, thinking it will destroy the preset region. So all your trigger does is double the amount of object data used to run the trigger. In addition, you also leak a visibility modifier, but that's less important as long as you don't plan to alter it for the remaining game.
 

Seprest

New Member
Reaction score
15
Or you could create a trigger on Map Initilization:

Trigger:
  • Melee Initialization Copy
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set temp_region = (Playable map area)
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across temp_region
      • Custom script: call RemoveRect (udg_temp_region)


Unfotunately there is no "All Players" so you'll have to do it for each individual player. Just copy the line "Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across temp_region" and change it to Player 2 (Teal) Etc.

moew like ruin your map in 4 easy steps
:thdown::thdown::thdown::thdown::thdown:

edit: I'm joking, just incase your a crazy depressed person who will commit suicide due to online bashing of a small script for WC3, I'm really just joking. If you feel any anger over this thread, please displace it onto the nearest baby/cat/window/something dear to someone.
 

Carnerox

The one and only.
Reaction score
84
Dude what the hell were you saying i couldn't understand..

Also this thread is over..
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top