summaryrefslogtreecommitdiff
path: root/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc')
-rw-r--r--data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc250
1 files changed, 125 insertions, 125 deletions
diff --git a/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc b/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc
index 48f682567..bd05d824d 100644
--- a/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc
+++ b/data/maps/CeladonCity_DepartmentStore_Roof/scripts.inc
@@ -1,152 +1,152 @@
CeladonCity_DepartmentStore_Roof_MapScripts:: @ 816BCCC
.byte 0
-CeladonCity_DepartmentStore_Roof_EventScript_16BCCD:: @ 816BCCD
+CeladonCity_DepartmentStore_Roof_EventScript_ThirstyGirl:: @ 816BCCD
goto_if_questlog EventScript_ReleaseEnd
special sub_8112364
lock
faceplayer
- call EventScript_16BCF6
+ call CeladonCity_DepartmentStore_Roof_EventScript_CheckPlayerHasDrinks
compare VAR_TEMP_1, 0
- goto_if_eq EventScript_16C00E
- goto EventScript_16BD3E
+ goto_if_eq CeladonCity_DepartmentStore_Roof_EventScript_IWantDrink
+ goto CeladonCity_DepartmentStore_Roof_EventScript_AskGiveDrink
end
-EventScript_16BCF6:: @ 816BCF6
+CeladonCity_DepartmentStore_Roof_EventScript_CheckPlayerHasDrinks:: @ 816BCF6
setvar VAR_TEMP_1, 0
checkitem ITEM_FRESH_WATER, 1
compare VAR_RESULT, TRUE
- call_if_eq EventScript_16BD2C
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_SetHasFreshWater
checkitem ITEM_SODA_POP, 1
compare VAR_RESULT, TRUE
- call_if_eq EventScript_16BD32
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_SetHasSodaPop
checkitem ITEM_LEMONADE, 1
compare VAR_RESULT, TRUE
- call_if_eq EventScript_16BD38
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_SetHasLemonade
return
-EventScript_16BD2C:: @ 816BD2C
+CeladonCity_DepartmentStore_Roof_EventScript_SetHasFreshWater:: @ 816BD2C
addvar VAR_TEMP_1, 1
return
-EventScript_16BD32:: @ 816BD32
+CeladonCity_DepartmentStore_Roof_EventScript_SetHasSodaPop:: @ 816BD32
addvar VAR_TEMP_1, 2
return
-EventScript_16BD38:: @ 816BD38
+CeladonCity_DepartmentStore_Roof_EventScript_SetHasLemonade:: @ 816BD38
addvar VAR_TEMP_1, 4
return
-EventScript_16BD3E:: @ 816BD3E
- msgbox gUnknown_8195D22, MSGBOX_YESNO
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveDrink:: @ 816BD3E
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ImThirstyGiveHerDrink, MSGBOX_YESNO
compare VAR_RESULT, NO
- goto_if_eq EventScript_16C00C
+ goto_if_eq CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
textcolor 3
- message Text_195D5F
+ message CeladonCity_DepartmentStore_Roof_Text_GiveWhichDrink
waitmessage
textcolor 1
switch VAR_TEMP_1
- case 1, EventScript_16BDAE
- case 2, EventScript_16BDDA
- case 3, EventScript_16BE06
- case 4, EventScript_16BE3D
- case 5, EventScript_16BE69
- case 6, EventScript_16BEA0
- case 7, EventScript_16BED7
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWater
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveSodaPop
+ case 3, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWaterSodaPop
+ case 4, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveLemonade
+ case 5, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWaterLemonade
+ case 6, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveSodaPopLemonade
+ case 7, CeladonCity_DepartmentStore_Roof_EventScript_AskGiveAllDrinks
end
-EventScript_16BDAE:: @ 816BDAE
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWater:: @ 816BDAE
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF19
- case 1, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveFreshWater
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BDDA:: @ 816BDDA
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveSodaPop:: @ 816BDDA
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_SODA_POP, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF3A
- case 1, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveSodaPop
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BE06:: @ 816BE06
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWaterSodaPop:: @ 816BE06
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF19
- case 1, EventScript_16BF3A
- case 2, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveFreshWater
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_GiveSodaPop
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BE3D:: @ 816BE3D
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveLemonade:: @ 816BE3D
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_LEMONADE, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF5B
- case 1, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveLemonade
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BE69:: @ 816BE69
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveFreshWaterLemonade:: @ 816BE69
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_LEMONADE, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF19
- case 1, EventScript_16BF5B
- case 2, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveFreshWater
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_GiveLemonade
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BEA0:: @ 816BEA0
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveSodaPopLemonade:: @ 816BEA0
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_SODA_POP_LEMONADE, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF3A
- case 1, EventScript_16BF5B
- case 2, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveSodaPop
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_GiveLemonade
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BED7:: @ 816BED7
+CeladonCity_DepartmentStore_Roof_EventScript_AskGiveAllDrinks:: @ 816BED7
multichoice 0, 0, MULTICHOICE_THIRSTY_GIRL_FRESH_WATER_SODA_POP_LEMONADE, FALSE
switch VAR_RESULT
- case 0, EventScript_16BF19
- case 1, EventScript_16BF3A
- case 2, EventScript_16BF5B
- case 3, EventScript_16C00C
- case 127, EventScript_16C00C
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_GiveFreshWater
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_GiveSodaPop
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_GiveLemonade
+ case 3, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
+ case 127, CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink
end
-EventScript_16BF19:: @ 816BF19
+CeladonCity_DepartmentStore_Roof_EventScript_GiveFreshWater:: @ 816BF19
setvar VAR_0x8008, ITEM_FRESH_WATER
setvar VAR_0x8009, ITEM_TM16
- goto_if_set FLAG_GOT_TM16_FROM_THIRSTY_GIRL, EventScript_16C018
- msgbox gUnknown_8195D75
- goto EventScript_16BF7C
+ goto_if_set FLAG_GOT_TM16_FROM_THIRSTY_GIRL, CeladonCity_DepartmentStore_Roof_EventScript_NotThirstyAfterAll
+ msgbox CeladonCity_DepartmentStore_Roof_Text_YayFreshWaterHaveThis
+ goto CeladonCity_DepartmentStore_Roof_EventScript_GiveDrink
end
-EventScript_16BF3A:: @ 816BF3A
+CeladonCity_DepartmentStore_Roof_EventScript_GiveSodaPop:: @ 816BF3A
setvar VAR_0x8008, ITEM_SODA_POP
setvar VAR_0x8009, ITEM_TM20
- goto_if_set FLAG_GOT_TM20_FROM_THIRSTY_GIRL, EventScript_16C018
- msgbox gUnknown_8195E33
- goto EventScript_16BF7C
+ goto_if_set FLAG_GOT_TM20_FROM_THIRSTY_GIRL, CeladonCity_DepartmentStore_Roof_EventScript_NotThirstyAfterAll
+ msgbox CeladonCity_DepartmentStore_Roof_Text_YaySodaPopHaveThis
+ goto CeladonCity_DepartmentStore_Roof_EventScript_GiveDrink
end
-EventScript_16BF5B:: @ 816BF5B
+CeladonCity_DepartmentStore_Roof_EventScript_GiveLemonade:: @ 816BF5B
setvar VAR_0x8008, ITEM_LEMONADE
setvar VAR_0x8009, ITEM_TM33
- goto_if_set FLAG_GOT_TM33_FROM_THIRSTY_GIRL, EventScript_16C018
- msgbox gUnknown_8195EBF
- goto EventScript_16BF7C
+ goto_if_set FLAG_GOT_TM33_FROM_THIRSTY_GIRL, CeladonCity_DepartmentStore_Roof_EventScript_NotThirstyAfterAll
+ msgbox CeladonCity_DepartmentStore_Roof_Text_YayLemonadeHaveThis
+ goto CeladonCity_DepartmentStore_Roof_EventScript_GiveDrink
end
-EventScript_16BF7C:: @ 816BF7C
+CeladonCity_DepartmentStore_Roof_EventScript_GiveDrink:: @ 816BF7C
getitemname 0, VAR_0x8008
getitemname 1, VAR_0x8009
removeitem VAR_0x8008, 1
checkitemspace VAR_0x8009, 1
compare VAR_RESULT, FALSE
- goto_if_eq EventScript_16C002
+ goto_if_eq CeladonCity_DepartmentStore_Roof_EventScript_NoRoomForReward
additem VAR_0x8009
textcolor 3
playfanfare MUS_FANFA1
@@ -156,142 +156,142 @@ EventScript_16BF7C:: @ 816BF7C
putitemaway VAR_0x8009
call EventScript_1A6675
compare VAR_0x8008, ITEM_FRESH_WATER
- call_if_eq EventScript_16BFDE
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM16
compare VAR_0x8008, ITEM_SODA_POP
- call_if_eq EventScript_16BFEA
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM20
compare VAR_0x8008, ITEM_LEMONADE
- call_if_eq EventScript_16BFF6
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM33
release
end
-EventScript_16BFDE:: @ 816BFDE
+CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM16:: @ 816BFDE
setflag FLAG_GOT_TM16_FROM_THIRSTY_GIRL
- msgbox gUnknown_8195DD4
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ExplainTM16
return
-EventScript_16BFEA:: @ 816BFEA
+CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM20:: @ 816BFEA
setflag FLAG_GOT_TM20_FROM_THIRSTY_GIRL
- msgbox gUnknown_8195E68
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ExplainTM20
return
-EventScript_16BFF6:: @ 816BFF6
+CeladonCity_DepartmentStore_Roof_EventScript_ExplainTM33:: @ 816BFF6
setflag FLAG_GOT_TM33_FROM_THIRSTY_GIRL
- msgbox gUnknown_8195EF4
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ExplainTM33
return
-EventScript_16C002:: @ 816C002
- msgbox gUnknown_8195F4F
+CeladonCity_DepartmentStore_Roof_EventScript_NoRoomForReward:: @ 816C002
+ msgbox CeladonCity_DepartmentStore_Roof_Text_DontHaveSpaceForThis
release
end
-EventScript_16C00C:: @ 816C00C
+CeladonCity_DepartmentStore_Roof_EventScript_DontGiveDrink:: @ 816C00C
release
end
-EventScript_16C00E:: @ 816C00E
- msgbox gUnknown_8195FEF
+CeladonCity_DepartmentStore_Roof_EventScript_IWantDrink:: @ 816C00E
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ImThirstyIWantDrink
release
end
-EventScript_16C018:: @ 816C018
- msgbox gUnknown_8195F6E
+CeladonCity_DepartmentStore_Roof_EventScript_NotThirstyAfterAll:: @ 816C018
+ msgbox CeladonCity_DepartmentStore_Roof_Text_ImNotThirstyAfterAll
release
end
-CeladonCity_DepartmentStore_Roof_EventScript_16C022:: @ 816C022
- msgbox gUnknown_8195F98, MSGBOX_NPC
+CeladonCity_DepartmentStore_Roof_EventScript_CooltrainerM:: @ 816C022
+ msgbox CeladonCity_DepartmentStore_Roof_Text_MySisterIsImmature, MSGBOX_NPC
end
-CeladonCity_DepartmentStore_Roof_EventScript_16C02B:: @ 816C02B
- msgbox gUnknown_8196017, MSGBOX_SIGN
+CeladonCity_DepartmentStore_Roof_EventScript_FloorSign:: @ 816C02B
+ msgbox CeladonCity_DepartmentStore_Roof_Text_FloorSign, MSGBOX_SIGN
end
-CeladonCity_DepartmentStore_Roof_EventScript_16C034:: @ 816C034
+CeladonCity_DepartmentStore_Roof_EventScript_VendingMachine:: @ 816C034
lockall
- message Text_196038
+ message CeladonCity_DepartmentStore_Roof_Text_VendingMachineWhatDoesItHave
waitmessage
showmoneybox 0, 0, 0
- goto EventScript_16C045
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ChooseDrink
end
-EventScript_16C045:: @ 816C045
+CeladonCity_DepartmentStore_Roof_EventScript_ChooseDrink:: @ 816C045
multichoice 12, 0, MULTICHOICE_CELADON_VENDING_MACHINE, FALSE
copyvar VAR_TEMP_1, VAR_RESULT
switch VAR_TEMP_1
- case 0, EventScript_16C083
- case 1, EventScript_16C094
- case 2, EventScript_16C0A5
- msgbox gUnknown_81960AE
- goto EventScript_16C14D
+ case 0, CeladonCity_DepartmentStore_Roof_EventScript_BuyFreshWater
+ case 1, CeladonCity_DepartmentStore_Roof_EventScript_BuySodaPop
+ case 2, CeladonCity_DepartmentStore_Roof_EventScript_BuyLemonade
+ msgbox CeladonCity_DepartmentStore_Roof_Text_NotThirsty
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ExitVendingMachine
end
-EventScript_16C083:: @ 816C083
+CeladonCity_DepartmentStore_Roof_EventScript_BuyFreshWater:: @ 816C083
setvar VAR_TEMP_0, ITEM_FRESH_WATER
checkmoney 200, 0
- goto EventScript_16C0CB
+ goto CeladonCity_DepartmentStore_Roof_EventScript_TryBuyDrink
end
-EventScript_16C094:: @ 816C094
+CeladonCity_DepartmentStore_Roof_EventScript_BuySodaPop:: @ 816C094
setvar VAR_TEMP_0, ITEM_SODA_POP
checkmoney 300, 0
- goto EventScript_16C0CB
+ goto CeladonCity_DepartmentStore_Roof_EventScript_TryBuyDrink
end
-EventScript_16C0A5:: @ 816C0A5
+CeladonCity_DepartmentStore_Roof_EventScript_BuyLemonade:: @ 816C0A5
setvar VAR_TEMP_0, ITEM_LEMONADE
checkmoney 350, 0
- goto EventScript_16C0CB
+ goto CeladonCity_DepartmentStore_Roof_EventScript_TryBuyDrink
end
-EventScript_16C0B6:: @ 816C0B6
+CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneyFreshWater:: @ 816C0B6
removemoney 200, 0
return
-EventScript_16C0BD:: @ 816C0BD
+CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneySodaPop:: @ 816C0BD
removemoney 300, 0
return
-EventScript_16C0C4:: @ 816C0C4
+CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneyLemonade:: @ 816C0C4
removemoney 350, 0
return
-EventScript_16C0CB:: @ 816C0CB
+CeladonCity_DepartmentStore_Roof_EventScript_TryBuyDrink:: @ 816C0CB
compare VAR_RESULT, FALSE
- goto_if_eq EventScript_16C131
+ goto_if_eq CeladonCity_DepartmentStore_Roof_EventScript_NotEnoughMoney
checkitemspace VAR_TEMP_0, 1
compare VAR_RESULT, FALSE
- goto_if_eq EventScript_16C13F
+ goto_if_eq CeladonCity_DepartmentStore_Roof_EventScript_NoRoomForDrink
compare VAR_TEMP_1, 0
- call_if_eq EventScript_16C0B6
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneyFreshWater
compare VAR_TEMP_1, 1
- call_if_eq EventScript_16C0BD
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneySodaPop
compare VAR_TEMP_1, 2
- call_if_eq EventScript_16C0C4
+ call_if_eq CeladonCity_DepartmentStore_Roof_EventScript_RemoveMoneyLemonade
updatemoneybox 0, 0, 0
getitemname 0, VAR_TEMP_0
playse SE_JIHANKI
- msgbox gUnknown_8196076
+ msgbox CeladonCity_DepartmentStore_Roof_Text_DrinkCanPoppedOut
additem VAR_TEMP_0
- goto EventScript_16C125
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ChooseNewDrink
end
-EventScript_16C125:: @ 816C125
- message Text_196038
+CeladonCity_DepartmentStore_Roof_EventScript_ChooseNewDrink:: @ 816C125
+ message CeladonCity_DepartmentStore_Roof_Text_VendingMachineWhatDoesItHave
waitmessage
- goto EventScript_16C045
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ChooseDrink
end
-EventScript_16C131:: @ 816C131
- msgbox gUnknown_819605E
- goto EventScript_16C14D
+CeladonCity_DepartmentStore_Roof_EventScript_NotEnoughMoney:: @ 816C131
+ msgbox CeladonCity_DepartmentStore_Roof_Text_NotEnoughMoney
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ExitVendingMachine
end
-EventScript_16C13F:: @ 816C13F
- msgbox gUnknown_819608E
- goto EventScript_16C14D
+CeladonCity_DepartmentStore_Roof_EventScript_NoRoomForDrink:: @ 816C13F
+ msgbox CeladonCity_DepartmentStore_Roof_Text_NoMoreRoomForStuff
+ goto CeladonCity_DepartmentStore_Roof_EventScript_ExitVendingMachine
end
-EventScript_16C14D:: @ 816C14D
+CeladonCity_DepartmentStore_Roof_EventScript_ExitVendingMachine:: @ 816C14D
hidemoneybox 0, 0
releaseall
end