ok, this is mildly off-topic but does fit since it is a discussion about wac scripting.
this example is a NILE generated wac file nesting. the problem with this is, sometimes this type of nesting can break since the map has mission critical events that must frre for the map to end.
Code:
if never() and (Never()ssndead(66600)) then //New Event
if never() and (Previous()ssndead(66601)) then //New Event
if never() and (Previous()ssndead(66767)) then //New Event
if never() and (Previous()ssndead(66895)) then //New Event
if never() and (Previous()ssndead(67011)) then //New Event
win(1)
endif
endif
endif
endif
endif
what i have done in these situations, is to elimintate all of the nesting and just create a large single line event that requires all to happen for the map to end like this:
if never() and ssndead(66600) and ssndead(66601) and ssndead(66767) and ssndead(66895) and ssndead(67011) then
win(1)
endif
you still have mission criticals but there is less of a chance that it breaks and the map will end.
note: this is a portion of a wac file for a map in my current server rotation. i used this example because the last time i played this map, we met all the requirements but the map didnt end even though the previous time i played the same map, it did in fact end so i will look to rework the wac file to make sure the map end next time.