Machina ex deus
(The machine in the god)
MED beginning setting is what appears to be a utopian city from a fantasy version of the middle ages; with mages, knights, clerics and the like as common as the average peasant. This city is ruled directly by what the people perceive to be gods, who through classical conditioning keep the populace under their control. People who commit evil acts are immediately punished and those who do good deeds are immediately rewarded in the form of mental simulations of pain and pleasure respectively. These gods are actually a sapient group of nanites that have taken control of the human race as an interpretation of their initial programming to save the Earth from mankinds pollution without harming man.
Outside the city is a different story entirely. According to the perception of those in the city, outside their walls is nothing but an endless wasteland inhabited by demons which hate humanity and try to kill them e