code
pos_r227_gymleader:
event_start()
obj_anime("R227_GYMLEADER", "anm_r227_gymleader_01")
obj_anime("R227_RIVAL", "anm_r227_rival_01")
obj_anime("HERO", "anm_r227_player_00")
obj_anime_wait()
obj_anime("R227_GYMLEADER", "anm_r227_gymleader_01_g")
obj_anime("R227_RIVAL", "anm_r227_rival_01_g")
obj_anime_wait()
player_name(0.0)
talkmsg("dp_scenario3%69-msg_r227_gymleader_01_01_1")
talk_keywait("dp_scenario3%69-msg_r227_gymleader_01_01_2")
talk_close()
obj_anime("R227_RIVAL", "anm_r227_rival_02")
obj_anime_wait()
time_wait(15.0, work: 246)
rival_name(1.0)
talk_keywait("dp_scenario3%69-msg_r227_rival_01")
talk_close()
obj_anime("R227_RIVAL", "anm_r227_rival_03")
obj_anime_wait()
time_wait(5.0, work: 246)
player_name(0.0)
talkmsg("dp_scenario3%69-msg_r227_rival_02_1")
talk_keywait("dp_scenario3%69-msg_r227_rival_02_2")
talk_close()
obj_anime("R227_RIVAL", "anm_r227_rival_04")
obj_anime("R227_GYMLEADER", "anm_r227_gymleader_02")
obj_anime("HERO", "anm_r227_player_01")
obj_anime_wait()
obj_del("R227_RIVAL")
obj_anime("R227_GYMLEADER", "anm_r227_gymleader_03")
obj_anime("HERO", "anm_r227_player_02")
obj_anime_wait()
talkmsg("dp_scenario3%69-msg_r227_gymleader_02_1")
talkmsg("dp_scenario3%69-msg_r227_gymleader_02_2")
talk_keywait("dp_scenario3%69-msg_r227_gymleader_02_3")
talk_close()
player_pos_get(work: 238, work: 239)
ifval_jump(work: 238, "EQ", 738.0, "pos_r227_gymleader_x01")
ifval_jump(work: 238, "EQ", 739.0, "pos_r227_gymleader_x02")
end()