Document Pokemon Mansion scripts

This commit is contained in:
GriffinR
2020-01-14 18:58:52 -05:00
parent 8c560386ed
commit 0999b55beb
15 changed files with 306 additions and 268 deletions
+3 -3
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 4,
"script": "PokemonMansion_1F_EventScript_162226",
"script": "PokemonMansion_1F_EventScript_Ted",
"flag": "0"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 1,
"script": "PokemonMansion_1F_EventScript_16223D",
"script": "PokemonMansion_1F_EventScript_Johnson",
"flag": "0"
}
],
@@ -158,7 +158,7 @@
"x": 5,
"y": 5,
"elevation": 0,
"script": "PokemonMansion_1F_EventScript_162212"
"script": "PokemonMansion_1F_EventScript_Statue"
},
{
"type": "hidden_item",
+9 -9
View File
@@ -4,29 +4,29 @@ PokemonMansion_1F_MapScripts:: @ 81621F9
.byte 0
PokemonMansion_1F_OnLoad:: @ 8162204
call_if_set FLAG_POKEMON_MANSION_SWITCH_STATE, EventScript_1A7B7A
call_if_set FLAG_POKEMON_MANSION_SWITCH_STATE, PokemonMansion_EventScript_PressSwitch_1F
end
PokemonMansion_1F_OnTransition:: @ 816220E
setworldmapflag FLAG_WORLD_MAP_POKEMON_MANSION_1F
end
PokemonMansion_1F_EventScript_162212:: @ 8162212
PokemonMansion_1F_EventScript_Statue:: @ 8162212
lockall
setvar VAR_0x8004, 0
call EventScript_1A7AE2
call PokemonMansion_EventScript_SecretSwitch
playse SE_KI_GASYAN
special DrawWholeMapView
waitse
releaseall
end
PokemonMansion_1F_EventScript_162226:: @ 8162226
trainerbattle_single TRAINER_SCIENTIST_TED, Text_177364, Text_177391
msgbox gUnknown_8177397, MSGBOX_AUTOCLOSE
PokemonMansion_1F_EventScript_Ted:: @ 8162226
trainerbattle_single TRAINER_SCIENTIST_TED, PokemonMansion_1F_Text_TedIntro, PokemonMansion_1F_Text_TedDefeat
msgbox PokemonMansion_1F_Text_TedPostBattle, MSGBOX_AUTOCLOSE
end
PokemonMansion_1F_EventScript_16223D:: @ 816223D
trainerbattle_single TRAINER_YOUNGSTER_JOHNSON, Text_1773C6, Text_1773FD
msgbox gUnknown_8177418, MSGBOX_AUTOCLOSE
PokemonMansion_1F_EventScript_Johnson:: @ 816223D
trainerbattle_single TRAINER_YOUNGSTER_JOHNSON, PokemonMansion_1F_Text_JohnsonIntro, PokemonMansion_1F_Text_JohnsonDefeat
msgbox PokemonMansion_1F_Text_JohnsonPostBattle, MSGBOX_AUTOCLOSE
end
+6 -6
View File
@@ -1,23 +1,23 @@
Text_177364:: @ 8177364
PokemonMansion_1F_Text_TedIntro:: @ 8177364
.string "Who are you?\n"
.string "There shouldn't be anyone here.$"
Text_177391:: @ 8177391
PokemonMansion_1F_Text_TedDefeat:: @ 8177391
.string "Ouch!$"
gUnknown_8177397:: @ 8177397
PokemonMansion_1F_Text_TedPostBattle:: @ 8177397
.string "A key? I don't know what you're\n"
.string "talking about.$"
Text_1773C6:: @ 81773C6
PokemonMansion_1F_Text_JohnsonIntro:: @ 81773C6
.string "W-w-waah! You startled me!\n"
.string "I thought you were a ghost.$"
Text_1773FD:: @ 81773FD
PokemonMansion_1F_Text_JohnsonDefeat:: @ 81773FD
.string "Tch!\n"
.string "I can't get any wins.$"
gUnknown_8177418:: @ 8177418
PokemonMansion_1F_Text_JohnsonPostBattle:: @ 8177418
.string "I was exploring here by myself,\n"
.string "but I feel spooked.\p"
.string "I ought to go soon.$"