Files
pokeemerald/data/maps/SSTidalRooms/scripts.inc
T
dennisw100 3b716d22d1 Seperated Text from script SootopolisCity_House7-Underwater_SeafloorCavern
Seperated Text from script SootopolisCity_House7 - SootopolisCity, SSTidal, TrainerHill, Underwater_SeafloorCavern
2024-06-28 15:19:04 +02:00

76 lines
2.4 KiB
ObjectPascal

SSTidalRooms_MapScripts::
.byte 0
SSTidalRooms_EventScript_SnatchGiver::
lock
faceplayer
goto_if_set FLAG_RECEIVED_TM49, SSTidalRooms_EventScript_ExplainSnatch
msgbox SSTidalRooms_Text_NotSuspiciousTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM49
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_TM49
msgbox SSTidalRooms_Text_ExplainSnatch, MSGBOX_DEFAULT
release
end
SSTidalRooms_EventScript_ExplainSnatch::
msgbox SSTidalRooms_Text_ExplainSnatch, MSGBOX_DEFAULT
release
end
SSTidalRooms_EventScript_Bed::
lockall
msgbox SSTidalRooms_Text_TakeRestOnBed, MSGBOX_DEFAULT
closemessage
call Common_EventScript_OutOfCenterPartyHeal
call SSTidalRooms_EventScript_ProgessCruiseAfterBed
releaseall
end
SSTidalRooms_EventScript_Colton::
trainerbattle_single TRAINER_COLTON, SSTidalRooms_Text_ColtonIntro, SSTidalRooms_Text_ColtonDefeat
msgbox SSTidalRooms_Text_ColtonPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Micah::
trainerbattle_single TRAINER_MICAH, SSTidalRooms_Text_MicahIntro, SSTidalRooms_Text_MicahDefeat
msgbox SSTidalRooms_Text_MicahPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Thomas::
trainerbattle_single TRAINER_THOMAS, SSTidalRooms_Text_ThomasIntro, SSTidalRooms_Text_ThomasDefeat
msgbox SSTidalRooms_Text_ThomasPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Jed::
trainerbattle_double TRAINER_LEA_AND_JED, SSTidalRooms_Text_JedIntro, SSTidalRooms_Text_JedDefeat, SSTidalRooms_Text_JedNotEnoughMons
msgbox SSTidalRooms_Text_JedPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Lea::
trainerbattle_double TRAINER_LEA_AND_JED, SSTidalRooms_Text_LeaIntro, SSTidalRooms_Text_LeaDefeat, SSTidalRooms_Text_LeaNotEnoughMons
msgbox SSTidalRooms_Text_LeaPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Garret::
trainerbattle_single TRAINER_GARRET, SSTidalRooms_Text_GarretIntro, SSTidalRooms_Text_GarretDefeat
msgbox SSTidalRooms_Text_GarretPostBattle, MSGBOX_AUTOCLOSE
end
SSTidalRooms_EventScript_Naomi::
trainerbattle_single TRAINER_NAOMI, SSTidalRooms_Text_NaomiIntro, SSTidalRooms_Text_NaomiDefeat
msgbox SSTidalRooms_Text_NaomiPostBattle, MSGBOX_AUTOCLOSE
end
.ifdef ENGLISH
.include "data/maps/SSTidalRooms/text.inc"
.else
.ifdef FRENCH
.include "data/maps/SSTidalRooms/text_fr.inc"
.else
.ifdef ITALIAN
.include "data/maps/SSTidalRooms/text_it.inc"
.endif
.endif
.endif