def start_fusion(): wait_for_template(tem_network_fusion_screen) input.press(keys.dpad_up) input.press(keys.cross) wait_for_template(tem_arsene_selected) input.press(keys.cross) wait_for_template(tem_caroline_dialogue) input.press(keys.cross) wait_for_template(tem_fusion_go_ahead) input.press(keys.cross)
def to_fusion_screen(): wait_for_template(tem_create_persona) input.press(keys.cross) wait_for_template(tem_persona_fusion) input.press(keys.cross) wait_for_template(tem_network_fusion) input.press(keys.dpad_up) input.press(keys.cross)
def conclude_fusion(): time.sleep(6) input.press(keys.options) time.sleep(6) while True: scr.update_frames() if scr.template_match(tem_almighty, threshold=.8): return True if scr.template_match(tem_leave_message, threshold=.6): break input.press(keys.circle) time.sleep(1.5) input.press(keys.cross) wait_for_template(tem_leave_answer) input.press(keys.dpad_up) input.press(keys.cross) return False
def talk_to_igor(): wait_for_template(tem_velvet_room) while not scr.template_match(tem_talk_igor): input.press(keys.left_up, .1) scr.update_frames() input.press(keys.cross) wait_for_template(tem_igor_dialogue) print("found igor's dialogue") input.press(keys.cross)
def shoot(): input.press(keys.square) time.sleep(2)
def lock_on(): input.press(keys.r3)
def assassinate(): input.press(keys.r2, 1.75) input.press(keys.r2) time.sleep(.60) input.press(keys.r1) time.sleep(6)
def visceral(): input.press(keys.r1) time.sleep(6)
def charged_power_attack(): input.press(keys.r2, 1.75)
def power_attack(): input.press(keys.r2) time.sleep(.60)
def turn_right(): input.press(keys.left_right) input.press(keys.r3) input.press(keys.r3)
def move_forward(duration): input.press(keys.left_up, duration)
def use_mark(): use_item() time.sleep(1) input.press(keys.cross)
def use_item(): input.press(keys.square) time.sleep(.5)
def switch_item(): input.press(keys.dpad_down)
def load_game(): time.sleep(3) input.press(keys.triangle) wait_for_template(tem_system) time.sleep(.5) input.press(keys.dpad_up) input.press(keys.cross) wait_for_template(tem_load_data) time.sleep(.5) input.press(keys.dpad_up) input.press(keys.dpad_up) input.press(keys.dpad_up) input.press(keys.cross) wait_for_template(tem_load) time.sleep(1) input.press(keys.cross) wait_for_template(tem_confirm_load) time.sleep(.5) input.press(keys.cross)