Megalomaniac
A  megalomaniac was someone who was obsessed with self-importance and power.

In 2375, Tom Paris advised Kathryn Janeway, alias "Queen Arachnia", to appeal to Doctor Chaotica's ego when attempting to win his favor, as he was a megalomaniac. ()

Self-aware megalomaniacal computers were common foes for Starfleet, to the point that the Daystrom Institute in Okinawa had a dedicated facility for their study and safe storage. In 2381, AGIMUS was moved to the facility. ()

Psychological conditions

External link