Very loosely - some names were shared and that's about it. One of the most historically inaccurate films of all time, and completely mutilates Wallace's memory. There's an extensive inaccuracy section on Wikipedia. I wouldn't dare mention it to my Scottish friends. :)
Do we know how they painted themselves back then?