mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
31
engine/events/trainer_scripts.asm
Normal file
31
engine/events/trainer_scripts.asm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue