Last night, I was watching the part of 'The Return of the King' where Bilbo gets to Mount Doom and is attacked by Gollum. In my dream version, Gollum got the ring away from Frodo, put it on, and was heading out the door. I do not remember seeing Sam anywhere.
Then Gandalf showed up. He could not see or stop Gollum, and tried to close the door to the cave ( There was no door in the movie but there was in the dream ). He failed; Gollum managed to get there in time and stop the door from closing. Then Gimli showed up, standing outside the door looking in. He could not see Gollum, but he could talk to him.
In my dream, Gollum was apparently a fallen goblin rather than a fallen Hobbit. Gimli proceeds to give a talk that builds on the shared heritage of mountain-dwelling races, and convinces Gollum that his actions are misguided and wrong. Gimli reminds Gollum of the joys of his former life in the sunlight with his family, comparing that to the state he has been reduced to by the Ring. It went on for a while, and at the end, stricken with grief, Gollum jumps into the lava with the Ring.
I remember thinking "This is not what happened in the book. But I am glad they gave Gimli this chance to shine, to make up for making him look bad in the rest of the movie."
I have no idea why my subconscious decided to rewrite the movie so that Gimli saves the day by delivering a Hannibal Lecture.