The goal D20 depends on the scenario that you are running. The rules come with many different scenarios with a range of difficulties. Most scenarios involve play up a specific room is found, which will trigger a final battle. The typical condition for victory is to defeat a boss and get a particular item, but there are others. My favourite scenario was designed to collect 12 treasures, before a late hour reached the sunset.