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
+21 -21
View File
@@ -1,43 +1,43 @@
CeruleanCity_House3_MapScripts:: @ 816A9A7
.byte 0
CeruleanCity_House3_EventScript_16A9A8:: @ 816A9A8
msgbox gUnknown_8191F80, MSGBOX_NPC
CeruleanCity_House3_EventScript_OldWoman:: @ 816A9A8
msgbox CeruleanCity_House3_Text_PleaseTradeWithMyHusband, MSGBOX_NPC
end
CeruleanCity_House3_EventScript_16A9B1:: @ 816A9B1
CeruleanCity_House3_EventScript_Dontae:: @ 816A9B1
lock
faceplayer
setvar VAR_0x8008, 1
call EventScript_1A8CAD
goto_if_set FLAG_DID_ZYNX_TRADE, EventScript_16AA23
msgbox gUnknown_81A59FE, MSGBOX_YESNO
setvar VAR_0x8008, INGAME_TRADE_JYNX
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_ZYNX_TRADE, CeruleanCity_House3_EventScript_AlreadyTraded
msgbox Trade_Text_DoYouHaveMonWouldYouTradeForMon, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_16AA0B
call EventScript_1A8CBD
compare VAR_0x8004, 6
goto_if_ge EventScript_16AA0B
call EventScript_1A8CC9
goto_if_eq CeruleanCity_House3_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
compare VAR_0x8004, PARTY_SIZE
goto_if_ge CeruleanCity_House3_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
compare VAR_RESULT, VAR_0x8009
goto_if_ne EventScript_16AA15
call EventScript_1A8CD9
msgbox gUnknown_81A5A9D
goto_if_ne CeruleanCity_House3_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox Trade_Text_Thanks
setflag FLAG_DID_ZYNX_TRADE
release
end
EventScript_16AA0B:: @ 816AA0B
msgbox gUnknown_81A5A4E
CeruleanCity_House3_EventScript_DeclineTrade:: @ 816AA0B
msgbox Trade_Text_WellIfYouDontWantTo
release
end
EventScript_16AA15:: @ 816AA15
CeruleanCity_House3_EventScript_NotRequestedMon:: @ 816AA15
getspeciesname 0, VAR_0x8009
msgbox gUnknown_81A5A6A
msgbox Trade_Text_ThisIsntMon
release
end
EventScript_16AA23:: @ 816AA23
msgbox gUnknown_81A5AA5
CeruleanCity_House3_EventScript_AlreadyTraded:: @ 816AA23
msgbox Trade_Text_HasTradedMonGrownStronger
release
end