The Eyes of the Dragon (Feb 1987)

Once upon a time, in the Kingdom of Delain, King Roland is murdered and his son and heir, Peter, is framed for the crime. Peter and his loyal friends must battle an evil wizard and Peter's usurper brother, Thomas, for the throne. Imprisoned in a tower, Peter conceives an escape plan that will take him years to execute before taking on Flagg, the powerful sorcerer who has masterminded this coup.

The Eyes of the Dragon has connections to the following books:

Citation needed : Randall Flagg

Flagg makes an appearance in The Eyes of the Dragon as an evil wizard attempting to plunge the fictional medieval city of Delain into chaos.

And one man thought and planned and brooded on something else: how to make sure that Roland's younger son, Thomas, should be crowned King instead. This man was Flagg, the King's magician.

References will be here!