2017-12-16 01:10:54 +00:00
|
|
|
TalkToTrainerScript:: ; 0xbe66a
|
|
|
|
faceplayer
|
|
|
|
trainerflagaction CHECK_FLAG
|
|
|
|
iftrue AlreadyBeatenTrainerScript
|
|
|
|
loadmemtrainer
|
|
|
|
encountermusic
|
|
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
|
|
|
|
SeenByTrainerScript:: ; 0xbe675
|
|
|
|
loadmemtrainer
|
|
|
|
encountermusic
|
|
|
|
showemote EMOTE_SHOCK, LAST_TALKED, 30
|
|
|
|
callasm TrainerWalkToPlayer
|
2018-01-23 22:39:09 +00:00
|
|
|
applymovement2 wMovementBuffer
|
2017-12-24 18:46:34 +00:00
|
|
|
writeobjectxy LAST_TALKED
|
|
|
|
faceobject PLAYER, LAST_TALKED
|
2017-12-16 01:10:54 +00:00
|
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
|
|
|
|
StartBattleWithMapTrainerScript: ; 0xbe68a
|
|
|
|
opentext
|
|
|
|
trainertext $0
|
|
|
|
waitbutton
|
|
|
|
closetext
|
|
|
|
loadmemtrainer
|
|
|
|
startbattle
|
|
|
|
reloadmapafterbattle
|
|
|
|
trainerflagaction SET_FLAG
|
|
|
|
loadvar wRunningTrainerBattleScript, -1
|
|
|
|
|
|
|
|
AlreadyBeatenTrainerScript:
|
|
|
|
scripttalkafter
|