Scenario: a movie is made a couple of decades ago. The movie is NOT based on a book/literary work. Also, NO novelization is made of the movie. Hence, there is no literary work associated with the movie other than the script itself.
Now, assume some author, NOT associated with the movie, comes along and decides to write a book as follows. In the literary work, let's say the characters from the movie are changed, the setting is changed, and the story is flipped (for example, instead of aliens invading earth, the humans invade alien territory). The book does NOT use the script of the movie (so no word for word copying) except if there is an argument in the movie, there is an argument in the book (mimicking the plot point).
Question: Can the author above create a book that follows the movie's plot points without infringing on copyright or facing some other legal injunction?