Complex sentence: However, he became friends with director Kevin Smith during filming, who then wrote "Chasing Amy" (1997) with Affleck in mind.
Split into simpler sentences: However, he became friends with director Kevin Smith during filming. Smith then wrote "Chasing Amy" (1997) with Affleck in mind.