mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
f5c9958aea
Fixes #580
32 lines
699 B
NASM
32 lines
699 B
NASM
TalkToTrainerScript::
|
|
faceplayer
|
|
trainerflagaction CHECK_FLAG
|
|
iftrue AlreadyBeatenTrainerScript
|
|
loadtemptrainer
|
|
encountermusic
|
|
sjump StartBattleWithMapTrainerScript
|
|
|
|
SeenByTrainerScript::
|
|
loadtemptrainer
|
|
encountermusic
|
|
showemote EMOTE_SHOCK, LAST_TALKED, 30
|
|
callasm TrainerWalkToPlayer
|
|
applymovementlasttalked wMovementBuffer
|
|
writeobjectxy LAST_TALKED
|
|
faceobject PLAYER, LAST_TALKED
|
|
sjump StartBattleWithMapTrainerScript
|
|
|
|
StartBattleWithMapTrainerScript:
|
|
opentext
|
|
trainertext TRAINERTEXT_SEEN
|
|
waitbutton
|
|
closetext
|
|
loadtemptrainer
|
|
startbattle
|
|
reloadmapafterbattle
|
|
trainerflagaction SET_FLAG
|
|
loadmem wRunningTrainerBattleScript, -1
|
|
|
|
AlreadyBeatenTrainerScript:
|
|
scripttalkafter
|