Npc dialogue Question trigger

I'm new to unity, and I want to make a npc where you come up to it and you talk to the npc and says password needed then you walked to a river then find a password then come back and talked and enter password.
thank you

game link for feedback comment feed back
Capsule Adventures beta - Unity Play

please help