pokefirered/data/maps/FourIsland_PokemonCenter_1F/scripts.inc
2026-03-26 12:33:08 -06:00

62 lines
1.8 KiB
PHP

FourIsland_PokemonCenter_1F_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, FourIsland_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
FourIsland_PokemonCenter_1F_OnTransition::
setrespawn SPAWN_FOUR_ISLAND
end
FourIsland_PokemonCenter_1F_EventScript_Nurse::
lock
faceplayer
call EventScript_PkmnCenterNurse
release
end
FourIsland_PokemonCenter_1F_EventScript_Man::
msgbox FourIsland_PokemonCenter_1F_Text_RareIceMonsInCave, MSGBOX_NPC
end
FourIsland_PokemonCenter_1F_EventScript_Woman::
msgbox FourIsland_PokemonCenter_1F_Text_DayCarePeopleFoundEggBefore, MSGBOX_NPC
end
FourIsland_PokemonCenter_1F_EventScript_Gentleman::
msgbox FourIsland_PokemonCenter_1F_Text_NewPokemonJournalHasntArrived, MSGBOX_NPC
end
FourIsland_PokemonCenter_1F_EventScript_Trader::
lock
faceplayer
setvar VAR_0x8008, INGAME_TRADE_SUICUNE
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_SUICUNE_TRADE, FourIsland_PokemonCenter_1F_EventScript_AlreadyTraded
msgbox Trade_Text_LookingForMonWannaTradeForMon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, FourIsland_PokemonCenter_1F_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
goto_if_ge VAR_0x8004, PARTY_SIZE, FourIsland_PokemonCenter_1F_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
goto_if_ne VAR_RESULT, VAR_0x8009, FourIsland_PokemonCenter_1F_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox Trade_Text_HeyThanks
setflag FLAG_DID_SUICUNE_TRADE
release
end
FourIsland_PokemonCenter_1F_EventScript_DeclineTrade::
msgbox Trade_Text_AwwOhWell
release
end
FourIsland_PokemonCenter_1F_EventScript_NotRequestedMon::
bufferspeciesname STR_VAR_1, VAR_0x8009
msgbox Trade_Text_WhatThatsNoMon
release
end
FourIsland_PokemonCenter_1F_EventScript_AlreadyTraded::
msgbox Trade_Text_IsntMyOldMonGreat
release
end