why not just store their ID as global variables?
#define _id skill100
var var_bighome_deaths[10];
var var_enemy_count;
action enemy(){
my._id = var_enemy_count;
var_enemy_count++;
if(var_bighome_death[my._id]){
ent_remove(me); //or set dead animation or whatever you're doing
}
...
//is dead
var_bighome_deaths[my._id] = true;
}
void level_choose(level_var){
var_enemy_count = 0;
level_load(bighome_level);
}
this'll save you exposing important game information and possibly save you from having to encrypt the data in txt files
or altervatively, save the enemies health information, this will allow it to be the same everytime you return to the level and still comparable to see if an enemy's dead without storing additional variables