script: connect/common_connect_return

code

common_connect_return:
    event_start()
    set_up_door_anime(0.0, 0.0, work: 0, work: 2, 77.0)
    call("connect_door_open")
    obj_visible("FLDOBJ_ID_PLAYER")
    obj_anime("FLDOBJ_ID_PLAYER", "anm_connect_return_player_00")
    obj_anime_wait()
    call("connect_door_close")
    obj_anime("FLDOBJ_ID_PLAYER", "anm_connect_return_player_01")
    obj_anime_wait()
    set_up_door_anime(0.0, 0.0, work: 0, work: 1, 77.0)
    call("connect_door_open")
    obj_anime("FLDOBJ_ID_PLAYER", "anm_connect_return_player_02")
    obj_anime_wait()
    call("connect_door_close")
    flag_reset(sys_flag: 7)
    ldval(work: 121, 0.0)
    event_end()
    end()

2 callers

script_set script invocation
connect ev_connect_battle_return jump("common_connect_return")
connect ev_connect_union_return jump("common_connect_return")