2018-06-24 17:10:37 -07:00
|
|
|
TalkToTrainerScript::
|
2017-12-15 17:10:54 -08:00
|
|
|
faceplayer
|
|
|
|
trainerflagaction CHECK_FLAG
|
|
|
|
iftrue AlreadyBeatenTrainerScript
|
|
|
|
loadmemtrainer
|
|
|
|
encountermusic
|
|
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
SeenByTrainerScript::
|
2017-12-15 17:10:54 -08:00
|
|
|
loadmemtrainer
|
|
|
|
encountermusic
|
|
|
|
showemote EMOTE_SHOCK, LAST_TALKED, 30
|
|
|
|
callasm TrainerWalkToPlayer
|
2018-01-23 14:39:09 -08:00
|
|
|
applymovement2 wMovementBuffer
|
2017-12-24 10:46:34 -08:00
|
|
|
writeobjectxy LAST_TALKED
|
|
|
|
faceobject PLAYER, LAST_TALKED
|
2017-12-15 17:10:54 -08:00
|
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
StartBattleWithMapTrainerScript:
|
2017-12-15 17:10:54 -08:00
|
|
|
opentext
|
|
|
|
trainertext $0
|
|
|
|
waitbutton
|
|
|
|
closetext
|
|
|
|
loadmemtrainer
|
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
|
|
|
trainerflagaction SET_FLAG
|
|
|
|
loadvar wRunningTrainerBattleScript, -1
|
|
|
|
|
|
|
|
AlreadyBeatenTrainerScript:
|
|
|
|
scripttalkafter
|