like this GJ:
;This would be the destroy script for one of the enemies
:state=0:globalvar=90,state=1
:state=1,health=0:incvar=1,suspend
;This would be another
:state=0:globalvar=90,state=1
:state=1,health=0:incvar=1,suspend
;and this would be the last enemy's script
:state=0:globalvar=90,state=1
:state=0,varequal=2,health=0:settargetname=<a random dynamic entity>,activatetarget=1,suspend
;this would be the random dynamic entity's script
:state=0:<set-up your hud>,state=1
:state=1,activated=1:hudshow=<yourhud>
(your hud code here)
This was made using official variable commands.
...