I saved the lists of keywords that I want to end up as nouns/adjectives for the objects into four arrays -- one for each object's noun and adjective properties. I tried making the noun and adjective properties routines that would return the arrays if the right condition was met or would return false otherwise. Then I tried leaving the noun and adjective properties completely empty (nothing but a new line after the word "noun" in the code) and assigning their values to the arrays in a different routine somewhere.
Looking to the Hugo Book, I saw where it says that "entire arrays passed as arguments" are illegal. Then, I tried setting each keyword one at a time in the routine that makes the changes to the game state when the two scenery objects become available to the player. I left blank "slots" in the noun/adjective property definitions, like this:
Code: Select all
noun 0, 0, 0, 0
Code: Select all
object.noun[0] = "sky": object.noun[1] = "sun": object.noun[2] = "clouds"
Thank you, and sorry for being so long-winded. I'm being a little ambiguous about the content of my project because I'm holding out for a slim hope of entering it in the IF Comp if I get done in time.