Could you tell me please why the author uses '' did'' in this way here in this sentence?
''But never ... in all the times that I had this dream did the knight say to me, 'Come on baby, I'll put you up in a great condo."
If you want to emphasize a negative expression and place it at the beginning of a sentence, the rule is as follows:
1. Sentences where you don't use 'DO' to make questions: You use the inversion of the subject and the verb, i.e. you put the verb before the subject.
2. Sentences where you use 'DO' to make questions: You use the correct form of 'DO' before the subject. The form of 'DO' depends on the tense used in the sentence.
The sentence you have stated requires 'DID' as under 2.
I do hope this helps.