Quote: "But I don't know where to start."
Kill the last enemy firts and you are done faster.
Seriously version:
You need declare a globar variable (I usually use "killcount"), then iincrease that variable each time you kill an enemy.
Continue with the example you state above, when "killcount=0", jump to next level.
How increase variable?
Assume you've 10 enemiies, so in "exit function of each one" you can do it.
function my_enemy_exit(e)
PlayCharacterSound(e,"onDeath")
If killcount == nil then
killcount = 1
else
killcount = killcount + 1
end
Who will check the global being = 0?
Since probably you'll use winzone, this is a good place to declare global variable, and to check their value, so there is not enaugh with enter in zone, also global should be = 10.
If killcount = 10 then
jumptolevel(e)
else
promp("Drink a cap of coffee, and continue")
end if
This is not the complete solution, but it is a good start point.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics