def _enter_boat_in_ko_kut_0(al: "All"): al.mas.current_map.npcs = [ npc for npc in al.mas.current_map.npcs if npc.name != "Nim" ] al.mas.current_map.map_change( learner=al.learner, ma=al.mas.get_map_from_name("ko_mak"), x=35, y=9, ) set_event('enter_boat_in_ko_kut', 0)
def _talked_to_nim_in_plane_4(al: "All"): al.mas.current_map.npcs = [ npc for npc in al.mas.current_map.npcs if npc.name != "Nim" ] al.learner.followers.append( Follower( al, direction=Direction.DOWN, sprite='nim', name='Nim', x=57, y=54, )) set_event('nim_is_following', 1)
def _talk_to_gecko_kid_0(al: "All"): found_gecko_1 = int(bool(get_event_status('find_gecko_1'))) found_gecko_2 = int(bool(get_event_status('find_gecko_2'))) found_gecko_3 = int(bool(get_event_status('find_gecko_3'))) number_of_collected_geckos = found_gecko_1 + found_gecko_2 + found_gecko_3 if number_of_collected_geckos == 0: play_thai_word("ขอบคุณนะครับ") al.active_npc.standard_dialog = al.active_npc.extra_dialog_5 al.active_npc.active_dialog = al.active_npc.standard_dialog _process_dialog(al.active_npc.active_dialog, al) set_event('talk_to_gecko_kid', 0) elif number_of_collected_geckos == 1: set_event('talk_to_gecko_kid', 0) al.active_npc.standard_dialog = al.active_npc.extra_dialog_1 al.active_npc.active_dialog = al.active_npc.standard_dialog elif number_of_collected_geckos == 2: al.active_npc.standard_dialog = al.active_npc.extra_dialog_2 al.active_npc.active_dialog = al.active_npc.standard_dialog set_event('talk_to_gecko_kid', 0) else: set_event('talk_to_gecko_kid', 1) al.active_npc.standard_dialog = al.active_npc.extra_dialog_3 al.active_npc.active_dialog = al.active_npc.standard_dialog al.active_npc.taught = Word.get_by_split_form("ตุ๊ก-แก") al.active_npc.wanna_meet = False al.bag.reduce_item_quantity('gecko', 3)
def _talk_to_sushi_0(al: "All"): al.learner.followers.append( Follower( al, direction=Direction.DOWN, sprite='dog', name='ซูชิ', x=51, y=10, )) # set_event('talk_to_sushi', 0) set_event('sushi_is_following', 1) # Remove sushi al.mas.current_map.npcs = [ npc for npc in al.mas.current_map.npcs if npc.name != "sushi" ]
def _talk_to_painter_1(al: "All"): """ If player has blue_paint: - we remove one blue_paint - we give them 100 bahts Else: - reset the event to 1 """ has_blue_paint = al.bag.get_item_quantity('blue_paint') if has_blue_paint > 0: al.learner.money += 20 al.bag.reduce_item_quantity('blue_paint') play_thai_word("ขอบคุณนะครับ") al.active_npc.standard_dialog = al.active_npc.extra_dialog_1 al.active_npc.active_dialog = al.active_npc.standard_dialog _process_dialog(al.active_npc.active_dialog, al) else: al.active_npc.standard_dialog = al.active_npc.defeat_dialog al.active_npc.active_dialog = al.active_npc.defeat_dialog set_event('talk_to_painter', 1)
def _talk_to_painter_2(al: "All"): al.active_npc.standard_dialog = al.active_npc.extra_dialog_2 al.active_npc.active_dialog = al.active_npc.standard_dialog set_event('talk_to_painter', 1)
def _talk_to_kid_looking_for_dog_2(al: "All"): al.active_npc.standard_dialog = al.active_npc.extra_dialog_3 al.active_npc.active_dialog = al.active_npc.standard_dialog al.active_npc.taught = Word.get_by_split_form("หมา") set_event('talk_to_kid_looking_for_dog', 2)
def _talk_to_gecko_kid_1(al: "All"): play_thai_word("ขอบคุณนะครับ") al.active_npc.standard_dialog = al.active_npc.extra_dialog_4 al.active_npc.active_dialog = al.active_npc.standard_dialog _process_dialog(al.active_npc.active_dialog, al) set_event('talk_to_gecko_kid', 1)