예제 #1
0
    def enter(self):
        country = language.language("EN", "england").get()
        print country.get("title")
        print country.get("sub_title")
        print country.get("sub_title2")
        print country.get("sub_title3")
        print country.get("sub_title4")

        action = raw_input("> ")
        action = parsera.process_input(action, ["play"], ["them"])
        print "-" * 10

        if action == country.get("command1"):

            print "You ar starting a game with them"
            print "They gives you a riddle"
            print '"This thing runs but cannot walk, sometimes sings but never talks. '
            print 'Lacks arms, has hands; lacks a head but has a face."'
            action = raw_input("> ")
            action = parsera.process_input(action, ["clock"], [])
            print "-" * 10
            if action == "clock":
                print "You won a boat : + %s XP" % self.roomPoints
                global items
                items.append("Boat")
                global points
                points = self.roomPoints
                return "boat"
            else:
                return "lost"
        else:
            print "You give up this oppurtunity and walks around and do nothing"
            return "lost"
예제 #2
0
    def enter(self):

        if visited["gold_island"]:
            for i in options:
                if i == "nord":
                    options.remove(i)

        if visited["dragon_island"]:
            for i in options:
                if i == "sor":
                    options.remove(i)

        print "You are on your boat"
        print "You and you crew has sailed for %s days" % days
        print "You have to chose where you will go next"
        if points >= 200:
            options.append("hidden")
            print options
        else:
            print options
        action = raw_input("> ")
        action = parsera.process_input(action, ["nord", "sor", "hidden"], [])
        if action == "nord":
            if visited["gold_island"]:
                print "Already been here"
                return "boat"
            else:
                return "gold_island"

        elif action == "sor":
            return "dragon_island"
        elif action == "hidden" and points >= 200:
            return "hidden_island"
        else:
            print "-" * 10
            print "Not a command"
            return "boat"