Svn rev#: 4009 implements this partially (duation is not yet doing anything)
Create a skill like this:
<skill>
<type value="fog_of_war"/>
<name value="clearfog_skill"/>
<enable-fog value="false" />
<apply-team value="true" />
<duration value="0" />
</skill>
Now to USE this new skill you must link it to one or more parent skills for a given command:
<command>
<type value="harvest"/>
<name value="harvest_wood"/>
<image path="images/worker_harvest_wood.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="move_wood_skill"/>
<harvest-skill value="harvest_wood_skill"/>
<stop-loaded-skill value="stop_loaded_wood_skill"/>
<move-loaded-skill value="move_loaded_wood_skill"/>
<harvested-resources>
<resource name="wood"/>
</harvested-resources>
<max-load value="25"/>
<hits-per-unit value="1"/>
<fog-of-war-skill value="clearfog_skill" skill-attachments="move_wood_skill,harvest_wood_skill" />
</command>
Notice the bottom line links our new fog of war skill to two other skills used in the command:
move_wood_skill,harvest_wood_skill
This is a comma delimited list of skills to link fog of war skill to. So when the attached skill is triggered by the command then fog of war also is triggered.
In the case above we turn off fog of war for my team when move_wood_skill or harvest_wood_skill skills are enabled for the command harvest_wood.