Quote from: Crimson Wizard on Thu 09/08/2018 10:18:22
Although I'd perhaps propose to again split this into verb ID and object ID to make further handling more convenient; for example, you will be able to run some specific commands in case of each "look", or tell "I cannot look at xxx" if the object is unknown, etc.
And of course there are still ways to split the giant switch into several parts to make it work in current AGS.
Splitting it up will definitely allow it to fan out further and get past that particular limitation. What I found interesting was that structs could have functions which allow them to access its members using the 'this' keyword. Unfortunately though, they don't have the ability to store any type of function "pointer". If this were possible, then the for() loop method could find the matching word, call through the function pointer and break from the loop (arbitrarily repeating this method for sub-commands as you suggest); but alas....