Document Cerulean City scripts

This commit is contained in:
GriffinR
2020-01-14 14:48:25 -05:00
parent 8c560386ed
commit f544f6e356
58 changed files with 796 additions and 745 deletions
+11 -11
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeruleanCity_BikeShop_EventScript_16ABBD",
"script": "CeruleanCity_BikeShop_EventScript_Clerk",
"flag": "0"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC75",
"script": "CeruleanCity_BikeShop_EventScript_Youngster",
"flag": "0"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC6C",
"script": "CeruleanCity_BikeShop_EventScript_Woman",
"flag": "0"
}
],
@@ -83,56 +83,56 @@
"x": 4,
"y": 3,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 4,
"y": 4,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 4,
"y": 5,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 3,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 1,
"y": 4,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 5,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 7,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
},
{
"type": "bg_event_type_0",
"x": 2,
"y": 8,
"elevation": 0,
"script": "CeruleanCity_BikeShop_EventScript_16AC94"
"script": "CeruleanCity_BikeShop_EventScript_Bicycle"
}
]
}
+32 -31
View File
@@ -1,70 +1,71 @@
CeruleanCity_BikeShop_MapScripts:: @ 816ABBC
.byte 0
CeruleanCity_BikeShop_EventScript_16ABBD:: @ 816ABBD
CeruleanCity_BikeShop_EventScript_Clerk:: @ 816ABBD
lock
faceplayer
goto_if_set FLAG_GOT_BICYCLE, EventScript_16AC58
goto_if_set FLAG_GOT_BIKE_VOUCHER, EventScript_16AC22
goto_if_set FLAG_GOT_BICYCLE, CeruleanCity_BikeShop_EventScript_AlreadyGotBicycle
goto_if_set FLAG_GOT_BIKE_VOUCHER, CeruleanCity_BikeShop_EventScript_ExchangeBikeVoucher
showmoneybox 0, 0, 0
message Text_192755
message CeruleanCity_BikeShop_Text_WelcomeToBikeShop
waitmessage
multichoice 11, 0, MULTICHOICE_BIKE_SHOP, FALSE
switch VAR_RESULT
case 0, EventScript_16AC07
case 1, EventScript_16AC15
case 127, EventScript_16AC15
case 0, CeruleanCity_BikeShop_EventScript_TryPurchaseBicycle
case 1, CeruleanCity_BikeShop_EventScript_ClerkGoodbye
case 127, CeruleanCity_BikeShop_EventScript_ClerkGoodbye
end
EventScript_16AC07:: @ 816AC07
msgbox gUnknown_8192796
goto EventScript_16AC15
@ The Bicycle price / players money is never actually checked
CeruleanCity_BikeShop_EventScript_TryPurchaseBicycle:: @ 816AC07
msgbox CeruleanCity_BikeShop_Text_SorryYouCantAffordIt
goto CeruleanCity_BikeShop_EventScript_ClerkGoodbye
end
EventScript_16AC15:: @ 816AC15
msgbox gUnknown_819280E
CeruleanCity_BikeShop_EventScript_ClerkGoodbye:: @ 816AC15
msgbox CeruleanCity_BikeShop_Text_ThankYouComeAgain
hidemoneybox 0, 0
release
end
EventScript_16AC22:: @ 816AC22
msgbox gUnknown_81927B2
msgreceiveditem gUnknown_81927E1, ITEM_BICYCLE, 1, MUS_FAN5
CeruleanCity_BikeShop_EventScript_ExchangeBikeVoucher:: @ 816AC22
msgbox CeruleanCity_BikeShop_Text_OhBikeVoucherHereYouGo
msgreceiveditem CeruleanCity_BikeShop_Text_ExchangedVoucherForBicycle, ITEM_BICYCLE, 1, MUS_FAN5
setflag FLAG_GOT_BICYCLE
additem ITEM_BICYCLE
removeitem ITEM_BIKE_VOUCHER, 1
msgbox gUnknown_819280E
removeitem ITEM_BIKE_VOUCHER
msgbox CeruleanCity_BikeShop_Text_ThankYouComeAgain
release
end
EventScript_16AC58:: @ 816AC58
msgbox gUnknown_8192833
CeruleanCity_BikeShop_EventScript_AlreadyGotBicycle:: @ 816AC58
msgbox CeruleanCity_BikeShop_Text_HowDoYouLikeNewBicycle
release
end
EventScript_16AC62:: @ 816AC62
msgbox gUnknown_81928A8
@ Unused
CeruleanCity_BikeShop_EventScript_NoRoomForBicycle:: @ 816AC62
msgbox CeruleanCity_BikeShop_Text_MakeRoomForBicycle
release
end
CeruleanCity_BikeShop_EventScript_16AC6C:: @ 816AC6C
msgbox gUnknown_81928CF, MSGBOX_NPC
CeruleanCity_BikeShop_EventScript_Woman:: @ 816AC6C
msgbox CeruleanCity_BikeShop_Text_CityBikeGoodEnoughForMe, MSGBOX_NPC
end
CeruleanCity_BikeShop_EventScript_16AC75:: @ 816AC75
CeruleanCity_BikeShop_EventScript_Youngster:: @ 816AC75
lock
faceplayer
goto_if_set FLAG_GOT_BICYCLE, EventScript_16AC8A
msgbox gUnknown_8192937
goto_if_set FLAG_GOT_BICYCLE, CeruleanCity_BikeShop_EventScript_YoungsterHaveBike
msgbox CeruleanCity_BikeShop_Text_BikesCoolButExpensive
release
end
EventScript_16AC8A:: @ 816AC8A
msgbox gUnknown_8192968
CeruleanCity_BikeShop_EventScript_YoungsterHaveBike:: @ 816AC8A
msgbox CeruleanCity_BikeShop_Text_WowYourBikeIsCool
release
end
CeruleanCity_BikeShop_EventScript_16AC94:: @ 816AC94
CeruleanCity_EventScript_16AC94:: @ 816AC94
msgbox gUnknown_81929AD, MSGBOX_SIGN
CeruleanCity_BikeShop_EventScript_Bicycle:: @ 816AC94
msgbox CeruleanCity_BikeShop_Text_ShinyNewBicycle, MSGBOX_SIGN
end
+13 -12
View File
@@ -1,56 +1,57 @@
Text_192755:: @ 8192755
CeruleanCity_BikeShop_Text_WelcomeToBikeShop:: @ 8192755
.string "Hi!\n"
.string "Welcome to our BIKE SHOP.\p"
.string "Have we got just the BIKE for\n"
.string "you!$"
gUnknown_8192796:: @ 8192796
CeruleanCity_BikeShop_Text_SorryYouCantAffordIt:: @ 8192796
.string "Sorry!\n"
.string "You can't afford it!$"
gUnknown_81927B2:: @ 81927B2
CeruleanCity_BikeShop_Text_OhBikeVoucherHereYouGo:: @ 81927B2
.string "Oh, that's…\p"
.string "A BIKE VOUCHER!\p"
.string "Okay!\n"
.string "Here you go!$"
gUnknown_81927E1:: @ 81927E1
CeruleanCity_BikeShop_Text_ExchangedVoucherForBicycle:: @ 81927E1
.string "{PLAYER} exchanged the\n"
.string "BIKE VOUCHER for a BICYCLE.$"
gUnknown_819280E:: @ 819280E
CeruleanCity_BikeShop_Text_ThankYouComeAgain:: @ 819280E
.string "Thank you!\n"
.string "Come back again sometime!$"
gUnknown_8192833:: @ 8192833
CeruleanCity_BikeShop_Text_HowDoYouLikeNewBicycle:: @ 8192833
.string "How do you like your new BICYCLE?\n"
.string "Do you like how it rides?\p"
.string "You can take it out on CYCLING\n"
.string "ROAD and even into caves!$"
gUnknown_81928A8:: @ 81928A8
CeruleanCity_BikeShop_Text_MakeRoomForBicycle:: @ 81928A8
.string "You better make room for your\n"
.string "BICYCLE!$"
gUnknown_81928CF:: @ 81928CF
CeruleanCity_BikeShop_Text_CityBikeGoodEnoughForMe:: @ 81928CF
.string "A plain city bike is good enough\n"
.string "for me.\p"
.string "After all, you can't put a shopping\n"
.string "basket on a mountain bike.$"
gUnknown_8192937:: @ 8192937
CeruleanCity_BikeShop_Text_BikesCoolButExpensive:: @ 8192937
.string "These bikes are cool, but they're\n"
.string "way expensive!$"
gUnknown_8192968:: @ 8192968
CeruleanCity_BikeShop_Text_WowYourBikeIsCool:: @ 8192968
.string "Wow.\n"
.string "Your BIKE is really cool!$"
Text_192987:: @ 8192987
@ Unused
CeruleanCity_BikeShop_Text_GermanFoldableBicyleFinallyOnMarket:: @ 8192987
.string "ついに はつばい!\p"
.string "ドイツ せい さいこうきゅう\n"
.string "おりたたみ じてんしゃ!$"
gUnknown_81929AD:: @ 81929AD
CeruleanCity_BikeShop_Text_ShinyNewBicycle:: @ 81929AD
.string "A shiny new BICYCLE!$"