Can you tell me what I did wrong? I'm making my own tutorial, but everything wors until it gets to the 'beat the enemy part' It however, is with my own factions. It says unit not found 'xxx' and it happens to every enemy unit. Heres what I wrote:
</unitCreatedOfType>
<unitCreatedOfType type="holy_one">
if objective=='produce_holy_one' then
showMessage('HolyOneBrief', 'WellDone')
showMessage('CommandGroupBrief', 'Armies')
showMessage('GroupNumberBrief', 'Armies')
showMessage('FinalMission', 'Armies')
objective= 'defeat_enemy'
setDisplayText('DefeatEnemy')
createUnit('demon', 1, startLocation(1))
createUnit('demon', 1, startLocation(1))
createUnit('demon', 1, startLocation(1))
createUnit('minion', 1, startLocation(1))
createUnit('shadow_source', 1, startLocation(1))
end
</unitCreatedOfType>
<unitDied>
if objective=='defeat_enemy' and unitCount(0)==0 then
clearDisplayText()
setPlayerAsWinner(1)
endGame()
end
</unitDied>
</scripts>
</scenario>