How to make an order puzzle?

Hi there,

I am trying to make a puzzle where, when objects are destroyed in a certain order, X will happen. How would I go about doing this using arrays?

Thanks, all help is appreciated.

There’s not a lot of info in your question, but I did something similar once:

Each object has a letter on it in a variable, like ‘H’

Every time one is destroyed, you append that letter to a string, call it Key .

Another string is ‘the Lock’, could be ‘HELLO’

If the Key - string matches the Lock - string, it’s there :slight_smile:

You do not need to involve an array as such. Hope this gave you clues to a direction :slight_smile: