sovereignx/data/maps/NewMauville_Entrance/scripts.inc

62 lines
2.2 KiB
PHP
Raw Normal View History

2017-11-10 01:21:31 +00:00
NewMauville_Entrance_MapScripts:: @ 82372AD
2019-02-22 07:28:32 +00:00
map_script MAP_SCRIPT_ON_LOAD, NewMauville_Entrance_MapScript1_2372B8
2019-04-05 00:28:37 +01:00
map_script MAP_SCRIPT_ON_TRANSITION, NewMauville_Entrance_OnTransition
2017-11-10 01:21:31 +00:00
.byte 0
NewMauville_Entrance_MapScript1_2372B8: @ 82372B8
2019-02-22 09:18:43 +00:00
compare VAR_NEW_MAUVILLE_STATE, 0
2018-12-22 02:32:45 +00:00
call_if_eq NewMauville_Entrance_EventScript_2372C4
2017-11-10 01:21:31 +00:00
end
NewMauville_Entrance_EventScript_2372C4:: @ 82372C4
setmetatile 3, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile0, 1
setmetatile 4, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile1, 1
setmetatile 5, 0, METATILE_Facility_NewMauvilleDoor_Closed_Tile2, 1
setmetatile 3, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile3, 1
setmetatile 4, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile4, 1
setmetatile 5, 1, METATILE_Facility_NewMauvilleDoor_Closed_Tile5, 1
2017-11-10 01:21:31 +00:00
return
2019-04-05 00:28:37 +01:00
NewMauville_Entrance_OnTransition: @ 82372FB
2017-12-27 03:20:29 +00:00
setflag FLAG_LANDMARK_NEW_MAUVILLE
2017-11-10 01:21:31 +00:00
end
NewMauville_Entrance_EventScript_2372FF:: @ 82372FF
lockall
2019-10-06 18:55:30 +01:00
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-10 01:21:31 +00:00
waitmovement 0
msgbox NewMauville_Entrance_Text_237382, MSGBOX_DEFAULT
2017-11-10 01:21:31 +00:00
checkitem ITEM_BASEMENT_KEY, 1
compare VAR_RESULT, 0
2018-12-22 01:28:24 +00:00
goto_if_eq NewMauville_Entrance_EventScript_237380
msgbox NewMauville_Entrance_Text_237396, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 01:28:24 +00:00
goto_if_eq NewMauville_Entrance_EventScript_237380
msgbox NewMauville_Entrance_Text_2373AC, MSGBOX_DEFAULT
setmetatile 3, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile0, 0
setmetatile 4, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile1, 0
setmetatile 5, 0, METATILE_Facility_NewMauvilleDoor_Open_Tile2, 0
setmetatile 3, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile3, 1
setmetatile 4, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile4, 0
setmetatile 5, 1, METATILE_Facility_NewMauvilleDoor_Open_Tile5, 1
2017-11-10 01:21:31 +00:00
special DrawWholeMapView
playse SE_BAN
2019-02-22 09:18:43 +00:00
setvar VAR_NEW_MAUVILLE_STATE, 1
2017-11-10 01:21:31 +00:00
releaseall
end
NewMauville_Entrance_EventScript_237380:: @ 8237380
releaseall
end
NewMauville_Entrance_Text_237382: @ 8237382
.string "The door is locked.$"
NewMauville_Entrance_Text_237396: @ 8237396
.string "Use the BASEMENT KEY?$"
NewMauville_Entrance_Text_2373AC: @ 82373AC
.string "{PLAYER} used the BASEMENT KEY.\p"
.string "The door opened!$"