Fill out trainer event flags.
This commit is contained in:
202
maps/Route26.asm
202
maps/Route26.asm
@@ -1,14 +1,13 @@
|
||||
Route26_MapScriptHeader: ; 0x1a4d1d
|
||||
Route26_MapScriptHeader:
|
||||
; trigger count
|
||||
db 0
|
||||
|
||||
; callback count
|
||||
db 0
|
||||
; 0x1a4d1f
|
||||
|
||||
TrainerCooltrainermJake: ; 0x1a4d1f
|
||||
TrainerCooltrainermJake:
|
||||
; bit/flag number
|
||||
dw $550
|
||||
dw EVENT_BEAT_COOLTRAINERM_JAKE
|
||||
|
||||
; trainer group && trainer id
|
||||
db COOLTRAINERM, JAKE
|
||||
@@ -24,20 +23,18 @@ TrainerCooltrainermJake: ; 0x1a4d1f
|
||||
|
||||
; script when talk again
|
||||
dw CooltrainermJakeScript
|
||||
; 0x1a4d2b
|
||||
|
||||
CooltrainermJakeScript: ; 0x1a4d2b
|
||||
CooltrainermJakeScript:
|
||||
talkaftercancel
|
||||
loadfont
|
||||
writetext UnknownText_0x1a4f08
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0x1a4d33
|
||||
|
||||
TrainerCooltrainermGaven3: ; 0x1a4d33
|
||||
TrainerCooltrainermGaven3:
|
||||
; bit/flag number
|
||||
dw $551
|
||||
dw EVENT_BEAT_COOLTRAINERM_GAVEN
|
||||
|
||||
; trainer group && trainer id
|
||||
db COOLTRAINERM, GAVEN3
|
||||
@@ -53,9 +50,8 @@ TrainerCooltrainermGaven3: ; 0x1a4d33
|
||||
|
||||
; script when talk again
|
||||
dw CooltrainermGaven3Script
|
||||
; 0x1a4d3f
|
||||
|
||||
CooltrainermGaven3Script: ; 0x1a4d3f
|
||||
CooltrainermGaven3Script:
|
||||
writecode VAR_CALLERID, $b
|
||||
talkaftercancel
|
||||
loadfont
|
||||
@@ -70,96 +66,84 @@ CooltrainermGaven3Script: ; 0x1a4d3f
|
||||
setevent $026b
|
||||
scall UnknownScript_0x1a4dbf
|
||||
jump UnknownScript_0x1a4d65
|
||||
; 0x1a4d62
|
||||
|
||||
UnknownScript_0x1a4d62: ; 0x1a4d62
|
||||
UnknownScript_0x1a4d62:
|
||||
scall UnknownScript_0x1a4dc3
|
||||
UnknownScript_0x1a4d65: ; 0x1a4d65
|
||||
UnknownScript_0x1a4d65:
|
||||
askforphonenumber $b
|
||||
if_equal $1, UnknownScript_0x1a4dd3
|
||||
if_equal $2, UnknownScript_0x1a4dcf
|
||||
trainertotext COOLTRAINERM, GAVEN3, $0
|
||||
scall UnknownScript_0x1a4dc7
|
||||
jump UnknownScript_0x1a4dcb
|
||||
; 0x1a4d79
|
||||
|
||||
UnknownScript_0x1a4d79: ; 0x1a4d79
|
||||
UnknownScript_0x1a4d79:
|
||||
scall UnknownScript_0x1a4dd7
|
||||
winlosstext CooltrainermGaven3BeatenText, $0000
|
||||
copybytetovar wd9f5
|
||||
if_equal $2, UnknownScript_0x1a4d90
|
||||
if_equal $1, UnknownScript_0x1a4d96
|
||||
if_equal $0, UnknownScript_0x1a4d9c
|
||||
UnknownScript_0x1a4d90: ; 0x1a4d90
|
||||
UnknownScript_0x1a4d90:
|
||||
checkevent EVENT_RESTORED_POWER_TO_KANTO
|
||||
iftrue UnknownScript_0x1a4db6
|
||||
UnknownScript_0x1a4d96: ; 0x1a4d96
|
||||
UnknownScript_0x1a4d96:
|
||||
checkevent EVENT_BEAT_ELITE_FOUR
|
||||
iftrue UnknownScript_0x1a4da9
|
||||
UnknownScript_0x1a4d9c: ; 0x1a4d9c
|
||||
UnknownScript_0x1a4d9c:
|
||||
loadtrainer COOLTRAINERM, GAVEN3
|
||||
startbattle
|
||||
returnafterbattle
|
||||
loadvar wd9f5, $1
|
||||
clearflag $0067
|
||||
end
|
||||
; 0x1a4da9
|
||||
|
||||
UnknownScript_0x1a4da9: ; 0x1a4da9
|
||||
UnknownScript_0x1a4da9:
|
||||
loadtrainer COOLTRAINERM, GAVEN1
|
||||
startbattle
|
||||
returnafterbattle
|
||||
loadvar wd9f5, $2
|
||||
clearflag $0067
|
||||
end
|
||||
; 0x1a4db6
|
||||
|
||||
UnknownScript_0x1a4db6: ; 0x1a4db6
|
||||
UnknownScript_0x1a4db6:
|
||||
loadtrainer COOLTRAINERM, GAVEN2
|
||||
startbattle
|
||||
returnafterbattle
|
||||
clearflag $0067
|
||||
end
|
||||
; 0x1a4dbf
|
||||
|
||||
UnknownScript_0x1a4dbf: ; 0x1a4dbf
|
||||
UnknownScript_0x1a4dbf:
|
||||
jumpstd asknumber1m
|
||||
end
|
||||
; 0x1a4dc3
|
||||
|
||||
UnknownScript_0x1a4dc3: ; 0x1a4dc3
|
||||
UnknownScript_0x1a4dc3:
|
||||
jumpstd asknumber2m
|
||||
end
|
||||
; 0x1a4dc7
|
||||
|
||||
UnknownScript_0x1a4dc7: ; 0x1a4dc7
|
||||
UnknownScript_0x1a4dc7:
|
||||
jumpstd registerednumberm
|
||||
end
|
||||
; 0x1a4dcb
|
||||
|
||||
UnknownScript_0x1a4dcb: ; 0x1a4dcb
|
||||
UnknownScript_0x1a4dcb:
|
||||
jumpstd numberacceptedm
|
||||
end
|
||||
; 0x1a4dcf
|
||||
|
||||
UnknownScript_0x1a4dcf: ; 0x1a4dcf
|
||||
UnknownScript_0x1a4dcf:
|
||||
jumpstd numberdeclinedm
|
||||
end
|
||||
; 0x1a4dd3
|
||||
|
||||
UnknownScript_0x1a4dd3: ; 0x1a4dd3
|
||||
UnknownScript_0x1a4dd3:
|
||||
jumpstd phonefullm
|
||||
end
|
||||
; 0x1a4dd7
|
||||
|
||||
UnknownScript_0x1a4dd7: ; 0x1a4dd7
|
||||
UnknownScript_0x1a4dd7:
|
||||
jumpstd rematchm
|
||||
end
|
||||
; 0x1a4ddb
|
||||
|
||||
TrainerCooltrainerfJoyce: ; 0x1a4ddb
|
||||
TrainerCooltrainerfJoyce:
|
||||
; bit/flag number
|
||||
dw $562
|
||||
dw EVENT_BEAT_COOLTRAINERF_JOYCE
|
||||
|
||||
; trainer group && trainer id
|
||||
db COOLTRAINERF, JOYCE
|
||||
@@ -175,20 +159,18 @@ TrainerCooltrainerfJoyce: ; 0x1a4ddb
|
||||
|
||||
; script when talk again
|
||||
dw CooltrainerfJoyceScript
|
||||
; 0x1a4de7
|
||||
|
||||
CooltrainerfJoyceScript: ; 0x1a4de7
|
||||
CooltrainerfJoyceScript:
|
||||
talkaftercancel
|
||||
loadfont
|
||||
writetext UnknownText_0x1a50d7
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0x1a4def
|
||||
|
||||
TrainerCooltrainerfBeth1: ; 0x1a4def
|
||||
TrainerCooltrainerfBeth1:
|
||||
; bit/flag number
|
||||
dw $563
|
||||
dw EVENT_BEAT_COOLTRAINERF_BETH
|
||||
|
||||
; trainer group && trainer id
|
||||
db COOLTRAINERF, BETH1
|
||||
@@ -204,9 +186,8 @@ TrainerCooltrainerfBeth1: ; 0x1a4def
|
||||
|
||||
; script when talk again
|
||||
dw CooltrainerfBeth1Script
|
||||
; 0x1a4dfb
|
||||
|
||||
CooltrainerfBeth1Script: ; 0x1a4dfb
|
||||
CooltrainerfBeth1Script:
|
||||
writecode VAR_CALLERID, $c
|
||||
talkaftercancel
|
||||
loadfont
|
||||
@@ -221,96 +202,84 @@ CooltrainerfBeth1Script: ; 0x1a4dfb
|
||||
setevent $026d
|
||||
scall UnknownScript_0x1a4e7b
|
||||
jump UnknownScript_0x1a4e21
|
||||
; 0x1a4e1e
|
||||
|
||||
UnknownScript_0x1a4e1e: ; 0x1a4e1e
|
||||
UnknownScript_0x1a4e1e:
|
||||
scall UnknownScript_0x1a4e7f
|
||||
UnknownScript_0x1a4e21: ; 0x1a4e21
|
||||
UnknownScript_0x1a4e21:
|
||||
askforphonenumber $c
|
||||
if_equal $1, UnknownScript_0x1a4e8f
|
||||
if_equal $2, UnknownScript_0x1a4e8b
|
||||
trainertotext COOLTRAINERF, BETH1, $0
|
||||
scall UnknownScript_0x1a4e83
|
||||
jump UnknownScript_0x1a4e87
|
||||
; 0x1a4e35
|
||||
|
||||
UnknownScript_0x1a4e35: ; 0x1a4e35
|
||||
UnknownScript_0x1a4e35:
|
||||
scall UnknownScript_0x1a4e93
|
||||
winlosstext CooltrainerfBeth1BeatenText, $0000
|
||||
copybytetovar wd9f6
|
||||
if_equal $2, UnknownScript_0x1a4e4c
|
||||
if_equal $1, UnknownScript_0x1a4e52
|
||||
if_equal $0, UnknownScript_0x1a4e58
|
||||
UnknownScript_0x1a4e4c: ; 0x1a4e4c
|
||||
UnknownScript_0x1a4e4c:
|
||||
checkevent EVENT_RESTORED_POWER_TO_KANTO
|
||||
iftrue UnknownScript_0x1a4e72
|
||||
UnknownScript_0x1a4e52: ; 0x1a4e52
|
||||
UnknownScript_0x1a4e52:
|
||||
checkevent EVENT_BEAT_ELITE_FOUR
|
||||
iftrue UnknownScript_0x1a4e65
|
||||
UnknownScript_0x1a4e58: ; 0x1a4e58
|
||||
UnknownScript_0x1a4e58:
|
||||
loadtrainer COOLTRAINERF, BETH1
|
||||
startbattle
|
||||
returnafterbattle
|
||||
loadvar wd9f6, $1
|
||||
clearflag $0068
|
||||
end
|
||||
; 0x1a4e65
|
||||
|
||||
UnknownScript_0x1a4e65: ; 0x1a4e65
|
||||
UnknownScript_0x1a4e65:
|
||||
loadtrainer COOLTRAINERF, BETH2
|
||||
startbattle
|
||||
returnafterbattle
|
||||
loadvar wd9f6, $2
|
||||
clearflag $0068
|
||||
end
|
||||
; 0x1a4e72
|
||||
|
||||
UnknownScript_0x1a4e72: ; 0x1a4e72
|
||||
UnknownScript_0x1a4e72:
|
||||
loadtrainer COOLTRAINERF, BETH3
|
||||
startbattle
|
||||
returnafterbattle
|
||||
clearflag $0068
|
||||
end
|
||||
; 0x1a4e7b
|
||||
|
||||
UnknownScript_0x1a4e7b: ; 0x1a4e7b
|
||||
UnknownScript_0x1a4e7b:
|
||||
jumpstd asknumber1f
|
||||
end
|
||||
; 0x1a4e7f
|
||||
|
||||
UnknownScript_0x1a4e7f: ; 0x1a4e7f
|
||||
UnknownScript_0x1a4e7f:
|
||||
jumpstd asknumber2f
|
||||
end
|
||||
; 0x1a4e83
|
||||
|
||||
UnknownScript_0x1a4e83: ; 0x1a4e83
|
||||
UnknownScript_0x1a4e83:
|
||||
jumpstd registerednumberf
|
||||
end
|
||||
; 0x1a4e87
|
||||
|
||||
UnknownScript_0x1a4e87: ; 0x1a4e87
|
||||
UnknownScript_0x1a4e87:
|
||||
jumpstd numberacceptedf
|
||||
end
|
||||
; 0x1a4e8b
|
||||
|
||||
UnknownScript_0x1a4e8b: ; 0x1a4e8b
|
||||
UnknownScript_0x1a4e8b:
|
||||
jumpstd numberdeclinedf
|
||||
end
|
||||
; 0x1a4e8f
|
||||
|
||||
UnknownScript_0x1a4e8f: ; 0x1a4e8f
|
||||
UnknownScript_0x1a4e8f:
|
||||
jumpstd phonefullf
|
||||
end
|
||||
; 0x1a4e93
|
||||
|
||||
UnknownScript_0x1a4e93: ; 0x1a4e93
|
||||
UnknownScript_0x1a4e93:
|
||||
jumpstd rematchf
|
||||
end
|
||||
; 0x1a4e97
|
||||
|
||||
TrainerPsychicRichard: ; 0x1a4e97
|
||||
TrainerPsychicRichard:
|
||||
; bit/flag number
|
||||
dw $442
|
||||
dw EVENT_BEAT_PSYCHIC_RICHARD
|
||||
|
||||
; trainer group && trainer id
|
||||
db PSYCHIC_T, RICHARD
|
||||
@@ -326,20 +295,18 @@ TrainerPsychicRichard: ; 0x1a4e97
|
||||
|
||||
; script when talk again
|
||||
dw PsychicRichardScript
|
||||
; 0x1a4ea3
|
||||
|
||||
PsychicRichardScript: ; 0x1a4ea3
|
||||
PsychicRichardScript:
|
||||
talkaftercancel
|
||||
loadfont
|
||||
writetext UnknownText_0x1a5278
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0x1a4eab
|
||||
|
||||
TrainerFisherScott: ; 0x1a4eab
|
||||
TrainerFisherScott:
|
||||
; bit/flag number
|
||||
dw $462
|
||||
dw EVENT_BEAT_FISHER_SCOTT
|
||||
|
||||
; trainer group && trainer id
|
||||
db FISHER, SCOTT
|
||||
@@ -355,44 +322,37 @@ TrainerFisherScott: ; 0x1a4eab
|
||||
|
||||
; script when talk again
|
||||
dw FisherScottScript
|
||||
; 0x1a4eb7
|
||||
|
||||
FisherScottScript: ; 0x1a4eb7
|
||||
FisherScottScript:
|
||||
talkaftercancel
|
||||
loadfont
|
||||
writetext UnknownText_0x1a5326
|
||||
closetext
|
||||
loadmovesprites
|
||||
end
|
||||
; 0x1a4ebf
|
||||
|
||||
MapRoute26Signpost0Script: ; 0x1a4ebf
|
||||
MapRoute26Signpost0Script:
|
||||
jumptext UnknownText_0x1a5364
|
||||
; 0x1a4ec2
|
||||
|
||||
FruitTreeScript_0x1a4ec2: ; 0x1a4ec2
|
||||
FruitTreeScript_0x1a4ec2:
|
||||
fruittree $e
|
||||
; 0x1a4ec4
|
||||
|
||||
ItemFragment_0x1a4ec4: ; 0x1a4ec4
|
||||
ItemFragment_0x1a4ec4:
|
||||
db MAX_ELIXER, 1
|
||||
; 0x1a4ec6
|
||||
|
||||
CooltrainermJakeSeenText: ; 0x1a4ec6
|
||||
CooltrainermJakeSeenText:
|
||||
text "I'm making my"
|
||||
line "final preparations"
|
||||
|
||||
para "for the #MON"
|
||||
line "LEAGUE."
|
||||
done
|
||||
; 0x1a4efc
|
||||
|
||||
CooltrainermJakeBeatenText: ; 0x1a4efc
|
||||
CooltrainermJakeBeatenText:
|
||||
text "I blew it!"
|
||||
done
|
||||
; 0x1a4f08
|
||||
|
||||
UnknownText_0x1a4f08: ; 0x1a4f08
|
||||
UnknownText_0x1a4f08:
|
||||
text "It's going to be"
|
||||
line "tough to win at"
|
||||
cont "the LEAGUE."
|
||||
@@ -406,22 +366,19 @@ UnknownText_0x1a4f08: ; 0x1a4f08
|
||||
para "FOUR are tougher"
|
||||
line "than GYM LEADERS."
|
||||
done
|
||||
; 0x1a4f97
|
||||
|
||||
CooltrainermGaven3SeenText: ; 0x1a4f97
|
||||
CooltrainermGaven3SeenText:
|
||||
text "By experiencing"
|
||||
line "tough battles, you"
|
||||
cont "gain power."
|
||||
done
|
||||
; 0x1a4fc7
|
||||
|
||||
CooltrainermGaven3BeatenText: ; 0x1a4fc7
|
||||
CooltrainermGaven3BeatenText:
|
||||
text "Gaah! Life is even"
|
||||
line "tougher!"
|
||||
done
|
||||
; 0x1a4fe4
|
||||
|
||||
UnknownText_0x1a4fe4: ; 0x1a4fe4
|
||||
UnknownText_0x1a4fe4:
|
||||
text "To get to #MON"
|
||||
line "LEAGUE, you have"
|
||||
|
||||
@@ -434,9 +391,8 @@ UnknownText_0x1a4fe4: ; 0x1a4fe4
|
||||
para "Practically nobody"
|
||||
line "goes there!"
|
||||
done
|
||||
; 0x1a505c
|
||||
|
||||
CooltrainerfJoyceSeenText: ; 0x1a505c
|
||||
CooltrainerfJoyceSeenText:
|
||||
text "Since you've come"
|
||||
line "this far, you must"
|
||||
cont "be good."
|
||||
@@ -445,15 +401,13 @@ CooltrainerfJoyceSeenText: ; 0x1a505c
|
||||
line "this battle every-"
|
||||
cont "thing I've got!"
|
||||
done
|
||||
; 0x1a50bd
|
||||
|
||||
CooltrainerfJoyceBeatenText: ; 0x1a50bd
|
||||
CooltrainerfJoyceBeatenText:
|
||||
text "No! I don't"
|
||||
line "believe this!"
|
||||
done
|
||||
; 0x1a50d7
|
||||
|
||||
UnknownText_0x1a50d7: ; 0x1a50d7
|
||||
UnknownText_0x1a50d7:
|
||||
text "I've defeated"
|
||||
line "eight GYM LEADERS,"
|
||||
|
||||
@@ -463,9 +417,8 @@ UnknownText_0x1a50d7: ; 0x1a50d7
|
||||
para "I'll have to try"
|
||||
line "harder next time."
|
||||
done
|
||||
; 0x1a5136
|
||||
|
||||
CooltrainerfBeth1SeenText: ; 0x1a5136
|
||||
CooltrainerfBeth1SeenText:
|
||||
text "I lost to a train-"
|
||||
line "er named <RIVAL>."
|
||||
|
||||
@@ -479,22 +432,19 @@ CooltrainerfBeth1SeenText: ; 0x1a5136
|
||||
para "I felt sorry for"
|
||||
line "his #MON."
|
||||
done
|
||||
; 0x1a51bf
|
||||
|
||||
CooltrainerfBeth1BeatenText: ; 0x1a51bf
|
||||
CooltrainerfBeth1BeatenText:
|
||||
text "#MON aren't"
|
||||
line "tools of war."
|
||||
done
|
||||
; 0x1a51d9
|
||||
|
||||
UnknownText_0x1a51d9: ; 0x1a51d9
|
||||
UnknownText_0x1a51d9:
|
||||
text "#MON are in-"
|
||||
line "valuable, lifelong"
|
||||
cont "partners."
|
||||
done
|
||||
; 0x1a5204
|
||||
|
||||
PsychicRichardSeenText: ; 0x1a5204
|
||||
PsychicRichardSeenText:
|
||||
text "Wow, look at all"
|
||||
line "those BADGES!"
|
||||
cont "I'm impressed."
|
||||
@@ -505,14 +455,12 @@ PsychicRichardSeenText: ; 0x1a5204
|
||||
para "collecting them,"
|
||||
line "right?"
|
||||
done
|
||||
; 0x1a526a
|
||||
|
||||
PsychicRichardBeatenText: ; 0x1a526a
|
||||
PsychicRichardBeatenText:
|
||||
text "Good battle!"
|
||||
done
|
||||
; 0x1a5278
|
||||
|
||||
UnknownText_0x1a5278: ; 0x1a5278
|
||||
UnknownText_0x1a5278:
|
||||
text "People and #MON"
|
||||
line "grow from their"
|
||||
cont "experiences."
|
||||
@@ -520,9 +468,8 @@ UnknownText_0x1a5278: ; 0x1a5278
|
||||
para "Don't get lazy and"
|
||||
line "complacent."
|
||||
done
|
||||
; 0x1a52c4
|
||||
|
||||
FisherScottSeenText: ; 0x1a52c4
|
||||
FisherScottSeenText:
|
||||
text "I'm feeling great"
|
||||
line "today!"
|
||||
|
||||
@@ -530,32 +477,28 @@ FisherScottSeenText: ; 0x1a52c4
|
||||
line "could boot even"
|
||||
cont "the LEAGUE CHAMP!"
|
||||
done
|
||||
; 0x1a530d
|
||||
|
||||
FisherScottBeatenText: ; 0x1a530d
|
||||
FisherScottBeatenText:
|
||||
text "No! Not in this"
|
||||
line "battle!"
|
||||
done
|
||||
; 0x1a5326
|
||||
|
||||
UnknownText_0x1a5326: ; 0x1a5326
|
||||
UnknownText_0x1a5326:
|
||||
text "Just like in fish-"
|
||||
line "ing, it's all over"
|
||||
|
||||
para "in #MON if you"
|
||||
line "give up."
|
||||
done
|
||||
; 0x1a5364
|
||||
|
||||
UnknownText_0x1a5364: ; 0x1a5364
|
||||
UnknownText_0x1a5364:
|
||||
text "ROUTE 26"
|
||||
|
||||
para "#MON LEAGUE"
|
||||
line "RECEPTION GATE"
|
||||
done
|
||||
; 0x1a5389
|
||||
|
||||
Route26_MapEventHeader: ; 0x1a5389
|
||||
Route26_MapEventHeader:
|
||||
; filler
|
||||
db 0, 0
|
||||
|
||||
@@ -582,4 +525,3 @@ Route26_MapEventHeader: ; 0x1a5389
|
||||
person_event SPRITE_FISHER, 96, 14, $6, $0, 255, 255, $a2, 3, TrainerFisherScott, $ffff
|
||||
person_event SPRITE_FRUIT_TREE, 58, 18, $1, $0, 255, 255, $0, 0, FruitTreeScript_0x1a4ec2, $ffff
|
||||
person_event SPRITE_POKE_BALL, 19, 13, $1, $0, 255, 255, $1, 0, ItemFragment_0x1a4ec4, $06aa
|
||||
; 0x1a540b
|
||||
|
Reference in New Issue
Block a user