code
ev_c04gym0102_leader:
ldval(work: 99, 5.0)
ldval(work: 350, 2.0)
player_name(0.0)
sys_flag_badge_get(sys_flag: 125, work: 246)
ifval_jump(work: 246, "EQ", 1.0, "ev_c04gym0102_leader_badge_get")
fnote_data_make("FNOTE_ID_GYMBEFORE", 57.0, 0.0, 0.0, 0.0)
talk_obj_start_look_none()
event_start()
black_out("SCR_WIPE_DIV", 3.0)
fade_wait()
obj_pos_change_world("HERO", -15.0, 0.0, 4.300000190734863)
sxy_dir_change("HERO", 180.0)
event_camera_index(402.0)
find_bg_disable(0.0, "P_C_001_Tree_01_/P_C_001_Tree_01picup")
event_camera_end_wait()
black_in("SCR_WIPE_DIV", 3.0)
fade_wait()
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_01_1")
obj_anime("C04GYM0102_LEADER", "anm_c04gym0102_leader_01_face04")
obj_anime_wait()
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_01_2")
talk_close()
event_camera_index(117.0)
obj_anime("C04GYM0102_LEADER", "anm_c04gym0102_leader_01_face00")
obj_anime_wait()
find_bg_enable(0.0, "P_C_001_Tree_01_/P_C_001_Tree_01picup")
btl_encseq_load("gym02")
trainer_btl_set("LEADER2_01", 0.0)
trainer_lose_check(work: 246)
ifval_jump(work: 246, "EQ", 0.0, "ev_c04gym0102_common_battle_lose")
talk_obj_start()
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_02_1")
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_02_2")
talk_close()
badge_get(1.0)
con_wait_contest_menu()
player_name(0.0)
me_play("M_FI006")
talkmsg("dp_scenario2%17-msg_c04gym0102_leader_03")
me_wait()
talk_close()
sys_flag_badge_set(sys_flag: 125)
add_score("SCORE_ID_GYM_LEADER_WIN")
trainer_flag_set("AROMA_04")
trainer_flag_set("AROMA_05")
trainer_flag_set("MINI_09")
trainer_flag_set("SISTER_07")
fnote_data_make("FNOTE_ID_GYMAFTER", 57.0, "LEADER2_01", 0.0, 0.0)
ldval(work: 249, 5200.0)
flag_reset(flag: 329)
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_04_1")
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_04_2")
talk_keywait("dp_scenario2%17-msg_c04gym0102_leader_04_3")
cb_item_num_add(50.0, 3.0)
cb_item_num_add(53.0, 2.0)
cb_item_num_add(37.0, 3.0)
cb_item_num_add(38.0, 2.0)
cb_item_num_add(39.0, 1.0)
cb_item_num_add(40.0, 2.0)
cb_item_num_add(41.0, 1.0)
me_play("M_FI014")
speakers_name(0.0, "%DP_Trainers_Name_TR_LEADER2_01")
talkmsg("dp_scenario1%84-msg_c03gym0101_leader_05_4")
me_wait()
jump("ev_c04gym0102_leader_item_get")
end()