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