getLabel(object) would not get a label, as it says, it would get a game object with a label...aubergine wrote:What about making getLabel() fulfil both needs? So if the parameter is a string, it returns object associated with that label, if the parameter is an object, it returns the label associated with it?
How about renaming label() to getObject(label | x, y), and allow it to also fetch a feature or structure if given a map position?