Ok, I'm trying to make my own tutorial. I got everything to work except the fighting the enemies bit at the end. On my custom tutorial, I had it so you would search and fight the enemies at the end. Now, the tutorial is for my own custom factions, but it always says unit not found 'keep' when i removed the eep and left the rest in, it said unit not found 'minion'.
Whats wrong? Should I try making the enemy the same faction as me?
Heres the part I wrote: Note you won't recognize the units, but it may help: (NOTE: this is just the last part, it all works until it gets to the defeat_enemy objective.
</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>