before the war father had lacked the money to levy an army , but after completely exhausting his treasury ( scraping out every last grain of gold dust from the royal coffers in the process ) he somehow managed to create one .