Ah, I made a mistake in my script. Instead of putting 'message Baddy mode is #v(compus[0].mode).;' I put 'message Baddy mode is #v(compus[0].0).;' by accident. And you're right, there doesn't seem to be a 9 in there. Oh, and while expirementing, I did this script:
NPC Code:
function reborn() for (i=0;i<compuscount;i++) if (compus[i].mode==5) compus[i].mode = 0;
Just one long line of code

. Can anyone guess what it does? (It's pretty easy)