I want a script that essentially says if there are no longer any instances of combo X on green (x should be the combo number, NOT a flag or type), then do "Y." In other words, once all of {this combo} have been removed from the screen, do something.
The "Y" part could be play a sound and spawn an item (which i'm PRETTY SURE I know how to do, although i'm not sure how to make it fall from ceiling via a script) OR it could be play a sound & set room's secret state (again, I think I know how to do this).
I want this to be versatile so that the combo could first appear as many times as I'd like on screen but it could be removed (or replaced) by any means, whether it be they are all covered by blocks...they are bushes that have all been slashed...etc.
I'm a bit of a beginner with scripts. Im pretty sure that part of this script will include:
for (int index = 0; index < 176; index += 1) {
Thoughts?