Patch #1c: Unlock the Safe!

Yet another possibility is to hide the secret code in the table object. The table is usally used as a means to graphically edit an array of numbers. However, we can also use a message to setup the table values. Double click on the table object and experiment with it. Also experiment with the help patch. The following message will set up our table and store the corresponding values for the first, second and third number.

(We need size 4 because the table starts with index 0, but I prefer to use index 1 for the first number)

We now can compare the user’s dial numbers with the values stored in the table. Compared to our original patch, here you see what changes: