ShinZo to build up a string password consisting of paths taken, you would have a global property type string start out as "" (empty).
Found in Game Configuration > Global Properties.
Name: "password"
type: string
value: ""
Then each time the player takes a path, the script would add a letter to the existing string.
global.property["password"] = global.property["password"] + "L";
That will add L to whatever is already there.
repeat that for each pathway/turning, changing what the letter on the right is, to build out the string.