pokeemerald/data/maps/Route121_SafariZoneEntrance/scripts.inc

142 lines
4.0 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route121_SafariZoneEntrance_MapScripts:: @ 822BBBB
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route121_SafariZoneEntrance_MapScript2_22BBC1
2017-11-10 02:21:31 +01:00
.byte 0
Route121_SafariZoneEntrance_MapScript2_22BBC1: @ 822BBC1
2019-02-22 10:18:43 +01:00
map_script_2 VAR_SAFARI_ZONE_STATE, 1, Route121_SafariZoneEntrance_EventScript_22BBCB
2017-11-10 02:21:31 +01:00
.2byte 0
Route121_SafariZoneEntrance_EventScript_22BBCB:: @ 822BBCB
lockall
applymovement EVENT_OBJ_ID_PLAYER, Route121_SafariZoneEntrance_Movement_22BBDD
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
Route121_SafariZoneEntrance_Movement_22BBDD: @ 822BBDD
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
Route121_SafariZoneEntrance_EventScript_22BBE6:: @ 822BBE6
msgbox Route121_SafariZoneEntrance_Text_2A4D12, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
Route121_SafariZoneEntrance_EventScript_22BBEF:: @ 822BBEF
lock
faceplayer
msgbox Route121_SafariZoneEntrance_Text_2A4E46, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route121_SafariZoneEntrance_EventScript_22BC0E
msgbox Route121_SafariZoneEntrance_Text_2A4E7E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route121_SafariZoneEntrance_EventScript_22BC0E:: @ 822BC0E
msgbox Route121_SafariZoneEntrance_Text_2A4EA1, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route121_SafariZoneEntrance_EventScript_22BC18:: @ 822BC18
lockall
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
2017-11-10 02:21:31 +01:00
waitmovement 0
showmoneybox 0, 0, 0
msgbox Route121_SafariZoneEntrance_Text_2A4F74, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route121_SafariZoneEntrance_EventScript_22BC48
msgbox Route121_SafariZoneEntrance_Text_2A4FD7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto Route121_SafariZoneEntrance_EventScript_22BD06
end
Route121_SafariZoneEntrance_EventScript_22BC48:: @ 822BC48
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route121_SafariZoneEntrance_EventScript_22BCEA
2017-11-10 02:21:31 +01:00
call Route121_SafariZoneEntrance_EventScript_22BCBF
2019-09-16 05:47:07 +02:00
checkmoney 500, 0
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route121_SafariZoneEntrance_EventScript_22BCF8
2017-11-10 02:21:31 +01:00
playse SE_REGI
msgbox Route121_SafariZoneEntrance_Text_2A501B, MSGBOX_DEFAULT
2019-09-16 05:47:07 +02:00
takemoney 500, 0
2019-08-18 05:26:46 +02:00
updatemoneybox 0, 0
msgbox Route121_SafariZoneEntrance_Text_2A5036, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playfanfare MUS_FANFA4
2017-11-10 02:21:31 +01:00
message Route121_SafariZoneEntrance_Text_2A5052
waitfanfare
msgbox Route121_SafariZoneEntrance_Text_2A506F, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
hidemoneybox
2019-08-18 05:26:46 +02:00
nop
nop
applymovement EVENT_OBJ_ID_PLAYER, Route121_SafariZoneEntrance_Movement_22BD18
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
warp MAP_SAFARI_ZONE_SOUTH, 255, 32, 33
2017-11-10 02:21:31 +01:00
waitstate
end
Route121_SafariZoneEntrance_EventScript_22BCBF:: @ 822BCBF
getpartysize
compare VAR_RESULT, 6
2018-12-22 02:28:24 +01:00
goto_if_ne Route121_SafariZoneEntrance_EventScript_22BCE9
specialvar VAR_RESULT, ScriptCheckFreePokemonStorageSpace
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route121_SafariZoneEntrance_EventScript_22BCE9
msgbox Route121_SafariZoneEntrance_Text_2A50E5, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto Route121_SafariZoneEntrance_EventScript_22BD06
end
Route121_SafariZoneEntrance_EventScript_22BCE9:: @ 822BCE9
return
Route121_SafariZoneEntrance_EventScript_22BCEA:: @ 822BCEA
msgbox Route121_SafariZoneEntrance_Text_2A5105, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto Route121_SafariZoneEntrance_EventScript_22BD06
end
Route121_SafariZoneEntrance_EventScript_22BCF8:: @ 822BCF8
msgbox Route121_SafariZoneEntrance_Text_2A4FF7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto Route121_SafariZoneEntrance_EventScript_22BD06
end
Route121_SafariZoneEntrance_EventScript_22BD06:: @ 822BD06
closemessage
hidemoneybox
2019-08-18 05:26:46 +02:00
nop
nop
applymovement EVENT_OBJ_ID_PLAYER, Route121_SafariZoneEntrance_Movement_22BD16
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
end
Route121_SafariZoneEntrance_Movement_22BD16: @ 822BD16
walk_right
2017-11-10 02:21:31 +01:00
step_end
Route121_SafariZoneEntrance_Movement_22BD18: @ 822BD18
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
Route121_SafariZoneEntrance_EventScript_22BD21:: @ 822BD21
msgbox Route121_SafariZoneEntrance_Text_2A55BB, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end