Document Celadon City scripts

This commit is contained in:
GriffinR
2020-01-25 02:05:30 -05:00
parent a09e66b53f
commit 35c0e1f60a
68 changed files with 1713 additions and 1742 deletions
+35 -35
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C684",
"script": "CeladonCity_GameCorner_EventScript_InfoClerk",
"flag": "0"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C68D",
"script": "CeladonCity_GameCorner_EventScript_CoinsClerk",
"flag": "0"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C7BA",
"script": "CeladonCity_GameCorner_EventScript_BaldingMan",
"flag": "0"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C7D7",
"script": "CeladonCity_GameCorner_EventScript_Woman1",
"flag": "0"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C7E7",
"script": "CeladonCity_GameCorner_EventScript_Fisher",
"flag": "0"
},
{
@@ -88,7 +88,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C857",
"script": "CeladonCity_GameCorner_EventScript_GymGuy",
"flag": "0"
},
{
@@ -101,7 +101,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C87E",
"script": "CeladonCity_GameCorner_EventScript_Woman2",
"flag": "0"
},
{
@@ -114,7 +114,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C88E",
"script": "CeladonCity_GameCorner_EventScript_OldMan",
"flag": "0"
},
{
@@ -127,7 +127,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C89E",
"script": "CeladonCity_GameCorner_EventScript_Scientist",
"flag": "0"
},
{
@@ -140,7 +140,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16C8FE",
"script": "CeladonCity_GameCorner_EventScript_Gentleman",
"flag": "0"
},
{
@@ -153,7 +153,7 @@
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_GameCorner_EventScript_16CAF5",
"script": "CeladonCity_GameCorner_EventScript_RocketGrunt",
"flag": "FLAG_HIDE_GAME_CORNER_ROCKET"
}
],
@@ -314,168 +314,168 @@
"x": 0,
"y": 7,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C95E"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine0"
},
{
"type": "bg_event_type_4",
"x": 0,
"y": 9,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9A4"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine1"
},
{
"type": "bg_event_type_4",
"x": 0,
"y": 10,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9B0"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine2"
},
{
"type": "bg_event_type_3",
"x": 5,
"y": 6,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9BC"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine3"
},
{
"type": "bg_event_type_3",
"x": 5,
"y": 8,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CB5A"
"script": "CeladonCity_GameCorner_EventScript_UnusableSlotMachine1"
},
{
"type": "bg_event_type_3",
"x": 5,
"y": 9,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9D4"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine5"
},
{
"type": "bg_event_type_3",
"x": 5,
"y": 10,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9E0"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine6"
},
{
"type": "bg_event_type_4",
"x": 6,
"y": 6,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9EC"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine7"
},
{
"type": "bg_event_type_4",
"x": 6,
"y": 7,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16C9F8"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine8"
},
{
"type": "bg_event_type_4",
"x": 6,
"y": 9,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA04"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine9"
},
{
"type": "bg_event_type_3",
"x": 11,
"y": 6,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA10"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine10"
},
{
"type": "bg_event_type_3",
"x": 11,
"y": 7,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA1C"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine11"
},
{
"type": "bg_event_type_3",
"x": 11,
"y": 8,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA28"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine12"
},
{
"type": "bg_event_type_3",
"x": 11,
"y": 10,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA34"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine13"
},
{
"type": "bg_event_type_4",
"x": 12,
"y": 6,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA40"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine14"
},
{
"type": "bg_event_type_4",
"x": 12,
"y": 8,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CB63"
"script": "CeladonCity_GameCorner_EventScript_UnusableSlotMachine2"
},
{
"type": "bg_event_type_4",
"x": 12,
"y": 9,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA58"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine16"
},
{
"type": "bg_event_type_4",
"x": 12,
"y": 10,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA64"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine17"
},
{
"type": "bg_event_type_3",
"x": 17,
"y": 6,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CB6C"
"script": "CeladonCity_GameCorner_EventScript_UnusableSlotMachine3"
},
{
"type": "bg_event_type_3",
"x": 17,
"y": 7,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA7C"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine19"
},
{
"type": "bg_event_type_3",
"x": 17,
"y": 8,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA88"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine20"
},
{
"type": "bg_event_type_3",
"x": 17,
"y": 9,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CA94"
"script": "CeladonCity_GameCorner_EventScript_SlotMachine21"
},
{
"type": "bg_event_type_0",
"x": 11,
"y": 1,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_16CAAA"
"script": "CeladonCity_GameCorner_EventScript_Poster"
},
{
"type": "bg_event_type_3",
"x": 17,
"y": 13,
"elevation": 0,
"script": "CeladonCity_GameCorner_EventScript_1B2867"
"script": "CeladonCity_GameCorner_EventScript_PhotoPrinter"
}
]
}
+191 -191
View File
@@ -3,443 +3,443 @@ CeladonCity_GameCorner_MapScripts:: @ 816C646
.byte 0
CeladonCity_GameCorner_OnLoad:: @ 816C64C
call_if_unset FLAG_OPENED_ROCKET_HIDEOUT, EventScript_16C656
call_if_unset FLAG_OPENED_ROCKET_HIDEOUT, CeladonCity_GameCorner_EventScript_HideRocketHideout
end
EventScript_16C656:: @ 816C656
setmetatile 15, 2, 658, 0
setmetatile 16, 2, 658, 0
setmetatile 17, 2, 658, 0
setmetatile 16, 3, 719, 1
setmetatile 17, 3, 719, 1
CeladonCity_GameCorner_EventScript_HideRocketHideout:: @ 816C656
setmetatile 15, 2, METATILE_GameCorner_Floor_ShadeFull, 0
setmetatile 16, 2, METATILE_GameCorner_Floor_ShadeFull, 0
setmetatile 17, 2, METATILE_GameCorner_Floor_ShadeFull, 0
setmetatile 16, 3, METATILE_GameCorner_PurpleWall_Floor, 1
setmetatile 17, 3, METATILE_GameCorner_PurpleWall_Floor, 1
return
CeladonCity_GameCorner_EventScript_16C684:: @ 816C684
msgbox gUnknown_8196940, MSGBOX_NPC
CeladonCity_GameCorner_EventScript_InfoClerk:: @ 816C684
msgbox CeladonCity_GameCorner_Text_CanExchangeCoinsNextDoor, MSGBOX_NPC
end
CeladonCity_GameCorner_EventScript_16C68D:: @ 816C68D
CeladonCity_GameCorner_EventScript_CoinsClerk:: @ 816C68D
goto_if_questlog EventScript_ReleaseEnd
lock
faceplayer
showmoneybox 0, 0, 0
showcoinsbox 0, 5
message Text_196984
message CeladonCity_GameCorner_Text_WelcomeBuySomeCoins
waitmessage
multichoice 13, 0, MULTICHOICE_GAME_CORNER_COIN_PURCHASE_COUNTER, FALSE
copyvar VAR_0x8009, VAR_RESULT
switch VAR_RESULT
case 0, EventScript_16C6E6
case 1, EventScript_16C6E6
case 2, EventScript_16C782
case 127, EventScript_16C782
case 0, CeladonCity_GameCorner_EventScript_BuyCoins
case 1, CeladonCity_GameCorner_EventScript_BuyCoins
case 2, CeladonCity_GameCorner_EventScript_ClerkDeclineBuy
case 127, CeladonCity_GameCorner_EventScript_ClerkDeclineBuy
end
EventScript_16C6E6:: @ 816C6E6
goto_if_unset FLAG_GOT_COIN_CASE, EventScript_16C790
CeladonCity_GameCorner_EventScript_BuyCoins:: @ 816C6E6
goto_if_unset FLAG_GOT_COIN_CASE, CeladonCity_GameCorner_EventScript_ClerkNoCoinCase
compare VAR_0x8009, 0
goto_if_eq EventScript_16C734
goto_if_eq CeladonCity_GameCorner_EventScript_Buy50Coins
compare VAR_0x8009, 1
goto_if_eq EventScript_16C706
goto_if_eq CeladonCity_GameCorner_EventScript_Buy500Coins
end
EventScript_16C706:: @ 816C706
CeladonCity_GameCorner_EventScript_Buy500Coins:: @ 816C706
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9500
goto_if_ge EventScript_16C79E
compare VAR_TEMP_1, (MAX_COINS + 1) - 500
goto_if_ge CeladonCity_GameCorner_EventScript_ClerkNoRoomForCoins
checkmoney 10000, 0
compare VAR_RESULT, FALSE
goto_if_eq EventScript_16C7AC
goto_if_eq CeladonCity_GameCorner_EventScript_ClerkNotEnoughMoney
addcoins 500
removemoney 10000, 0
goto EventScript_16C762
goto CeladonCity_GameCorner_EventScript_BoughtCoins
end
EventScript_16C734:: @ 816C734
CeladonCity_GameCorner_EventScript_Buy50Coins:: @ 816C734
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9950
goto_if_ge EventScript_16C79E
compare VAR_TEMP_1, (MAX_COINS + 1) - 50
goto_if_ge CeladonCity_GameCorner_EventScript_ClerkNoRoomForCoins
checkmoney 1000, 0
compare VAR_RESULT, FALSE
goto_if_eq EventScript_16C7AC
goto_if_eq CeladonCity_GameCorner_EventScript_ClerkNotEnoughMoney
addcoins 50
removemoney 1000, 0
goto EventScript_16C762
goto CeladonCity_GameCorner_EventScript_BoughtCoins
end
EventScript_16C762:: @ 816C762
CeladonCity_GameCorner_EventScript_BoughtCoins:: @ 816C762
updatemoneybox 0, 0, 0
updatecoinsbox 0, 5
playse SE_SHOP
msgbox gUnknown_8196A62
goto EventScript_16C77A
msgbox CeladonCity_GameCorner_Text_HereAreYourCoins
goto CeladonCity_GameCorner_EventScript_ClerkEnd
end
EventScript_16C77A:: @ 816C77A
CeladonCity_GameCorner_EventScript_ClerkEnd:: @ 816C77A
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
end
EventScript_16C782:: @ 816C782
msgbox gUnknown_81969DC
goto EventScript_16C77A
CeladonCity_GameCorner_EventScript_ClerkDeclineBuy:: @ 816C782
msgbox CeladonCity_GameCorner_Text_ComePlaySometime
goto CeladonCity_GameCorner_EventScript_ClerkEnd
end
EventScript_16C790:: @ 816C790
msgbox gUnknown_81969FB
goto EventScript_16C77A
CeladonCity_GameCorner_EventScript_ClerkNoCoinCase:: @ 816C790
msgbox CeladonCity_GameCorner_Text_SorryDontHaveCoinCase
goto CeladonCity_GameCorner_EventScript_ClerkEnd
end
EventScript_16C79E:: @ 816C79E
msgbox gUnknown_8196A26
goto EventScript_16C77A
CeladonCity_GameCorner_EventScript_ClerkNoRoomForCoins:: @ 816C79E
msgbox CeladonCity_GameCorner_Text_CoinCaseIsFull
goto CeladonCity_GameCorner_EventScript_ClerkEnd
end
EventScript_16C7AC:: @ 816C7AC
msgbox gUnknown_8196A46
goto EventScript_16C77A
CeladonCity_GameCorner_EventScript_ClerkNotEnoughMoney:: @ 816C7AC
msgbox CeladonCity_GameCorner_Text_CantAffordCoins
goto CeladonCity_GameCorner_EventScript_ClerkEnd
end
CeladonCity_GameCorner_EventScript_16C7BA:: @ 816C7BA
CeladonCity_GameCorner_EventScript_BaldingMan:: @ 816C7BA
lock
faceplayer
msgbox gUnknown_8196A82
goto EventScript_16C7CA
msgbox CeladonCity_GameCorner_Text_RumoredTeamRocketRunsThisPlace
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C7CA:: @ 816C7CA
CeladonCity_GameCorner_EventScript_FaceSlotMachine:: @ 816C7CA
closemessage
applymovement VAR_LAST_TALKED, Movement_FaceOriginalDirection
waitmovement 0
release
end
CeladonCity_GameCorner_EventScript_16C7D7:: @ 816C7D7
CeladonCity_GameCorner_EventScript_Woman1:: @ 816C7D7
lock
faceplayer
msgbox gUnknown_8196AC7
goto EventScript_16C7CA
msgbox CeladonCity_GameCorner_Text_ThinkMachinesHaveDifferentOdds
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C7E7:: @ 816C7E7
CeladonCity_GameCorner_EventScript_Fisher:: @ 816C7E7
lock
faceplayer
goto_if_set FLAG_GOT_10_COINS_FROM_GAMBLER, EventScript_16C849
msgbox gUnknown_8196AF3
goto_if_unset FLAG_GOT_COIN_CASE, EventScript_16C839
goto_if_set FLAG_GOT_10_COINS_FROM_GAMBLER, CeladonCity_GameCorner_EventScript_FisherAlreadyGotCoins
msgbox CeladonCity_GameCorner_Text_DoYouWantToPlay
goto_if_unset FLAG_GOT_COIN_CASE, CeladonCity_GameCorner_EventScript_GamblerNoCoinCase
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9990
goto_if_ge EventScript_16C82B
compare VAR_TEMP_1, (MAX_COINS + 1) - 10
goto_if_ge CeladonCity_GameCorner_EventScript_FisherNoRoomForCoins
addcoins 10
textcolor 3
msgbox gUnknown_8196B0D
msgbox CeladonCity_GameCorner_Text_Received10CoinsFromMan
playse SE_SHOP
waitse
setflag FLAG_GOT_10_COINS_FROM_GAMBLER
goto EventScript_16C7CA
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C82B:: @ 816C82B
msgbox gUnknown_8196B30
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_FisherNoRoomForCoins:: @ 816C82B
msgbox CeladonCity_GameCorner_Text_DontNeedMyCoins
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C839:: @ 816C839
CeladonCity_GameCorner_EventScript_GamblerNoCoinCase:: @ 816C839
textcolor 3
msgbox gUnknown_8196F26
goto EventScript_16C7CA
msgbox CeladonCity_GameCorner_Text_DontHaveCoinCase
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C849:: @ 816C849
msgbox gUnknown_8196B49
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_FisherAlreadyGotCoins:: @ 816C849
msgbox CeladonCity_GameCorner_Text_WinsComeAndGo
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C857:: @ 816C857
CeladonCity_GameCorner_EventScript_GymGuy:: @ 816C857
lock
faceplayer
goto_if_set FLAG_DEFEATED_ERIKA, EventScript_16C870
msgbox gUnknown_8196BAD
goto EventScript_16C7CA
goto_if_set FLAG_DEFEATED_ERIKA, CeladonCity_GameCorner_EventScript_GymGuyPostVictory
msgbox CeladonCity_GameCorner_Text_GymGuyAdvice
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C870:: @ 816C870
msgbox gUnknown_8196CA1
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_GymGuyPostVictory:: @ 816C870
msgbox CeladonCity_GameCorner_Text_RareMonsForCoins
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C87E:: @ 816C87E
CeladonCity_GameCorner_EventScript_Woman2:: @ 816C87E
lock
faceplayer
msgbox gUnknown_8196B7B
goto EventScript_16C7CA
msgbox CeladonCity_GameCorner_Text_WinOrLoseItsOnlyLuck
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C88E:: @ 816C88E
CeladonCity_GameCorner_EventScript_OldMan:: @ 816C88E
lock
faceplayer
msgbox gUnknown_8196CFE
goto EventScript_16C7CA
msgbox CeladonCity_GameCorner_Text_SoEasyToGetHooked
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C89E:: @ 816C89E
CeladonCity_GameCorner_EventScript_Scientist:: @ 816C89E
lock
faceplayer
goto_if_set FLAG_GOT_20_COINS_FROM_GAMBLER, EventScript_16C8F0
msgbox gUnknown_8196D2B
goto_if_unset FLAG_GOT_COIN_CASE, EventScript_16C839
goto_if_set FLAG_GOT_20_COINS_FROM_GAMBLER, CeladonCity_GameCorner_EventScript_ScientistAlreadyGotCoins
msgbox CeladonCity_GameCorner_Text_WantSomeCoins
goto_if_unset FLAG_GOT_COIN_CASE, CeladonCity_GameCorner_EventScript_GamblerNoCoinCase
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9980
goto_if_ge EventScript_16C8E2
compare VAR_TEMP_1, (MAX_COINS + 1) - 20
goto_if_ge CeladonCity_GameCorner_EventScript_ScientistNoRoomForCoins
addcoins 20
textcolor 3
msgbox gUnknown_8196D47
msgbox CeladonCity_GameCorner_Text_Received20CoinsFromNiceGuy
playse SE_SHOP
waitse
setflag FLAG_GOT_20_COINS_FROM_GAMBLER
goto EventScript_16C7CA
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C8E2:: @ 816C8E2
msgbox gUnknown_8196D6F
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_ScientistNoRoomForCoins:: @ 816C8E2
msgbox CeladonCity_GameCorner_Text_YouHaveLotsOfCoins
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C8F0:: @ 816C8F0
msgbox gUnknown_8196D87
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_ScientistAlreadyGotCoins:: @ 816C8F0
msgbox CeladonCity_GameCorner_Text_NeedMoreCoinsForMonIWant
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C8FE:: @ 816C8FE
CeladonCity_GameCorner_EventScript_Gentleman:: @ 816C8FE
lock
faceplayer
goto_if_set FLAG_GOT_20_COINS_FROM_GAMBLER_2, EventScript_16C950
msgbox gUnknown_8196DB7
goto_if_unset FLAG_GOT_COIN_CASE, EventScript_16C839
goto_if_set FLAG_GOT_20_COINS_FROM_GAMBLER_2, CeladonCity_GameCorner_EventScript_GentlemanAlreadyGotCoins
msgbox CeladonCity_GameCorner_Text_HereAreSomeCoinsShoo
goto_if_unset FLAG_GOT_COIN_CASE, CeladonCity_GameCorner_EventScript_GamblerNoCoinCase
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9980
goto_if_ge EventScript_16C942
compare VAR_TEMP_1, (MAX_COINS + 1) - 20
goto_if_ge CeladonCity_GameCorner_EventScript_GentlemanNoRoomForCoins
addcoins 20
textcolor 3
msgbox gUnknown_8196DF8
msgbox CeladonCity_GameCorner_Text_Received20CoinsFromMan
playse SE_SHOP
waitse
setflag FLAG_GOT_20_COINS_FROM_GAMBLER_2
goto EventScript_16C7CA
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C942:: @ 816C942
msgbox gUnknown_8196E1B
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_GentlemanNoRoomForCoins:: @ 816C942
msgbox CeladonCity_GameCorner_Text_YouveGotPlentyCoins
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
EventScript_16C950:: @ 816C950
msgbox gUnknown_8196E40
goto EventScript_16C7CA
CeladonCity_GameCorner_EventScript_GentlemanAlreadyGotCoins:: @ 816C950
msgbox CeladonCity_GameCorner_Text_WatchReelsClosely
goto CeladonCity_GameCorner_EventScript_FaceSlotMachine
end
CeladonCity_GameCorner_EventScript_16C95E:: @ 816C95E
CeladonCity_GameCorner_EventScript_SlotMachine0:: @ 816C95E
lockall
setvar VAR_0x8004, 0
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
EventScript_16C96A:: @ 816C96A
CeladonCity_GameCorner_EventScript_DontPlaySlotMachine:: @ 816C96A
releaseall
end
EventScript_16C96C:: @ 816C96C
goto_if_unset FLAG_GOT_COIN_CASE, EventScript_16CAA0
msgbox gUnknown_8196F46, MSGBOX_YESNO
CeladonCity_GameCorner_EventScript_SlotMachine:: @ 816C96C
goto_if_unset FLAG_GOT_COIN_CASE, CeladonCity_GameCorner_EventScript_SlotMachineNoCoinCase
msgbox CeladonCity_GameCorner_Text_SlotMachineWantToPlay, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_16C96A
goto_if_eq CeladonCity_GameCorner_EventScript_DontPlaySlotMachine
setfieldeffectarg 0, 255
setfieldeffectarg 1, 10
setfieldeffectarg 2, 14
dofieldeffect 64
waitfieldeffect 64
dofieldeffect FLDEFF_UNK_40
waitfieldeffect FLDEFF_UNK_40 @ Smile icon?
specialvar VAR_RESULT, Special_GetRandomSlotMachine
playslotmachine VAR_RESULT
releaseall
end
CeladonCity_GameCorner_EventScript_16C9A4:: @ 816C9A4
CeladonCity_GameCorner_EventScript_SlotMachine1:: @ 816C9A4
lockall
setvar VAR_0x8004, 1
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9B0:: @ 816C9B0
CeladonCity_GameCorner_EventScript_SlotMachine2:: @ 816C9B0
lockall
setvar VAR_0x8004, 2
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9BC:: @ 816C9BC
CeladonCity_GameCorner_EventScript_SlotMachine3:: @ 816C9BC
lockall
setvar VAR_0x8004, 3
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
EventScript_16C9C8:: @ 816C9C8
CeladonCity_GameCorner_EventScript_SlotMachine4:: @ 816C9C8
lockall
setvar VAR_0x8004, 4
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9D4:: @ 816C9D4
CeladonCity_GameCorner_EventScript_SlotMachine5:: @ 816C9D4
lockall
setvar VAR_0x8004, 5
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9E0:: @ 816C9E0
CeladonCity_GameCorner_EventScript_SlotMachine6:: @ 816C9E0
lockall
setvar VAR_0x8004, 6
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9EC:: @ 816C9EC
CeladonCity_GameCorner_EventScript_SlotMachine7:: @ 816C9EC
lockall
setvar VAR_0x8004, 7
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16C9F8:: @ 816C9F8
CeladonCity_GameCorner_EventScript_SlotMachine8:: @ 816C9F8
lockall
setvar VAR_0x8004, 8
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA04:: @ 816CA04
CeladonCity_GameCorner_EventScript_SlotMachine9:: @ 816CA04
lockall
setvar VAR_0x8004, 9
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA10:: @ 816CA10
CeladonCity_GameCorner_EventScript_SlotMachine10:: @ 816CA10
lockall
setvar VAR_0x8004, 10
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA1C:: @ 816CA1C
CeladonCity_GameCorner_EventScript_SlotMachine11:: @ 816CA1C
lockall
setvar VAR_0x8004, 11
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA28:: @ 816CA28
CeladonCity_GameCorner_EventScript_SlotMachine12:: @ 816CA28
lockall
setvar VAR_0x8004, 12
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA34:: @ 816CA34
CeladonCity_GameCorner_EventScript_SlotMachine13:: @ 816CA34
lockall
setvar VAR_0x8004, 13
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA40:: @ 816CA40
CeladonCity_GameCorner_EventScript_SlotMachine14:: @ 816CA40
lockall
setvar VAR_0x8004, 14
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
EventScript_16CA4C:: @ 816CA4C
CeladonCity_GameCorner_EventScript_SlotMachine15:: @ 816CA4C
lockall
setvar VAR_0x8004, 15
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA58:: @ 816CA58
CeladonCity_GameCorner_EventScript_SlotMachine16:: @ 816CA58
lockall
setvar VAR_0x8004, 16
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA64:: @ 816CA64
CeladonCity_GameCorner_EventScript_SlotMachine17:: @ 816CA64
lockall
setvar VAR_0x8004, 17
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
EventScript_16CA70:: @ 816CA70
CeladonCity_GameCorner_EventScript_SlotMachine18:: @ 816CA70
lockall
setvar VAR_0x8004, 18
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA7C:: @ 816CA7C
CeladonCity_GameCorner_EventScript_SlotMachine19:: @ 816CA7C
lockall
setvar VAR_0x8004, 19
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA88:: @ 816CA88
CeladonCity_GameCorner_EventScript_SlotMachine20:: @ 816CA88
lockall
setvar VAR_0x8004, 20
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
CeladonCity_GameCorner_EventScript_16CA94:: @ 816CA94
CeladonCity_GameCorner_EventScript_SlotMachine21:: @ 816CA94
lockall
setvar VAR_0x8004, 21
goto EventScript_16C96C
goto CeladonCity_GameCorner_EventScript_SlotMachine
end
EventScript_16CAA0:: @ 816CAA0
msgbox gUnknown_8196F0D
CeladonCity_GameCorner_EventScript_SlotMachineNoCoinCase:: @ 816CAA0
msgbox CeladonCity_GameCorner_Text_CoinCaseIsRequired
releaseall
end
CeladonCity_GameCorner_EventScript_16CAAA:: @ 816CAAA
CeladonCity_GameCorner_EventScript_Poster:: @ 816CAAA
lockall
msgbox gUnknown_8196EDC
call_if_unset FLAG_OPENED_ROCKET_HIDEOUT, EventScript_16CABE
msgbox CeladonCity_GameCorner_Text_SwitchBehindPosterPushIt
call_if_unset FLAG_OPENED_ROCKET_HIDEOUT, CeladonCity_GameCorner_EventScript_OpenRocketHideout
releaseall
end
EventScript_16CABE:: @ 816CABE
CeladonCity_GameCorner_EventScript_OpenRocketHideout:: @ 816CABE
playse SE_KI_GASYAN
setmetatile 15, 2, 669, 0
setmetatile 16, 2, 670, 1
setmetatile 17, 2, 671, 1
setmetatile 16, 3, 678, 1
setmetatile 17, 3, 679, 1
setmetatile 15, 2, METATILE_GameCorner_Floor_StairsTop, 0
setmetatile 16, 2, METATILE_GameCorner_StairsTop, 1
setmetatile 17, 2, METATILE_GameCorner_StairsBottom, 1
setmetatile 16, 3, METATILE_GameCorner_PurpleWall_StairsTop, 1
setmetatile 17, 3, METATILE_GameCorner_PurpleWall_stairsBottom, 1
special DrawWholeMapView
setflag FLAG_OPENED_ROCKET_HIDEOUT
return
CeladonCity_GameCorner_EventScript_16CAF5:: @ 816CAF5
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_7, Text_196E69, Text_196E95, EventScript_16CB10
msgbox gUnknown_8196E9B, MSGBOX_AUTOCLOSE
CeladonCity_GameCorner_EventScript_RocketGrunt:: @ 816CAF5
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_7, CeladonCity_GameCorner_Text_GruntIntro, CeladonCity_GameCorner_Text_GruntDefeat, CeladonCity_GameCorner_Text_DefeatedGrunt
msgbox CeladonCity_GameCorner_Text_GruntPostBattle, MSGBOX_AUTOCLOSE
end
EventScript_16CB10:: @ 816CB10
msgbox gUnknown_8196E9B
CeladonCity_GameCorner_Text_DefeatedGrunt:: @ 816CB10
msgbox CeladonCity_GameCorner_Text_GruntPostBattle
closemessage
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_16CB34
call_if_eq CeladonCity_GameCorner_Text_GruntExitWest
compare VAR_FACING, DIR_WEST
call_if_ne EventScript_16CB3F
call_if_ne CeladonCity_GameCorner_Text_GruntExit
removeobject 11
release
end
EventScript_16CB34:: @ 816CB34
applymovement 11, Movement_16CB4A
CeladonCity_GameCorner_Text_GruntExitWest:: @ 816CB34
applymovement 11, CeladonCity_GameCorner_Movement_GruntExitWest
waitmovement 0
return
EventScript_16CB3F:: @ 816CB3F
applymovement 11, Movement_16CB53
CeladonCity_GameCorner_Text_GruntExit:: @ 816CB3F
applymovement 11, CeladonCity_GameCorner_Movement_GruntExit
waitmovement 0
return
Movement_16CB4A:: @ 816CB4A
CeladonCity_GameCorner_Movement_GruntExitWest:: @ 816CB4A
walk_down
walk_right
walk_right
@@ -450,7 +450,7 @@ Movement_16CB4A:: @ 816CB4A
walk_right
step_end
Movement_16CB53:: @ 816CB53
CeladonCity_GameCorner_Movement_GruntExit:: @ 816CB53
walk_right
walk_right
walk_right
@@ -459,14 +459,14 @@ Movement_16CB53:: @ 816CB53
walk_right
step_end
CeladonCity_GameCorner_EventScript_16CB5A:: @ 816CB5A
msgbox gUnknown_8196F64, MSGBOX_SIGN
CeladonCity_GameCorner_EventScript_UnusableSlotMachine1:: @ 816CB5A
msgbox CeladonCity_GameCorner_Text_OutOfOrder, MSGBOX_SIGN
end
CeladonCity_GameCorner_EventScript_16CB63:: @ 816CB63
msgbox gUnknown_8196F81, MSGBOX_SIGN
CeladonCity_GameCorner_EventScript_UnusableSlotMachine2:: @ 816CB63
msgbox CeladonCity_GameCorner_Text_OutToLunch, MSGBOX_SIGN
end
CeladonCity_GameCorner_EventScript_16CB6C:: @ 816CB6C
msgbox gUnknown_8196FA0, MSGBOX_SIGN
CeladonCity_GameCorner_EventScript_UnusableSlotMachine3:: @ 816CB6C
msgbox CeladonCity_GameCorner_Text_SomeonesKeys, MSGBOX_SIGN
end
+35 -35
View File
@@ -1,60 +1,60 @@
gUnknown_8196940:: @ 8196940
CeladonCity_GameCorner_Text_CanExchangeCoinsNextDoor:: @ 8196940
.string "Welcome!\p"
.string "You can exchange your COINS for\n"
.string "fabulous prizes next door.$"
Text_196984:: @ 8196984
CeladonCity_GameCorner_Text_WelcomeBuySomeCoins:: @ 8196984
.string "Welcome to ROCKET GAME CORNER!\p"
.string "Do you need some game COINS?\n"
.string "Would you like to buy some?$"
gUnknown_81969DC:: @ 81969DC
CeladonCity_GameCorner_Text_ComePlaySometime:: @ 81969DC
.string "No?\n"
.string "Please come play sometime!$"
gUnknown_81969FB:: @ 81969FB
CeladonCity_GameCorner_Text_SorryDontHaveCoinCase:: @ 81969FB
.string "Oh, I'm sorry.\n"
.string "You don't have a COIN CASE.$"
gUnknown_8196A26:: @ 8196A26
CeladonCity_GameCorner_Text_CoinCaseIsFull:: @ 8196A26
.string "Whoops!\n"
.string "Your COIN CASE is full.$"
gUnknown_8196A46:: @ 8196A46
CeladonCity_GameCorner_Text_CantAffordCoins:: @ 8196A46
.string "You can't afford the COINS.$"
gUnknown_8196A62:: @ 8196A62
CeladonCity_GameCorner_Text_HereAreYourCoins:: @ 8196A62
.string "Thank you.\n"
.string "Here are your COINS!$"
gUnknown_8196A82:: @ 8196A82
CeladonCity_GameCorner_Text_RumoredTeamRocketRunsThisPlace:: @ 8196A82
.string "Keep this quiet.\p"
.string "It's rumored that this place is run\n"
.string "by TEAM ROCKET.$"
gUnknown_8196AC7:: @ 8196AC7
CeladonCity_GameCorner_Text_ThinkMachinesHaveDifferentOdds:: @ 8196AC7
.string "I think these machines have\n"
.string "different odds.$"
gUnknown_8196AF3:: @ 8196AF3
CeladonCity_GameCorner_Text_DoYouWantToPlay:: @ 8196AF3
.string "Kid, do you want to play?$"
gUnknown_8196B0D:: @ 8196B0D
CeladonCity_GameCorner_Text_Received10CoinsFromMan:: @ 8196B0D
.string "{PLAYER} received 10 COINS\n"
.string "from the man.$"
gUnknown_8196B30:: @ 8196B30
CeladonCity_GameCorner_Text_DontNeedMyCoins:: @ 8196B30
.string "You don't need my COINS!$"
gUnknown_8196B49:: @ 8196B49
CeladonCity_GameCorner_Text_WinsComeAndGo:: @ 8196B49
.string "Wins seem to come and go.\n"
.string "Nothing's a sure thing.$"
gUnknown_8196B7B:: @ 8196B7B
CeladonCity_GameCorner_Text_WinOrLoseItsOnlyLuck:: @ 8196B7B
.string "These slot games…\n"
.string "Win or lose, it's only by luck.$"
gUnknown_8196BAD:: @ 8196BAD
CeladonCity_GameCorner_Text_GymGuyAdvice:: @ 8196BAD
.string "Hey!\p"
.string "You have better things to do,\n"
.string "champ in the making!\p"
@@ -66,83 +66,83 @@ gUnknown_8196BAD:: @ 8196BAD
.string "But she's not one to be taken\n"
.string "lightly!$"
gUnknown_8196CA1:: @ 8196CA1
CeladonCity_GameCorner_Text_RareMonsForCoins:: @ 8196CA1
.string "They offer rare POKéMON that can\n"
.string "be exchanged for your COINS.\p"
.string "But, I just can't seem to win!$"
gUnknown_8196CFE:: @ 8196CFE
CeladonCity_GameCorner_Text_SoEasyToGetHooked:: @ 8196CFE
.string "Games are scary!\n"
.string "It's so easy to get hooked!$"
gUnknown_8196D2B:: @ 8196D2B
CeladonCity_GameCorner_Text_WantSomeCoins:: @ 8196D2B
.string "What's up?\n"
.string "Want some COINS?$"
gUnknown_8196D47:: @ 8196D47
CeladonCity_GameCorner_Text_Received20CoinsFromNiceGuy:: @ 8196D47
.string "{PLAYER} received 20 COINS\n"
.string "from the nice guy.$"
gUnknown_8196D6F:: @ 8196D6F
CeladonCity_GameCorner_Text_YouHaveLotsOfCoins:: @ 8196D6F
.string "You have lots of COINS!$"
gUnknown_8196D87:: @ 8196D87
CeladonCity_GameCorner_Text_NeedMoreCoinsForMonIWant:: @ 8196D87
.string "Darn! I need more COINS for the\n"
.string "POKéMON I want!$"
gUnknown_8196DB7:: @ 8196DB7
CeladonCity_GameCorner_Text_HereAreSomeCoinsShoo:: @ 8196DB7
.string "Hey, what? You're throwing me off!\n"
.string "Here are some COINS, so shoo!$"
gUnknown_8196DF8:: @ 8196DF8
CeladonCity_GameCorner_Text_Received20CoinsFromMan:: @ 8196DF8
.string "{PLAYER} received 20 COINS\n"
.string "from the man.$"
gUnknown_8196E1B:: @ 8196E1B
CeladonCity_GameCorner_Text_YouveGotPlentyCoins:: @ 8196E1B
.string "You've got plenty of your own\n"
.string "COINS!$"
gUnknown_8196E40:: @ 8196E40
CeladonCity_GameCorner_Text_WatchReelsClosely:: @ 8196E40
.string "The trick is to watch the reels\n"
.string "closely.$"
Text_196E69:: @ 8196E69
CeladonCity_GameCorner_Text_GruntIntro:: @ 8196E69
.string "I'm guarding this poster!\n"
.string "Go away, or else!$"
Text_196E95:: @ 8196E95
CeladonCity_GameCorner_Text_GruntDefeat:: @ 8196E95
.string "Dang!$"
gUnknown_8196E9B:: @ 8196E9B
CeladonCity_GameCorner_Text_GruntPostBattle:: @ 8196E9B
.string "The TEAM ROCKET HIDEOUT might\n"
.string "be discovered!\p"
.string "I better tell BOSS!$"
gUnknown_8196EDC:: @ 8196EDC
CeladonCity_GameCorner_Text_SwitchBehindPosterPushIt:: @ 8196EDC
.string "Hey!\p"
.string "A switch behind the poster!?\n"
.string "Let's push it!$"
gUnknown_8196F0D:: @ 8196F0D
CeladonCity_GameCorner_Text_CoinCaseIsRequired:: @ 8196F0D
.string "A COIN CASE is required…$"
gUnknown_8196F26:: @ 8196F26
CeladonCity_GameCorner_Text_DontHaveCoinCase:: @ 8196F26
.string "Oops!\n"
.string "Don't have the COIN CASE!$"
gUnknown_8196F46:: @ 8196F46
CeladonCity_GameCorner_Text_SlotMachineWantToPlay:: @ 8196F46
.string "A slot machine!\n"
.string "Want to play?$"
gUnknown_8196F64:: @ 8196F64
CeladonCity_GameCorner_Text_OutOfOrder:: @ 8196F64
.string "OUT OF ORDER\n"
.string "This is broken.$"
gUnknown_8196F81:: @ 8196F81
CeladonCity_GameCorner_Text_OutToLunch:: @ 8196F81
.string "OUT TO LUNCH\n"
.string "This is reserved.$"
gUnknown_8196FA0:: @ 8196FA0
CeladonCity_GameCorner_Text_SomeonesKeys:: @ 8196FA0
.string "Someone's keys!\n"
.string "They'll be back.$"