Sorry, I'm not very familiar with templates.
Is there something like special victory conditions - defeat a monster, find an artifact...?
I can't say anything about online play, as it seems that all you need to do is defeat your OPPONENT. However, in single-player mode, when playing against the computer, if one of these conditions is set for the map, then you need to do exactly that. For example, if the condition is to defeat a monster or a hero, then you need to defeat, say, 50 dragons or a hero of level 30 to win the scenario. Otherwise, even if you kill all the computer-controlled players, nothing will happen, and the game will not tell you that you have won the scenario until that condition is met.