Files
pokeemerald-expansion/data/scripts/trainer_script.inc
Hedara 2844633403 Merge commit '89ca861a3af8b23bcd3db86fcea017a04ea82769' into pret-merge
Conflicts:
	data/maps/BattleFrontier_BattleArenaBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattlePikeRoomNormal/scripts.inc
	data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
	data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
	data/maps/BattleFrontier_Lounge1/scripts.inc
	data/maps/BattleFrontier_Lounge5/scripts.inc
	data/maps/BattleFrontier_Lounge6/scripts.inc
	data/maps/BattleFrontier_Lounge7/scripts.inc
	data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc
	data/maps/FortreeCity_House1/scripts.inc
	data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc
	data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
	data/maps/PacifidlogTown_House3/scripts.inc
	data/maps/RustboroCity_House1/scripts.inc
	data/maps/SlateportCity_BattleTentBattleRoom/scripts.inc
	data/maps/SlateportCity_NameRatersHouse/scripts.inc
	data/maps/SootopolisCity_LotadAndSeedotHouse/scripts.inc
	data/scripts/day_care.inc
	data/scripts/pc_transfer.inc
	data/specials.inc
2026-05-15 16:40:56 +02:00

28 lines
598 B
C++

Std_RegisteredInMatchCall::
buffertrainerclassname STR_VAR_1, VAR_0x8000
buffertrainername STR_VAR_2, VAR_0x8000
closemessage
delay 30
playfanfare MUS_REGISTER_MATCH_CALL
msgbox gText_RegisteredTrainerinPokeNav, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
return
EventScript_TryGetTrainerScript::
special ShouldTryGetTrainerScript
goto_if_eq VAR_RESULT, TRUE, EventScript_GotoTrainerScript
releaseall
end
EventScript_GotoTrainerScript::
gotobeatenscript
releaseall
end
EventScript_ObjectApproachPlayer::
lock
special DoTrainerApproach
gotonative LoadTrainerObjectScript