In the previous chapter, you got the first part of the state engine working. The ObjectLookup script is now able to change the state of an object and process the actions that are identified with the transitions into its new state. It does so by using the first two pieces of data in the correct element in the correct Lookup State array. While the first two are essentially a lookup table for the picked object, the rest are instructions for handling the optional auxiliary objects that are also a part of the same transition.
As a reminder, the auxiliary objects are processed in pairs. The first piece of data is the ...