Game over problem

I'm sure there is a simple method to doing this but i dont seem to be able to get it to work, i want to end my game when a set number of actors are destroyed, say 4... how would i go about this?
i asked once before and in more detail in the thread below but the response did not fix my problem and whatever i do doesn't seem to work.
http://gamesalad.com/forums/topic.php?id=26290
thanks
i asked once before and in more detail in the thread below but the response did not fix my problem and whatever i do doesn't seem to work.
http://gamesalad.com/forums/topic.php?id=26290
thanks
Comments
You can just create an attribute to Check if it reaches 4 and whenever and actor (the base) got hit, to + 1 to it. Example. EndGame attribute:
Rule when collide with missile (or whatever in your game)
EndGame = EndGame + 1
Rule to check Game OVer
If EndGame = 4, Change Scene to Game Over.
----------------------------------------------
Appster (http://i-am-appster.com/)
Let me if you want to me to list your games on my site
Before i managed to read you're reply i managed to get to the game over screen my way but it would go after 3 bases were destroyed not 4 (apart from one time when i tested and it worked fine which is very annoying :S).
Now i have tried your way which i think is basically what i was doing before but adding up to 4 rather than taking away from it, now however its decided that after 2 bases are destroyed it will go to game over even though the rule definately says when EndGame=4 chance scene to gameover.
this is really stupid, it seems that it should be so simple but it just fails every time, the bases are only adding by +1 there are 4 of them 4x1=4 im certainly no mathematician but im pretty sure i can manage my one times table lol