script set: haitatu

code

ev_haitatu_flag_change:
    mystery_postman_init()
    mystery_present_check(work: 145)
    ifval_jump(work: 145, "EQ", 0.0, "ev_haitatu_flag_off")
    flag_reset(flag: 463)
    mystery_postman_end()
    end()

ev_haitatu_flag_off:
    flag_set(flag: 463)
    mystery_postman_end()
    end()

ev_haitatu:
    mystery_postman_init()
    talk_obj_start()
    mystery_present_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_haitatu_no_contents")
    get_time_zone(work: 246)
    switch(work: 246)
    case_jump(0.0, "ev_haitatu_morning")
    case_jump(1.0, "ev_haitatu_noon")
    jump("ev_haitatu_night")
    jump("ev_haitatu_end")

ev_haitatu_morning:
    player_name(0.0)
    talkmsg("msg_haitatu_01")
    jump("ev_haitatu_receive_check")
    jump("ev_haitatu_end")

ev_haitatu_noon:
    player_name(0.0)
    talkmsg("msg_haitatu_02")
    jump("ev_haitatu_receive_check")
    jump("ev_haitatu_end")

ev_haitatu_night:
    player_name(0.0)
    talkmsg("msg_haitatu_03")
    jump("ev_haitatu_receive_check")
    jump("ev_haitatu_end")

ev_haitatu_receive_check:
    mystery_receive_check(work: 246)
    ifval_jump(work: 246, "EQ", 0.0, "ev_haitatu_disable")
    jump("ev_haitatu_end")

ev_haitatu_get:
    me_play("M_FI013")
    mystery_enable_msg(work: 239, work: 240)
    talkmsg_arc(work: 239, work: 240)
    me_wait()
    talkmsg("msg_haitatu_18")
    last_keywait()
    mystery_receive_present()
    jump("ev_haitatu_save_end")
    jump("ev_haitatu_end")

ev_haitatu_disable:
    mystery_disable_msg(work: 239, work: 240)
    talkmsg_arc(work: 239, work: 240)
    last_keywait()
    jump("ev_haitatu_end")
    jump("ev_haitatu_end")

ev_haitatu_no_contents:
    talkmsg("msg_haitatu_04")
    last_keywait()
    jump("ev_haitatu_end")
    jump("ev_haitatu_end")

ev_haitatu_end:
    talk_close()
    talk_obj_end()
    mystery_postman_end()
    end()

ev_haitatu_save_end:
    talk_close()
    talk_obj_end()
    mystery_postman_save_end()
    end()