Document early route scripts

This commit is contained in:
Marcus Huderle
2019-10-22 15:53:49 -05:00
committed by huderlem
parent a4d6ce417d
commit 4fd848e689
10 changed files with 335 additions and 335 deletions

View File

@@ -35,7 +35,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route102_EventScript_1EC0E1",
"script": "Route102_EventScript_LittleBoy",
"flag": "0"
},
{
@@ -48,7 +48,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route102_EventScript_1EC105",
"script": "Route102_EventScript_Calvin",
"flag": "0"
},
{
@@ -61,7 +61,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route102_EventScript_1EC1B3",
"script": "Route102_EventScript_Rick",
"flag": "0"
},
{
@@ -74,7 +74,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route102_EventScript_1EC1CA",
"script": "Route102_EventScript_Tiana",
"flag": "0"
},
{
@@ -87,7 +87,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route102_EventScript_1EC0FC",
"script": "Route102_EventScript_Boy",
"flag": "0"
},
{
@@ -139,7 +139,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route102_EventScript_1EC1E1",
"script": "Route102_EventScript_Allen",
"flag": "0"
}
],
@@ -152,7 +152,7 @@
"y": 2,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route102_EventScript_1EC0F3"
"script": "Route102_EventScript_RouteSignPetalburg"
},
{
"type": "sign",
@@ -160,7 +160,7 @@
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route102_EventScript_1EC0EA"
"script": "Route102_EventScript_RouteSignOldale"
}
]
}

View File

@@ -1,78 +1,78 @@
Route102_MapScripts:: @ 81EC0E0
.byte 0
Route102_EventScript_1EC0E1:: @ 81EC0E1
msgbox Route102_Text_1EC2C0, MSGBOX_NPC
Route102_EventScript_LittleBoy:: @ 81EC0E1
msgbox Route102_Text_ImNotVeryTall, MSGBOX_NPC
end
Route102_EventScript_1EC0EA:: @ 81EC0EA
msgbox Route102_Text_1EC35B, MSGBOX_SIGN
Route102_EventScript_RouteSignOldale:: @ 81EC0EA
msgbox Route102_Text_RouteSignOldale, MSGBOX_SIGN
end
Route102_EventScript_1EC0F3:: @ 81EC0F3
msgbox Route102_Text_1EC373, MSGBOX_SIGN
Route102_EventScript_RouteSignPetalburg:: @ 81EC0F3
msgbox Route102_Text_RouteSignPetalburg, MSGBOX_SIGN
end
Route102_EventScript_1EC0FC:: @ 81EC0FC
msgbox Route102_Text_1EC32E, MSGBOX_NPC
Route102_EventScript_Boy:: @ 81EC0FC
msgbox Route102_Text_CatchWholeBunchOfPokemon, MSGBOX_NPC
end
Route102_EventScript_1EC105:: @ 81EC105
trainerbattle_single TRAINER_CALVIN_1, Route102_Text_294513, Route102_Text_29457C, Route102_EventScript_1EC146
Route102_EventScript_Calvin:: @ 81EC105
trainerbattle_single TRAINER_CALVIN_1, Route102_Text_CalvinIntro, Route102_Text_CalvinDefeated, Route102_EventScript_CalvinRegisterMatchCallAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_if_eq Route102_EventScript_1EC19C
compare VAR_RESULT, TRUE
goto_if_eq Route102_EventScript_CalvinRematch
setvar VAR_0x8004, TRAINER_CALVIN_1
specialvar VAR_RESULT, IsTrainerRegistered
compare VAR_RESULT, 0
goto_if_eq Route102_EventScript_1EC170
msgbox Route102_Text_2945AC, MSGBOX_DEFAULT
compare VAR_RESULT, FALSE
goto_if_eq Route102_EventScript_CalvinTryRegister
msgbox Route102_Text_CalvinPostBattle, MSGBOX_DEFAULT
release
end
Route102_EventScript_1EC146:: @ 81EC146
Route102_EventScript_CalvinRegisterMatchCallAfterBattle:: @ 81EC146
special sub_80B4808
waitmovement 0
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_1EC157
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_CalvinRegisterMatchCall
release
end
Route102_EventScript_1EC157:: @ 81EC157
msgbox Route102_Text_294668, MSGBOX_DEFAULT
Route102_EventScript_CalvinRegisterMatchCall:: @ 81EC157
msgbox Route102_Text_CalvinRegisterShort, MSGBOX_DEFAULT
register_matchcall TRAINER_CALVIN_1
release
end
Route102_EventScript_1EC170:: @ 81EC170
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_1EC183
msgbox Route102_Text_2945AC, MSGBOX_DEFAULT
Route102_EventScript_CalvinTryRegister:: @ 81EC170
goto_if_set FLAG_HAS_MATCH_CALL, Route102_EventScript_CalvinRegister
msgbox Route102_Text_CalvinPostBattle, MSGBOX_DEFAULT
release
end
Route102_EventScript_1EC183:: @ 81EC183
msgbox Route102_Text_2945EB, MSGBOX_DEFAULT
Route102_EventScript_CalvinRegister:: @ 81EC183
msgbox Route102_Text_CalvinRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_CALVIN_1
release
end
Route102_EventScript_1EC19C:: @ 81EC19C
trainerbattle_rematch TRAINER_CALVIN_1, Route102_Text_2946AE, Route102_Text_29470C
msgbox Route102_Text_29473C, MSGBOX_AUTOCLOSE
Route102_EventScript_CalvinRematch:: @ 81EC19C
trainerbattle_rematch TRAINER_CALVIN_1, Route102_Text_CalvinRematchIntro, Route102_Text_CalvinRematchDefeated
msgbox Route102_Text_CalvinRematchPostBattle, MSGBOX_AUTOCLOSE
end
Route102_EventScript_1EC1B3:: @ 81EC1B3
trainerbattle_single TRAINER_RICK, Route102_Text_29480C, Route102_Text_294847
msgbox Route102_Text_294859, MSGBOX_AUTOCLOSE
Route102_EventScript_Rick:: @ 81EC1B3
trainerbattle_single TRAINER_RICK, Route102_Text_RickIntro, Route102_Text_RickDefeated
msgbox Route102_Text_RickPostBattle, MSGBOX_AUTOCLOSE
end
Route102_EventScript_1EC1CA:: @ 81EC1CA
trainerbattle_single TRAINER_TIANA, Route102_Text_29489E, Route102_Text_2948F3
msgbox Route102_Text_294916, MSGBOX_AUTOCLOSE
Route102_EventScript_Tiana:: @ 81EC1CA
trainerbattle_single TRAINER_TIANA, Route102_Text_TianaIntro, Route102_Text_TianaDefeated
msgbox Route102_Text_TianaPostBattle, MSGBOX_AUTOCLOSE
end
Route102_EventScript_1EC1E1:: @ 81EC1E1
trainerbattle_single TRAINER_ALLEN, Route102_Text_294775, Route102_Text_2947AA
msgbox Route102_Text_2947DB, MSGBOX_AUTOCLOSE
Route102_EventScript_Allen:: @ 81EC1E1
trainerbattle_single TRAINER_ALLEN, Route102_Text_AllenIntro, Route102_Text_AllenDefeated
msgbox Route102_Text_AllenPostBattle, MSGBOX_AUTOCLOSE
end
Route102_Text_WatchMeCatchPokemon: @ 81EC1F8
@@ -91,21 +91,21 @@ Route102_Text_LetsGoBack: @ 81EC297
.string "{PLAYER}, thank you!\n"
.string "Let's go back to the GYM!$"
Route102_Text_1EC2C0: @ 81EC2C0
Route102_Text_ImNotVeryTall: @ 81EC2C0
.string "I'm…not very tall, so I sink right\n"
.string "into tall grass.\p"
.string "The grass goes up my nose and…\n"
.string "Fwafwafwafwafwa…\p"
.string "Fwatchoo!$"
Route102_Text_1EC32E: @ 81EC32E
Route102_Text_CatchWholeBunchOfPokemon: @ 81EC32E
.string "I'm going to catch a whole bunch of\n"
.string "POKéMON!$"
Route102_Text_1EC35B: @ 81EC35B
Route102_Text_RouteSignOldale: @ 81EC35B
.string "ROUTE 102\n"
.string "{RIGHT_ARROW} OLDALE TOWN$"
Route102_Text_1EC373: @ 81EC373
Route102_Text_RouteSignPetalburg: @ 81EC373
.string "ROUTE 102\n"
.string "{LEFT_ARROW} PETALBURG CITY$"