Rikimaru's personality was different before the events of Tenchu 2: Birth of the Stealth Assassins.
By the time of Tenchu Z, the Azuma ninja clan was reduced into being made up of only two ninja left: Rikimaru and Ayame, who treats Rikimaru only as a companion.