code
pos_d13r0101_ginga:
event_start()
call("d13r0101_gingam_a_common_01")
ifval_call(work: 249, "EQ", 3700.0, "ev_d02_townmap_apd1")
trainer_btl_set("GINGAM_01", 0.0)
trainer_lose_check(work: 246)
ifval_jump(work: 246, "EQ", 0.0, "ev_d13r0101_common_battle_lose")
call("d13r0101_gingam_a_common_02")
ifval_call(work: 249, "EQ", 3800.0, "ev_d02_townmap_apd2")
trainer_btl_set("GINGAM_02", 0.0)
trainer_lose_check(work: 246)
ifval_jump(work: 246, "EQ", 0.0, "ev_d13r0101_common_battle_lose")
call("d13r0101_gingam_a_common_03")
set_sys_flag(sys_flag: 41)
ifval_call(work: 249, "EQ", 3900.0, "ev_d02_townmap_apd3")
event_end()
end()