<Tr> <Th> Box office </Th> <Td> $48.4 million </Td> </Tr> <P> The Last King of Scotland is a 2006 historical drama film based on Giles Foden's novel The Last King of Scotland (1998), adapted by screenwriters Peter Morgan and Jeremy Brock, and directed by Kevin Macdonald . The film was a co-production between companies from the United Kingdom and Germany . </P> <P> The film tells the fictional story of Nicholas Garrigan (James McAvoy), a young Scottish doctor who travels to Uganda and becomes the personal physician of President Idi Amin (Forest Whitaker). The film is based on events of Amin's rule, and the title comes from a reporter in a press conference who wishes to verify whether Amin, who was known to adopt fanciful imperial titles for himself, declared himself the King of Scotland . The film has an approval rating of 87% at Rotten Tomatoes, and Whitaker won Best Actor at the Academy Awards, among others . </P> <P> In 1970, Nicholas Garrigan graduates from medical school at the University of Edinburgh . With dull prospects at home, he decides to seek adventure abroad by working at a Ugandan missionary clinic run by Dr. David Merrit (Adam Kotz) and Merrit's wife, Sarah . Garrigan becomes attracted to Sarah, who enjoys the attention, but refuses to engage in an extramarital affair . </P>

Who was the last king of scotland based on