The "itemid" command is new to me so could I just clarify what it's doing? (and forgive my very basic understanding!)
The "itemid=ObjGet" is instructing the program that if the object you are giving to the bird is either 1000, 1001, 1002 or 1003 then run the message, "here's some twigs". Then the next part checks the bird to see how many it has been given and if the objects are less than 4 then run the message, "i need more twigs" and if they are equal to 4 then run the message, "i don't need more".
I hope I've understood that correctly as it actually made sense as I was writing it!
sorry, 'itemid' is just a variable. I could have called it 'idx', or 'jelly', or 'custardcreambiscuit'. It doesn't matter what it's called, it's simply something for the game to use to store information. In this case, it's storing the Object ID of variable 'idx' (which itself is the item that the player is trying to use)
so 'itemid=ObjGet(idx,O_ID);' basically tells the game to get the ID property of whatever object is stored in variable 'idx', then store the ID number in variable 'itemid'
the 'if' command is the part which checks if the ID of the object you are giving to the bird is either 1000, 1001, 1002 or 1003. If it is, then it runs the code contained in the { and }.
the next part adds 1 to the status of the bird object, then another 'if' statement checks if it's less than 4, and runs the code in the { and } brackets if it is. If not, the game jumps to the next 'if' statement, to check if the status is equal to or more than 4, and runs the code in those { and } brackets if it is.
I hope that makes sense :smile: