Chapters 86 to 90
It is said that in the summer of the fourth month of the third year of the Zhangwu era, Emperor Zhaolie Liu Bei passed away in Baidi City. In his testamentary edict, he entrusted the orphan to the prime minister Zhuge Liang, saying, 'If my successor Liu Shan can be assisted, assist him; if he cannot be assisted, you may make yourself the master of Chengdu.' Kongming wept and said, 'How dare I not exhaust my strength as a limb, fulfill my loyalty and integrity, and continue to the death!' He then wholeheartedly assisted the later ruler Liu Shan in governing the state and pacifying the people.
Now, Wei ruler Cao Pi, hearing that Liu Bei had died, was overjoyed and wished to raise an army to attack Shu. Shu had just lost its ruler, and the state was unsettled—this was a prime opportunity to attack Shu. He asked what the five routes were. He could issue a proclamation and send envoys to all sides to say: first, the Qiang king Kebineng would send troops through Xiping Pass to invade the territory of Western Sichuan; second, the barbarian king Meng Huo would send troops to invade Yizhou and Yongchang; third, Eastern Wu's Sun Quan would send troops to respond to the key areas of Jing and Xiang; fourth, the generals Shen Dan and Shen Yi of Shangyong would send troops to take Hanzhong; fifth, Your Majesty would personally lead the main army to take Yangping Pass and enter. Sima Yi presented a plan, saying, 'But Shu's terrain is dangerous and difficult to enter with a lone army. It is better to connect with the five route armies and attack together.' Cao Pi said, 'Sima Yi memorialized, saying...'
Cao Pi, hearing the plan, immediately sent people to issue edicts in all directions. In the court of Shu Han, when the ministers heard that Wei was invading with five route armies, they all panicked and lost color. The later ruler Liu Shan was also very worried and fearful. Kongming, however, sat calmly and unmoved, smiling as he said, 'I have already anticipated that Wei would surely take this action.' Do not worry, generals; await my plan to repulse the five route armies.'