To discover, as by study or inquiry; to find out; to devise; to contrive or produce for the first time; applied commonly to the discovery of some serviceable mode, instrument, or machine
If you invent a story or excuse, you try to make other people believe that it is true when in fact it is not. I stood still, trying to invent a plausible excuse