Document Pewter City scripts

This commit is contained in:
GriffinR
2020-01-14 02:56:19 -05:00
parent 8c560386ed
commit f5683ae4d8
27 changed files with 646 additions and 1362 deletions
+12 -12
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PewterCity_Museum_1F_EventScript_16A31B",
"script": "PewterCity_Museum_1F_EventScript_Scientist1",
"flag": "0"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PewterCity_Museum_1F_EventScript_16A4A5",
"script": "PewterCity_Museum_1F_EventScript_OldMan",
"flag": "0"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PewterCity_Museum_1F_EventScript_16A4AE",
"script": "PewterCity_Museum_1F_EventScript_OldAmberScientist",
"flag": "0"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PewterCity_Museum_1F_EventScript_16A509",
"script": "PewterCity_Museum_1F_EventScript_OldAmber",
"flag": "FLAG_HIDE_OLD_AMBER"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "PewterCity_Museum_1F_EventScript_16A49C",
"script": "PewterCity_Museum_1F_EventScript_Scientist2",
"flag": "0"
},
{
@@ -144,7 +144,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F",
"var_value": 0,
"script": "PewterCity_Museum_1F_EventScript_16A38F"
"script": "PewterCity_Museum_1F_EventScript_EntranceTriggerLeft"
},
{
"type": "trigger",
@@ -153,7 +153,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F",
"var_value": 0,
"script": "PewterCity_Museum_1F_EventScript_16A3A5"
"script": "PewterCity_Museum_1F_EventScript_EntranceTriggerMid"
},
{
"type": "trigger",
@@ -162,7 +162,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F",
"var_value": 0,
"script": "PewterCity_Museum_1F_EventScript_16A3BB"
"script": "PewterCity_Museum_1F_EventScript_EntranceTriggerRight"
}
],
"bg_events": [
@@ -171,28 +171,28 @@
"x": 4,
"y": 4,
"elevation": 0,
"script": "PewterCity_Museum_1F_EventScript_16A512"
"script": "PewterCity_Museum_1F_EventScript_AerodactylFossil"
},
{
"type": "bg_event_type_0",
"x": 4,
"y": 7,
"elevation": 0,
"script": "PewterCity_Museum_1F_EventScript_16A532"
"script": "PewterCity_Museum_1F_EventScript_KabutopsFossil"
},
{
"type": "bg_event_type_1",
"x": 27,
"y": 1,
"elevation": 0,
"script": "PewterCity_Museum_1F_EventScript_1ACE1C"
"script": "PewterCity_Museum_1F_EventScript_PokemonJournalBrock"
},
{
"type": "bg_event_type_1",
"x": 26,
"y": 1,
"elevation": 0,
"script": "PewterCity_Museum_1F_EventScript_1ACE1C"
"script": "PewterCity_Museum_1F_EventScript_PokemonJournalBrock"
}
]
}
+62 -62
View File
@@ -1,200 +1,200 @@
PewterCity_Museum_1F_MapScripts:: @ 816A31A
.byte 0
PewterCity_Museum_1F_EventScript_16A31B:: @ 816A31B
PewterCity_Museum_1F_EventScript_Scientist1:: @ 816A31B
lock
faceplayer
compare VAR_FACING, DIR_WEST
goto_if_eq EventScript_16A348
goto_if_eq PewterCity_Museum_1F_EventScript_Scientist1BehindCounter
compare VAR_FACING, DIR_SOUTH
goto_if_eq EventScript_16A348
goto_if_eq PewterCity_Museum_1F_EventScript_Scientist1BehindCounter
compare VAR_FACING, DIR_NORTH
goto_if_eq EventScript_16A348
msgbox gUnknown_8190539
goto_if_eq PewterCity_Museum_1F_EventScript_Scientist1BehindCounter
msgbox PewterCity_Museum_1F_Text_PleaseEnjoyYourself
release
end
EventScript_16A348:: @ 816A348
msgbox gUnknown_8190550, MSGBOX_YESNO
PewterCity_Museum_1F_EventScript_Scientist1BehindCounter:: @ 816A348
msgbox PewterCity_Museum_1F_Text_DoYouKnowWhatAmberIs, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq EventScript_16A367
goto_if_eq PewterCity_Museum_1F_EventScript_AmberHasGeneticMatter
compare VAR_RESULT, NO
goto_if_eq EventScript_16A37B
goto_if_eq PewterCity_Museum_1F_EventScript_ExplainAmber
end
EventScript_16A367:: @ 816A367
msgbox gUnknown_81905B1
PewterCity_Museum_1F_EventScript_AmberHasGeneticMatter:: @ 816A367
msgbox PewterCity_Museum_1F_Text_AmberContainsGeneticMatter
applymovement 1, Movement_FaceOriginalDirection
waitmovement 0
release
end
EventScript_16A37B:: @ 816A37B
msgbox gUnknown_8190627
PewterCity_Museum_1F_EventScript_ExplainAmber:: @ 816A37B
msgbox PewterCity_Museum_1F_Text_AmberIsFossilizedSap
applymovement 1, Movement_FaceOriginalDirection
waitmovement 0
release
end
PewterCity_Museum_1F_EventScript_16A38F:: @ 816A38F
PewterCity_Museum_1F_EventScript_EntranceTriggerLeft:: @ 816A38F
lockall
setvar VAR_TEMP_1, 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
goto EventScript_16A3D1
goto PewterCity_Museum_1F_EventScript_EntranceTrigger
end
PewterCity_Museum_1F_EventScript_16A3A5:: @ 816A3A5
PewterCity_Museum_1F_EventScript_EntranceTriggerMid:: @ 816A3A5
lockall
setvar VAR_TEMP_1, 1
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
goto EventScript_16A3D1
goto PewterCity_Museum_1F_EventScript_EntranceTrigger
end
PewterCity_Museum_1F_EventScript_16A3BB:: @ 816A3BB
PewterCity_Museum_1F_EventScript_EntranceTriggerRight:: @ 816A3BB
lockall
setvar VAR_TEMP_1, 2
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
goto EventScript_16A3D1
goto PewterCity_Museum_1F_EventScript_EntranceTrigger
end
EventScript_16A3D1:: @ 816A3D1
PewterCity_Museum_1F_EventScript_EntranceTrigger:: @ 816A3D1
textcolor 0
showmoneybox 0, 0, 0
msgbox gUnknown_81904B5, MSGBOX_YESNO
msgbox PewterCity_Museum_1F_Text_Its50YForChildsTicket, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq EventScript_16A402
msgbox gUnknown_81904F9
goto_if_eq PewterCity_Museum_1F_EventScript_TryPayForTicket
msgbox PewterCity_Museum_1F_Text_ComeAgain
closemessage
hidemoneybox 0, 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_16A48E
applymovement OBJ_EVENT_ID_PLAYER, PewterCity_Museum_1F_Movement_ForcePlayerExit
waitmovement 0
releaseall
end
EventScript_16A402:: @ 816A402
PewterCity_Museum_1F_EventScript_TryPayForTicket:: @ 816A402
checkmoney 50, 0
compare VAR_RESULT, FALSE
goto_if_eq EventScript_16A476
goto_if_eq PewterCity_Museum_1F_EventScript_NotEnoughMoney
closemessage
compare VAR_TEMP_1, 0
call_if_eq EventScript_16A455
call_if_eq PewterCity_Museum_1F_EventScript_PlayerApproachCounterLeft
compare VAR_TEMP_1, 1
call_if_eq EventScript_16A460
call_if_eq PewterCity_Museum_1F_EventScript_PlayerApproachCounterMid
compare VAR_TEMP_1, 2
call_if_eq EventScript_16A46B
call_if_eq PewterCity_Museum_1F_EventScript_PlayerApproachCounterRight
playse SE_SHOP
takemoney 50, 0
updatemoneybox 0, 0, 0
waitse
msgbox gUnknown_8190505
msgbox PewterCity_Museum_1F_Text_Right50YThankYou
setvar VAR_MAP_SCENE_PEWTER_CITY_MUSEUM_1F, 1
hidemoneybox 0, 0
releaseall
end
EventScript_16A455:: @ 816A455
applymovement OBJ_EVENT_ID_PLAYER, Movement_16A490
PewterCity_Museum_1F_EventScript_PlayerApproachCounterLeft:: @ 816A455
applymovement OBJ_EVENT_ID_PLAYER, PewterCity_Museum_1F_Movement_ApproachCounterLeft
waitmovement 0
return
EventScript_16A460:: @ 816A460
applymovement OBJ_EVENT_ID_PLAYER, Movement_16A495
PewterCity_Museum_1F_EventScript_PlayerApproachCounterMid:: @ 816A460
applymovement OBJ_EVENT_ID_PLAYER, PewterCity_Museum_1F_Movement_ApproachCounterMid
waitmovement 0
return
EventScript_16A46B:: @ 816A46B
applymovement OBJ_EVENT_ID_PLAYER, Movement_16A499
PewterCity_Museum_1F_EventScript_PlayerApproachCounterRight:: @ 816A46B
applymovement OBJ_EVENT_ID_PLAYER, PewterCity_Museum_1F_Movement_ApproachCounterRight
waitmovement 0
return
EventScript_16A476:: @ 816A476
msgbox gUnknown_819051C
PewterCity_Museum_1F_EventScript_NotEnoughMoney:: @ 816A476
msgbox PewterCity_Museum_1F_Text_DontHaveEnoughMoney
closemessage
hidemoneybox 0, 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_16A48E
applymovement OBJ_EVENT_ID_PLAYER, PewterCity_Museum_1F_Movement_ForcePlayerExit
waitmovement 0
releaseall
end
Movement_16A48E:: @ 816A48E
PewterCity_Museum_1F_Movement_ForcePlayerExit:: @ 816A48E
walk_down
step_end
Movement_16A490:: @ 816A490
PewterCity_Museum_1F_Movement_ApproachCounterLeft:: @ 816A490
walk_right
walk_right
delay_8
walk_in_place_right
step_end
Movement_16A495:: @ 816A495
PewterCity_Museum_1F_Movement_ApproachCounterMid:: @ 816A495
walk_right
delay_8
walk_in_place_right
step_end
Movement_16A499:: @ 816A499
PewterCity_Museum_1F_Movement_ApproachCounterRight:: @ 816A499
delay_8
walk_in_place_right
step_end
PewterCity_Museum_1F_EventScript_16A49C:: @ 816A49C
msgbox gUnknown_81908CD, MSGBOX_NPC
PewterCity_Museum_1F_EventScript_Scientist2:: @ 816A49C
msgbox PewterCity_Museum_1F_Text_WeHaveTwoFossilsOnExhibit, MSGBOX_NPC
end
PewterCity_Museum_1F_EventScript_16A4A5:: @ 816A4A5
msgbox gUnknown_81906B4, MSGBOX_NPC
PewterCity_Museum_1F_EventScript_OldMan:: @ 816A4A5
msgbox PewterCity_Museum_1F_Text_ShouldBeGratefulForLongLife, MSGBOX_NPC
end
PewterCity_Museum_1F_EventScript_16A4AE:: @ 816A4AE
PewterCity_Museum_1F_EventScript_OldAmberScientist:: @ 816A4AE
lock
faceplayer
goto_if_set FLAG_GOT_OLD_AMBER, EventScript_16A4FF
msgbox gUnknown_8190717
goto_if_set FLAG_GOT_OLD_AMBER, PewterCity_Museum_1F_EventScript_AlreadyGotOldAmber
msgbox PewterCity_Museum_1F_Text_WantYouToGetAmberExamined
checkitemspace ITEM_OLD_AMBER, 1
compare VAR_RESULT, FALSE
goto_if_eq EventScript_16A4F5
goto_if_eq PewterCity_Museum_1F_EventScript_NoRoomForOldAmber
setflag FLAG_GOT_OLD_AMBER
removeobject 4
giveitem_msg gUnknown_8190866, ITEM_OLD_AMBER, 1, MUS_FAN5
giveitem_msg PewterCity_Museum_1F_Text_ReceivedOldAmberFromMan, ITEM_OLD_AMBER, 1, MUS_FAN5
release
end
EventScript_16A4F5:: @ 816A4F5
msgbox gUnknown_81908AE
PewterCity_Museum_1F_EventScript_NoRoomForOldAmber:: @ 816A4F5
msgbox PewterCity_Museum_1F_Text_DontHaveSpaceForThis
release
end
EventScript_16A4FF:: @ 816A4FF
msgbox gUnknown_819088E
PewterCity_Museum_1F_EventScript_AlreadyGotOldAmber:: @ 816A4FF
msgbox PewterCity_Museum_1F_Text_GetOldAmberChecked
release
end
PewterCity_Museum_1F_EventScript_16A509:: @ 816A509
msgbox gUnknown_819090A, MSGBOX_NPC
PewterCity_Museum_1F_EventScript_OldAmber:: @ 816A509
msgbox PewterCity_Museum_1F_Text_BeautifulPieceOfAmber, MSGBOX_NPC
end
PewterCity_Museum_1F_EventScript_16A512:: @ 816A512
PewterCity_Museum_1F_EventScript_AerodactylFossil:: @ 816A512
lockall
setvar VAR_0x8004, SPECIES_AERODACTYL
setvar VAR_0x8005, 10
setvar VAR_0x8006, 3
special Special_OpenMuseumFossilPic
msgbox gUnknown_8190945
msgbox PewterCity_Museum_1F_Text_AerodactylFossil
special Special_CloseMuseumFossilPic
releaseall
end
PewterCity_Museum_1F_EventScript_16A532:: @ 816A532
PewterCity_Museum_1F_EventScript_KabutopsFossil:: @ 816A532
lockall
setvar VAR_0x8004, SPECIES_KABUTOPS
setvar VAR_0x8005, 10
setvar VAR_0x8006, 3
special Special_OpenMuseumFossilPic
msgbox gUnknown_8190975
msgbox PewterCity_Museum_1F_Text_KabutopsFossil
special Special_CloseMuseumFossilPic
releaseall
end
+19 -18
View File
@@ -1,49 +1,50 @@
gUnknown_81904B5:: @ 81904B5
PewterCity_Museum_1F_Text_Its50YForChildsTicket:: @ 81904B5
.string "Yes, yes.\n"
.string "It's ¥50 for a child's ticket.\p"
.string "Would you like to come in?$"
gUnknown_81904F9:: @ 81904F9
PewterCity_Museum_1F_Text_ComeAgain:: @ 81904F9
.string "Come again!$"
gUnknown_8190505:: @ 8190505
PewterCity_Museum_1F_Text_Right50YThankYou:: @ 8190505
.string "Right, ¥50!\n"
.string "Thank you!$"
gUnknown_819051C:: @ 819051C
PewterCity_Museum_1F_Text_DontHaveEnoughMoney:: @ 819051C
.string "You don't have enough money.$"
gUnknown_8190539:: @ 8190539
PewterCity_Museum_1F_Text_PleaseEnjoyYourself:: @ 8190539
.string "Please enjoy yourself.$"
gUnknown_8190550:: @ 8190550
PewterCity_Museum_1F_Text_DoYouKnowWhatAmberIs:: @ 8190550
.string "You can't sneak in the back way!\n"
.string "Nice try, kid, but no.\p"
.string "Oh, whatever!\n"
.string "Do you know what AMBER is?$"
gUnknown_81905B1:: @ 81905B1
PewterCity_Museum_1F_Text_AmberContainsGeneticMatter:: @ 81905B1
.string "AMBER contains the genetic matter\n"
.string "of ancient POKéMON.\p"
.string "There's a LAB somewhere trying to\n"
.string "resurrect POKéMON from AMBER.$"
gUnknown_8190627:: @ 8190627
PewterCity_Museum_1F_Text_AmberIsFossilizedSap:: @ 8190627
.string "AMBER is actually sap, that gooey\n"
.string "stuff that oozes from trees.\p"
.string "The ancient sap fossilized over\n"
.string "time to become rock-hard AMBER.$"
Text_1906A6:: @ 81906A6
@ Unused
PewterCity_Museum_1F_Text_PleaseGoAround:: @ 81906A6
.string "あちらへ おまわりください$"
gUnknown_81906B4:: @ 81906B4
PewterCity_Museum_1F_Text_ShouldBeGratefulForLongLife:: @ 81906B4
.string "I should be grateful for my long\n"
.string "life.\p"
.string "Never did I think I would get to\n"
.string "see the bones of a dragon!$"
gUnknown_8190717:: @ 8190717
PewterCity_Museum_1F_Text_WantYouToGetAmberExamined:: @ 8190717
.string "Ssh! Listen, I need to share a\n"
.string "secret with someone.\p"
.string "I think that this chunk of AMBER\n"
@@ -57,30 +58,30 @@ gUnknown_8190717:: @ 8190717
.string "I want you to get this examined at\n"
.string "a POKéMON LAB somewhere.$"
gUnknown_8190866:: @ 8190866
PewterCity_Museum_1F_Text_ReceivedOldAmberFromMan:: @ 8190866
.string "{PLAYER} received the OLD AMBER\n"
.string "from the man.$"
gUnknown_819088E:: @ 819088E
PewterCity_Museum_1F_Text_GetOldAmberChecked:: @ 819088E
.string "Ssh!\n"
.string "Get the OLD AMBER checked!$"
gUnknown_81908AE:: @ 81908AE
PewterCity_Museum_1F_Text_DontHaveSpaceForThis:: @ 81908AE
.string "You don't have space for this.$"
gUnknown_81908CD:: @ 81908CD
PewterCity_Museum_1F_Text_WeHaveTwoFossilsOnExhibit:: @ 81908CD
.string "We have two fossils of rare,\n"
.string "prehistoric POKéMON on exhibit.$"
gUnknown_819090A:: @ 819090A
PewterCity_Museum_1F_Text_BeautifulPieceOfAmber:: @ 819090A
.string "There is a beautiful piece of\n"
.string "AMBER in a clear gold color.$"
gUnknown_8190945:: @ 8190945
PewterCity_Museum_1F_Text_AerodactylFossil:: @ 8190945
.string "AERODACTYL Fossil\n"
.string "A primitive and rare POKéMON.$"
gUnknown_8190975:: @ 8190975
PewterCity_Museum_1F_Text_KabutopsFossil:: @ 8190975
.string "KABUTOPS Fossil\n"
.string "A primitive and rare POKéMON.$"