Complex sentence: Realising he needs clothes, the Doctor considers getting a really long scarf, which he immediately rejects, saying it "looked stupid"; this refers to the Fourth Doctor's famous neckwear.
Split into simpler sentences: Realising he needs clothes, the Doctor considers getting a really long scarf; he immediately rejects the idea, saying it "looked stupid". This refers to the Fourth Doctor's famous neckwear.