2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_MapScripts::
|
2019-10-20 09:46:05 +02:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route121_SafariZoneEntrance_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_OnFrame:
|
2019-10-20 09:46:05 +02:00
|
|
|
map_script_2 VAR_SAFARI_ZONE_STATE, 1, Route121_SafariZoneEntrance_EventScript_ExitSafariZone
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_ExitSafariZone::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route121_SafariZoneEntrance_Movement_ExitSafariZone
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SAFARI_ZONE_STATE, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_Movement_ExitSafariZone:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_WelcomeAttendant::
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_WelcomeToSafariZone, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_InfoAttendant::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_WelcomeFirstTime, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, YES
|
2019-10-20 09:46:05 +02:00
|
|
|
goto_if_eq Route121_SafariZoneEntrance_EventScript_FirstTimeInfo
|
|
|
|
msgbox Route121_SafariZoneEntrance_Text_ComeInAndEnjoy, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_FirstTimeInfo::
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_FirstTimeInfo, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_EntranceCounterTrigger::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
showmoneybox 0, 0, 0
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_WouldYouLikeToPlay, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, YES
|
2019-10-20 09:46:05 +02:00
|
|
|
goto_if_eq Route121_SafariZoneEntrance_EventScript_TryEnterSafariZone
|
|
|
|
msgbox Route121_SafariZoneEntrance_Text_PlayAnotherTime, MSGBOX_DEFAULT
|
|
|
|
goto Route121_SafariZoneEntrance_EventScript_MovePlayerBackFromCounter
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_TryEnterSafariZone::
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_POKEBLOCK_CASE, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-10-20 09:46:05 +02:00
|
|
|
goto_if_eq Route121_SafariZoneEntrance_EventScript_NoPokeblockCase
|
|
|
|
call Route121_SafariZoneEntrance_EventScript_CheckHasRoomForPokemon
|
2019-09-16 05:47:07 +02:00
|
|
|
checkmoney 500, 0
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-10-20 09:46:05 +02:00
|
|
|
goto_if_eq Route121_SafariZoneEntrance_EventScript_NotEnoughMoney
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_SHOP
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_ThatWillBe500Please, MSGBOX_DEFAULT
|
2020-01-13 05:24:52 +01:00
|
|
|
removemoney 500, 0
|
2019-08-18 05:26:46 +02:00
|
|
|
updatemoneybox 0, 0
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_HereAreYourSafariBalls, MSGBOX_DEFAULT
|
2020-08-21 00:02:00 +02:00
|
|
|
playfanfare MUS_OBTAIN_ITEM
|
2019-10-20 09:46:05 +02:00
|
|
|
message Route121_SafariZoneEntrance_Text_Received30SafariBalls
|
2017-11-10 02:21:31 +01:00
|
|
|
waitfanfare
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_PleaseEnjoyYourself, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
hidemoneybox
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route121_SafariZoneEntrance_Movement_EnterSafariZone
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
special EnterSafariMode
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_SAFARI_ZONE_STATE, 2
|
2019-01-02 22:12:43 +01:00
|
|
|
clearflag FLAG_GOOD_LUCK_SAFARI_ZONE
|
2018-06-15 05:00:09 +02:00
|
|
|
warp MAP_SAFARI_ZONE_SOUTH, 255, 32, 33
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_CheckHasRoomForPokemon::
|
2017-11-10 02:21:31 +01:00
|
|
|
getpartysize
|
2019-10-20 09:46:05 +02:00
|
|
|
compare VAR_RESULT, PARTY_SIZE
|
|
|
|
goto_if_ne Route121_SafariZoneEntrance_EventScript_HasRoomForPokemon
|
2017-12-28 09:09:11 +01:00
|
|
|
specialvar VAR_RESULT, ScriptCheckFreePokemonStorageSpace
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2019-10-20 09:46:05 +02:00
|
|
|
goto_if_eq Route121_SafariZoneEntrance_EventScript_HasRoomForPokemon
|
|
|
|
msgbox Route121_SafariZoneEntrance_Text_PCIsFull, MSGBOX_DEFAULT
|
|
|
|
goto Route121_SafariZoneEntrance_EventScript_MovePlayerBackFromCounter
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_HasRoomForPokemon::
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_NoPokeblockCase::
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_YouNeedPokeblockCase, MSGBOX_DEFAULT
|
|
|
|
goto Route121_SafariZoneEntrance_EventScript_MovePlayerBackFromCounter
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_NotEnoughMoney::
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_NotEnoughMoney, MSGBOX_DEFAULT
|
|
|
|
goto Route121_SafariZoneEntrance_EventScript_MovePlayerBackFromCounter
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_MovePlayerBackFromCounter::
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
|
|
|
hidemoneybox
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route121_SafariZoneEntrance_Movement_BackAwayFromCounter
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_Movement_BackAwayFromCounter:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_Movement_EnterSafariZone:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_left
|
|
|
|
walk_down
|
|
|
|
delay_16
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route121_SafariZoneEntrance_EventScript_TrainerTipSign::
|
2019-10-20 09:46:05 +02:00
|
|
|
msgbox Route121_SafariZoneEntrance_Text_TrainerTip, MSGBOX_SIGN
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|