Let’s continue. We now have to make the thief at the inn appear once the player freed her from prison. To do that, we simply have to switch her to mode 2. Be careful to choose the thief at the inn, not the one in prison. With that done, we can take care of the thief at the inn, that the player will see only once he has spoken with the thief in prison. The thief at the inn will have two modes: one in which she’s invisible, and one in which she is visible, so the player can talk to her. We just have to disable the character display for both night and day in mode 1. We can then create a second mode, activated once the player spoke to the thief in prison. Just add a little dialogue where she gives you the password. Now let’s take care of the castle’s guard. We’ll create a new mode in which he’ll ask for the password. During the day the castle is open, so we just need a line of dialogue. At night however, we’ll make him ask the password. If the player gets it right he’ll be able to enter the castle. We’ll use a decision branch for that. This allows you to ask something to the player, and make the event behave differently depending on the player’s answer. You can set up to four choices, but two is enough for our example. The first choice will be the correct password. The decision branch created a new layout for our event. Everything after “Option 1/Start” is how the event will behave if the player picks the first option, that is the correct password. Everything after “Option 2/Start” is how it will behave for the second choice, the wrong password. Picking the wrong password will just end the conversation. Picking the right password will make the guard react, and warp you inside the castle. To warp the player somewhere else, just choose “Warp”, pick a destination and where exactly the player will appear. We forgot something though. Can you remember what? That’s right: the guard will never swith to his second mode, so he will never ask for the password. Let’s switch him to mode 2 once the player gets the password from the thieft. This seems about right… Oh wait, we forgot something else! We have to copy the event code from day to night, otherwise the thief will not react if the player speaks to her during the night. Now we’re good. Let’s see if everything works correctly! No problem for entering the castle during the day… The thief is not here since we didn’t speak to her in prison yet. That’s good. Let’s use the debug menu to warp inside the castle. That way we don’t have to walk! Now that we spoke to her, she should appear inside the inn. There she is! Now that we have the password, let’s try to enter the castle. Of course we can enter the castle during the day as always, but that’s not interesting. Let’s use the debug menu again to skip to night. Choosing the wrong password ends the conversation like we wanted. Choosing the right password warps us inside the castle, neat! Well, we’re almost done. In the next video we’ll finally be able to exit town. Check it out!