The miller tells the king that his daughter can spin straw into gold. The king becomes jealous and takes the miller's daughter to his castle.
Give me your child!
The king tells the miller's daughter to spin straw into gold. The daughter knows she can't do it and she starts bewailing. She becomes mad at her father for boasting and lying.
No madam, that is not my name.
A droll comes in and spins the straw into gold and the daughter gives him jewelry. He comes in multiple times to do it. The last time the daughter didn't have anything to give him so she promises to give him her first born child.
Is your name Rumpelstiltskin?
The queen marries the king and has a child. She is so happy that she forgets her promise. When the droll comes in and tells her to give him her child she refuses to. The droll gives her 3 days to guess his name, and if she fails she has to give him her child.
The queen begins to starts to guess the names. On the first day she thinks of all the odd names she ever heard, like Timothy, Ichabod, Benjamin, Jeremaiah, and so on. On the second day she thinks of all the funny names that she ever heard,like Bandy-Legs, Hunchback, Crook-Shanks, and so on. But the droll says no to all of them.
On the last day of the grace, one of the men sent out comes back and tells the queen that he saw the droll and his name is Rumpelstiltskin. When the droll comes back the queen asks him if that is his name. He becomes really angry and stomps his foot into the ground.