Baddy(Compus) system

Hello I am working on a Baddy(Compus) system but have no idea what the command is for IF COMPUS IS DEAD THEN DoStuff

You don’t understand this you mean to say?

Elaborating…
“there is no living baddy” = all baddies have died PRIOR to calling this
“all baddies died” = when all baddies have died this will be called automatically
Sample usage is rather simple…

if ( compusdied )
{
  message they're all dead.;
}
if ( playerenters )
{
  showcharacter;
  setcharprop #n,princess;
}

if (playertouchsme)
{
  if (compsdead)
  {
    message oh... you're good!;
  }
  else
  {
    message you only get to touch me once you've killed all the bad guys!;
  }
}

I don’t mean this. I meanIF PLAYER KILLED 1 BADDY THEN DoStuff
Like…IF PLAYER KILLED 1 BADDY THEN playergralats increase + 5

___Merged doublepost__________________

Nvm found it out bymself. Anyways thanks tricxta.

compus[i].mode == 5