I think that your subconcious takes in every thing that they due. There personalities, their actions, the way they react to certain things. And in your dreams, the data your subconsious has collected is put into the “friend’s” character. Does this make any sence??