I've added this section to the document.
(NOTE: I removed a comment by auraes as they were referencing a version of the document that I accidentally uploaded and contained a bad function name - sorry auraes, you definitely were advising correctly from the 10 minute window where that bad document was online).
https://adventuron.io/docs/tut/#FindingAnObject
start_at = village
locations {
village : location "You are in the village.";
}
objects {
sword : object "a sword" ;
lamp : object "a lamp" start_at = "inventory" ;
spoon : object "a spoon" start_at = "village" ;
fork : object "a fork" start_at = "bag";
bag : object "a bag" start_at = "inventory" container_type="bag";
}
on_tick {
: if (parent_of "lamp" == "inventory") {
: print "The lamp is in your inventory." ;
}
: if (parent_of "spoon" == current_location()) {
: print "The spoon is in the same location as you." ;
}
: print {( "Location of Lamp : " + parent_of "lamp" )}
: print {( "Location of Sword : " + parent_of "sword" )}
: print {( "Location of Spoon : " + parent_of "spoon" )}
: print {( "Location of Bag : " + parent_of "bag" )}
: print {( "Location of Fork : " + parent_of "fork" )}
}