- Joined
- Feb 3, 2008
- Messages
- 146
Hi everybody, i try to use the hide of the night elves to hide their ancients and all structures but it doesn't work so someone have an idea ?
thx for helping
thx for helping
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Constructed Invis Building

Events


Unit - A unit Finishes construction

Conditions


((Constructed structure) is A structure) Equal to True


(Race of (Owner of (Constructed structure))) Equal to Night Elf

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(In-game time of day) Greater than 6.00




(In-game time of day) Less than or equal to 18.00



Then - Actions




Unit - Add Permanent Invisibility to (Constructed structure)



Else - Actions
Invisible Buildings

Events


Time - Every 240.00 seconds of game time

Conditions

Actions


Set TempUnitGroup = (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to True) and ((Race of (Owner of (Matching unit))) Equal to Night Elf)))


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Permanent Invisibility for (Random unit from TempUnitGroup)) Equal to 0



Then - Actions




Unit Group - Pick every unit in TempUnitGroup and do (Actions)





Loop - Actions






Unit - Add Permanent Invisibility to (Picked unit)



Else - Actions




Unit Group - Pick every unit in TempUnitGroup and do (Actions)





Loop - Actions






Unit - Remove Permanent Invisibility from (Picked unit)


Custom script: call DestroyGroup( udg_TempUnitGroup )