예제 #1
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     gpsdone = self.get_priv_data(game, player, "ball_done")
     if not gpsdone:
         return View(mv,
                     [[("speak", "*Speak*")], [("opt_isdone", "I'm done.")],
                      [("opt_refusedo", "I don't wanna do it.*")]])
     else:
         return View(
             mv,
             [[("speak", "*Speak*")], [("opt_isdone", "Receive Results.")]])
예제 #2
0
    def get_view(self, game: Game, player: int):
        mv = states.get_missions_view()

        whatbut = []
        whobut = []
        pname = game.player_info[player].first_name
        if not self.get_priv_data(game, player, "who_done"):
            whobut = [[("opt_who",
                        "I am {pname} the Adventurer!".format(pname=pname))]]
        if not self.get_priv_data(game, player, "what_done"):
            whatbut = [[("opt_what", "I am looking for an invisible sword.")]]
            if self.get_priv_data(game, player, "who_disabled"):
                whobut = []

        return View(mv, [[("speak", "*Speak*")]] + whatbut + whobut)
예제 #3
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view() + "\n\nTHE END"
     return View(mv, [[("opt_ok", "*Ok*")]])
예제 #4
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(mv, [[("speak", "*Speak*")],
                      [("opt_diag1", "No, I haven't seen anything.")],
                      [("opt_diag2", "Yes I actually...")]])
예제 #5
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(mv, [[("speak", "*Speak*")],
                      [("opt_diag1", "Why do you seem so upset?")]])
예제 #6
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(mv, [[("speak", "*Speak*")], [("opt_hello", "Hello!")],
                      [("opt_greetings", "Greetings Master Khajiit.")]])
예제 #7
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     diag1 = "Not interested."
     diag2 = "Yes, I have. But I have to bring it later."
     return View(mv, [[("speak", "*Speak*")], [("opt_diag1", diag1)],
                      [("opt_diag2", diag2)]])
예제 #8
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     diag1 = "It is your turn to tell me about you."
     diag2 = "What kind of an adventurer were you?"
     return View(mv, [[("speak", "*Speak*")], [("opt_diag1", diag1)],
                      [("opt_diag2", diag2)]])
예제 #9
0
파일: navi.py 프로젝트: hbirler/NPCRoboy
	def get_view(self, game:Game, player:int):
		mv = states.get_missions_view()
		return View(mv, [[("speak", "*Speak*")], [("opt_leaveme","Leave me alone!")], [("opt_imdone","I'm done.")]])
예제 #10
0
파일: navi.py 프로젝트: hbirler/NPCRoboy
	def get_view(self, game:Game, player:int):
		mv = states.get_missions_view()
		yes_option = "Yes Navi?" if not self.get_priv_data(game, player, "said_not") else "Ugh ok."
		not_option = "Not now" + "!" * self.get_priv_data(game, player, "not_count")
		
		return View(mv, [[("speak", "*Speak*")], [("opt_yes", yes_option)], [("opt_not", not_option)]])
예제 #11
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(mv,
                 [[("speak", "*Speak*")], [("opt_fun1", "Please Repeat")],
                  [("opt_fun2", "No thank you")]])
예제 #12
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(mv, [[("speak", "*Speak*")], [("opt_yes", "I am ready")],
                      [("opt_no", "What test?")]])
예제 #13
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     pname = game.player_info[player].first_name
     diag = "Hello I am {pname}.".format(pname=pname)
     return View(mv, [[("speak", "*Speak*")], [("opt_hi", diag)]])
예제 #14
0
 def get_view(self, game: Game, player: int):
     mv = states.get_missions_view()
     return View(
         mv, [[("speak", "*Speak*")], [("opt_fun1", "Where is the Cake?")],
              [("opt_fun2", "Anything else?")]])