def on_opt_diag2(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" game.set_player_state(player, states.GS.khajit_whatwho) pname = game.player_info[player].first_name diag = "These sands are cold, but Khajiit feels warm from your presence." roboy_interface.roboy_say(diag) pass
def on_opt_diag2(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" game.set_player_state(player, states.GS.khajit_whatwho) pname = game.player_info[player].first_name diag = "I travel all across Garshing to serve you, but I seem to have an unfortunate talent for getting myself involved with misunderstandings with the law." roboy_interface.roboy_say(diag) pass
def on_opt_diag1(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" game.set_player_state(player, states.GS.khajit_whatwho) pname = game.player_info[player].first_name diag = "Oh, I see. These lands are cruel." roboy_interface.roboy_say(diag) pass
def on_opt_imdone(self, game:Game, player:int): if not states.is_focused(game, player): return "Face roboy when you speak!" if game.dm.get_data("ball") != {"x":5,"y":5,"z":5}: roboy_interface.roboy_say("Hey you! You aren't done! Listen!") else: roboy_interface.roboy_say("Hey you! Hey! Thank you!") game.set_player_state(player, states.GS.navi_end)
def on_opt_no(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" game.set_player_state(player, states.GS.glados_challenge) pname = game.player_info[player].first_name diag = "Subject number {pname}. Please commence testing.".format( pname=abs(player)) roboy_interface.roboy_say(diag)
def on_opt_yes(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" states.set_mission_done() game.set_player_state(player, states.GS.glados_quest) game.update_single(player) pname = game.player_info[player].first_name diag = "Please escort the companion pi to the local research facility." roboy_interface.roboy_say(diag)
def on_opt_not(self, game:Game, player:int): if not states.is_focused(game, player): return "Face roboy when you speak!" self.set_priv_data(game, player, "said_not", True) self.set_priv_data(game, player, "not_count", self.get_priv_data(game, player, "not_count") + 1) pname = game.player_info[player].first_name diag = "{pname}! Listen! Hey! Hey you! Listen!".format(pname = pname) game.update_single(player) roboy_interface.roboy_say(diag)
def on_opt_isdone(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" gpsdone = self.get_priv_data(game, player, "ball_done") if not gpsdone: pname = game.player_info[player].first_name diag = "Do not try to lie. the companion pi has not reached its destination." roboy_interface.roboy_say(diag) else: game.set_player_state(player, states.GS.glados_results) pname = game.player_info[player].first_name diag = "Congratulations for the slowest team in eternity award." roboy_interface.roboy_say(diag)
def on_speak(self, game: Game, player: int): if not states.is_focused(game, player): return "Face roboy when you speak!" return speak.on_speak_handler(self, game, player)