mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
5efce10789
That should be all of them this time
32 lines
671 B
NASM
32 lines
671 B
NASM
TalkToTrainerScript::
|
|
faceplayer
|
|
trainerflagaction CHECK_FLAG
|
|
iftrue AlreadyBeatenTrainerScript
|
|
loadmemtrainer
|
|
encountermusic
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
SeenByTrainerScript::
|
|
loadmemtrainer
|
|
encountermusic
|
|
showemote EMOTE_SHOCK, LAST_TALKED, 30
|
|
callasm TrainerWalkToPlayer
|
|
applymovement2 wMovementBuffer
|
|
writeobjectxy LAST_TALKED
|
|
faceobject PLAYER, LAST_TALKED
|
|
jump StartBattleWithMapTrainerScript
|
|
|
|
StartBattleWithMapTrainerScript:
|
|
opentext
|
|
trainertext $0
|
|
waitbutton
|
|
closetext
|
|
loadmemtrainer
|
|
startbattle
|
|
reloadmapafterbattle
|
|
trainerflagaction SET_FLAG
|
|
loadvar wRunningTrainerBattleScript, -1
|
|
|
|
AlreadyBeatenTrainerScript:
|
|
scripttalkafter
|