2018-06-24 17:10:37 -07:00
|
|
|
TalkToTrainerScript::
|
2017-12-15 17:10:54 -08:00
|
|
|
faceplayer
|
|
|
|
trainerflagaction CHECK_FLAG
|
|
|
|
iftrue AlreadyBeatenTrainerScript
|
2019-03-10 12:31:59 -07:00
|
|
|
loadtemptrainer
|
2017-12-15 17:10:54 -08:00
|
|
|
encountermusic
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump StartBattleWithMapTrainerScript
|
2017-12-15 17:10:54 -08:00
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
SeenByTrainerScript::
|
2019-03-10 12:31:59 -07:00
|
|
|
loadtemptrainer
|
2017-12-15 17:10:54 -08:00
|
|
|
encountermusic
|
|
|
|
showemote EMOTE_SHOCK, LAST_TALKED, 30
|
|
|
|
callasm TrainerWalkToPlayer
|
2019-03-10 12:31:59 -07:00
|
|
|
applymovementlasttalked wMovementBuffer
|
2017-12-24 10:46:34 -08:00
|
|
|
writeobjectxy LAST_TALKED
|
|
|
|
faceobject PLAYER, LAST_TALKED
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump StartBattleWithMapTrainerScript
|
2017-12-15 17:10:54 -08:00
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
StartBattleWithMapTrainerScript:
|
2017-12-15 17:10:54 -08:00
|
|
|
opentext
|
2019-03-10 12:31:59 -07:00
|
|
|
trainertext TRAINERTEXT_SEEN
|
2017-12-15 17:10:54 -08:00
|
|
|
waitbutton
|
|
|
|
closetext
|
2019-03-10 12:31:59 -07:00
|
|
|
loadtemptrainer
|
2017-12-15 17:10:54 -08:00
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
|
|
|
trainerflagaction SET_FLAG
|
2019-03-10 12:31:59 -07:00
|
|
|
loadmem wRunningTrainerBattleScript, -1
|
2017-12-15 17:10:54 -08:00
|
|
|
|
|
|
|
AlreadyBeatenTrainerScript:
|
|
|
|
scripttalkafter
|