summaryrefslogtreecommitdiff
path: root/data/maps/SlateportCity/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/SlateportCity/scripts.inc')
-rw-r--r--data/maps/SlateportCity/scripts.inc98
1 files changed, 49 insertions, 49 deletions
diff --git a/data/maps/SlateportCity/scripts.inc b/data/maps/SlateportCity/scripts.inc
index 2e7859fba..1830c3f00 100644
--- a/data/maps/SlateportCity/scripts.inc
+++ b/data/maps/SlateportCity/scripts.inc
@@ -1,20 +1,20 @@
SlateportCity_MapScripts:: @ 81DCC61
- map_script 3, SlateportCity_MapScript1_1DCC6C
- map_script 2, SlateportCity_MapScript2_1DCD12
+ map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_MapScript1_1DCC6C
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_MapScript2_1DCD12
.byte 0
SlateportCity_MapScript1_1DCC6C: @ 81DCC6C
- setvar VAR_0x40AA, 0
+ setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 0
call SlateportCity_EventScript_1DCC8D
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCC99
- compare VAR_0x40D2, 1
+ compare VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 1
call_if_eq SlateportCity_EventScript_1DCCE7
end
SlateportCity_EventScript_1DCC8D:: @ 81DCC8D
setflag FLAG_VISITED_SLATEPORT_CITY
- setvar VAR_0x4086, 0
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 0
setflag FLAG_HIDE_SLATEPORT_CITY_CONTEST_REPORTER
return
@@ -36,7 +36,7 @@ SlateportCity_EventScript_1DCC99:: @ 81DCC99
return
SlateportCity_EventScript_1DCCE7:: @ 81DCCE7
- setflag FLAG_SPECIAL_FLAG_0x4000
+ setflag FLAG_HIDE_MAP_NAME_POPUP
getplayerxy VAR_0x8004, VAR_0x8005
compare VAR_0x8004, 30
goto_if_eq SlateportCity_EventScript_1DCD06
@@ -50,7 +50,7 @@ SlateportCity_EventScript_1DCD06:: @ 81DCD06
return
SlateportCity_MapScript2_1DCD12: @ 81DCD12
- map_script_2 VAR_0x40D2, 1, SlateportCity_EventScript_1DCD1C
+ map_script_2 VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 1, SlateportCity_EventScript_1DCD1C
.2byte 0
SlateportCity_EventScript_1DCD1C:: @ 81DCD1C
@@ -61,11 +61,11 @@ SlateportCity_EventScript_1DCD1C:: @ 81DCD1C
waitmovement 0
msgbox SlateportCity_Text_1DF032, MSGBOX_DEFAULT
closemessage
- applymovement 35, SlateportCity_Movement_2725A4
+ applymovement 35, Common_Movement_WalkInPlaceLeft
waitmovement 0
delay 60
msgbox SlateportCity_Text_1DF0FE, MSGBOX_DEFAULT
- applymovement 35, SlateportCity_Movement_2725A8
+ applymovement 35, Common_Movement_WalkInPlaceRight
waitmovement 0
msgbox SlateportCity_Text_1DF12B, MSGBOX_DEFAULT
closemessage
@@ -83,9 +83,9 @@ SlateportCity_EventScript_1DCD1C:: @ 81DCD1C
removeobject 35
setobjectxyperm 35, 10, 12
setobjectmovementtype 35, MOVEMENT_TYPE_FACE_DOWN
- clearflag FLAG_SPECIAL_FLAG_0x4000
- setvar VAR_0x40D2, 2
- addvar VAR_0x40D1, 1
+ clearflag FLAG_HIDE_MAP_NAME_POPUP
+ setvar VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 2
+ addvar VAR_SCOTT_STATE, 1
releaseall
end
@@ -170,7 +170,7 @@ SlateportCity_EventScript_1DCE38:: @ 81DCE38
SlateportCity_EventScript_1DCE42:: @ 81DCE42
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCE59
msgbox SlateportCity_Text_1DD81A, MSGBOX_DEFAULT
release
@@ -184,7 +184,7 @@ SlateportCity_EventScript_1DCE59:: @ 81DCE59
SlateportCity_EventScript_1DCE63:: @ 81DCE63
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCE7A
msgbox SlateportCity_Text_1DD8A6, MSGBOX_DEFAULT
release
@@ -198,7 +198,7 @@ SlateportCity_EventScript_1DCE7A:: @ 81DCE7A
SlateportCity_EventScript_1DCE84:: @ 81DCE84
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCEA4
goto_if_set FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_1DCEAE
msgbox SlateportCity_Text_1DD93D, MSGBOX_DEFAULT
@@ -218,7 +218,7 @@ SlateportCity_EventScript_1DCEAE:: @ 81DCEAE
SlateportCity_EventScript_1DCEB8:: @ 81DCEB8
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCECF
msgbox SlateportCity_Text_1DDA34, MSGBOX_DEFAULT
release
@@ -230,7 +230,7 @@ SlateportCity_EventScript_1DCECF:: @ 81DCECF
end
SlateportCity_EventScript_1DCED9:: @ 81DCED9
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
goto_if_eq SlateportCity_EventScript_1DCEED
msgbox SlateportCity_Text_1DDA9A, MSGBOX_NPC
end
@@ -242,7 +242,7 @@ SlateportCity_EventScript_1DCEED:: @ 81DCEED
SlateportCity_EventScript_1DCEF6:: @ 81DCEF6
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCF0D
msgbox SlateportCity_Text_1DDB21, MSGBOX_DEFAULT
release
@@ -323,7 +323,7 @@ SlateportCity_EventScript_1DCFB2:: @ 81DCFB2
SlateportCity_EventScript_1DCFBB:: @ 81DCFBB
lock
faceplayer
- compare VAR_0x4058, 1
+ compare VAR_SLATEPORT_STATE, 1
call_if_eq SlateportCity_EventScript_1DCFD2
msgbox SlateportCity_Text_1DE10E, MSGBOX_DEFAULT
release
@@ -359,7 +359,7 @@ SlateportCity_EventScript_1DD009:: @ 81DD009
faceplayer
msgbox SlateportCity_Text_1DDC4F, MSGBOX_DEFAULT
closemessage
- applymovement 5, SlateportCity_Movement_2725A2
+ applymovement 5, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -369,7 +369,7 @@ SlateportCity_EventScript_1DD020:: @ 81DD020
faceplayer
msgbox SlateportCity_Text_1DDC8A, MSGBOX_DEFAULT
closemessage
- applymovement 18, SlateportCity_Movement_2725A2
+ applymovement 18, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -379,7 +379,7 @@ SlateportCity_EventScript_1DD037:: @ 81DD037
faceplayer
msgbox SlateportCity_Text_1DDCD5, MSGBOX_DEFAULT
closemessage
- applymovement 19, SlateportCity_Movement_2725A2
+ applymovement 19, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -389,7 +389,7 @@ SlateportCity_EventScript_1DD04E:: @ 81DD04E
faceplayer
msgbox SlateportCity_Text_1DDD18, MSGBOX_DEFAULT
closemessage
- applymovement 26, SlateportCity_Movement_2725A2
+ applymovement 26, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -399,7 +399,7 @@ SlateportCity_EventScript_1DD065:: @ 81DD065
faceplayer
msgbox SlateportCity_Text_1DDD7D, MSGBOX_DEFAULT
closemessage
- applymovement 27, SlateportCity_Movement_2725A2
+ applymovement 27, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -409,7 +409,7 @@ SlateportCity_EventScript_1DD07C:: @ 81DD07C
faceplayer
msgbox SlateportCity_Text_1DDDC0, MSGBOX_DEFAULT
closemessage
- applymovement 28, SlateportCity_Movement_2725A2
+ applymovement 28, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -419,7 +419,7 @@ SlateportCity_EventScript_1DD093:: @ 81DD093
faceplayer
msgbox SlateportCity_Text_1DDDDF, MSGBOX_DEFAULT
closemessage
- applymovement 29, SlateportCity_Movement_2725A2
+ applymovement 29, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -429,7 +429,7 @@ SlateportCity_EventScript_1DD0AA:: @ 81DD0AA
faceplayer
msgbox SlateportCity_Text_1DDE2F, MSGBOX_DEFAULT
closemessage
- applymovement 30, SlateportCity_Movement_2725A2
+ applymovement 30, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -438,31 +438,31 @@ SlateportCity_EventScript_1DD0C1:: @ 81DD0C1
lock
faceplayer
playse SE_PIN
- applymovement 31, SlateportCity_Movement_272598
+ applymovement 31, Common_Movement_ExclamationMark
waitmovement 0
- applymovement 31, SlateportCity_Movement_27259A
+ applymovement 31, Common_Movement_Delay48
waitmovement 0
msgbox SlateportCity_Text_1DDE6E, MSGBOX_DEFAULT
closemessage
- applymovement 31, SlateportCity_Movement_2725A2
+ applymovement 31, Common_Movement_FaceOriginalDirection
waitmovement 0
applymovement 31, SlateportCity_Movement_1DD147
waitmovement 0
- applymovement 31, SlateportCity_Movement_27259E
+ applymovement 31, Common_Movement_FacePlayer
waitmovement 0
msgbox SlateportCity_Text_1DDE86, MSGBOX_DEFAULT
closemessage
- applymovement 31, SlateportCity_Movement_2725A2
+ applymovement 31, Common_Movement_FaceOriginalDirection
waitmovement 0
applymovement 31, SlateportCity_Movement_1DD147
waitmovement 0
msgbox SlateportCity_Text_1DDEB8, MSGBOX_DEFAULT
closemessage
- applymovement 31, SlateportCity_Movement_27259E
+ applymovement 31, Common_Movement_FacePlayer
waitmovement 0
applymovement 31, SlateportCity_Movement_1DD147
waitmovement 0
- applymovement 31, SlateportCity_Movement_2725A2
+ applymovement 31, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -481,7 +481,7 @@ SlateportCity_EventScript_1DD153:: @ 81DD153
faceplayer
msgbox SlateportCity_Text_1DDF8D, MSGBOX_DEFAULT
closemessage
- applymovement 33, SlateportCity_Movement_2725A2
+ applymovement 33, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -563,10 +563,10 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
msgbox SlateportCity_Text_1DE502, MSGBOX_DEFAULT
msgbox SlateportCity_Text_1DE54A, MSGBOX_DEFAULT
closemessage
- applymovement 10, SlateportCity_Movement_2725A8
+ applymovement 10, Common_Movement_WalkInPlaceRight
waitmovement 0
delay 10
- applymovement 9, SlateportCity_Movement_2725AA
+ applymovement 9, Common_Movement_WalkInPlaceDown
waitmovement 0
delay 25
applymovement 11, SlateportCity_Movement_1DD33C
@@ -577,26 +577,26 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
removeobject 10
removeobject 9
msgbox SlateportCity_Text_1DE5F7, MSGBOX_DEFAULT
- applymovement 11, SlateportCity_Movement_2725A6
+ applymovement 11, Common_Movement_WalkInPlaceUp
waitmovement 0
msgbox SlateportCity_Text_1DE64F, MSGBOX_DEFAULT
playbgm MUS_AQA_0, 0
msgbox SlateportCity_Text_1DE724, MSGBOX_DEFAULT
- applymovement 6, SlateportCity_Movement_2725A4
- applymovement 1, SlateportCity_Movement_2725A4
+ applymovement 6, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceLeft
applymovement 7, SlateportCity_Movement_1DD309
applymovement 3, SlateportCity_Movement_272596
applymovement 2, SlateportCity_Movement_1DD311
waitmovement 0
- applymovement 11, SlateportCity_Movement_2725AA
+ applymovement 11, Common_Movement_WalkInPlaceDown
waitmovement 0
msgbox SlateportCity_Text_1DE7F7, MSGBOX_DEFAULT
playse SE_PIN
- applymovement 11, SlateportCity_Movement_272598
+ applymovement 11, Common_Movement_ExclamationMark
waitmovement 0
- applymovement 11, SlateportCity_Movement_27259A
+ applymovement 11, Common_Movement_Delay48
waitmovement 0
- applymovement 11, SlateportCity_Movement_2725A6
+ applymovement 11, Common_Movement_WalkInPlaceUp
waitmovement 0
msgbox SlateportCity_Text_1DE860, MSGBOX_DEFAULT
msgbox SlateportCity_Text_1DE8A0, MSGBOX_DEFAULT
@@ -609,7 +609,7 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_SUBMARINE_SHADOW
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_AQUA_GRUNT
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_ARCHIE
- setvar VAR_0x4058, 2
+ setvar VAR_SLATEPORT_STATE, 2
warp MAP_SLATEPORT_CITY_HARBOR, 255, 11, 14
waitstate
releaseall
@@ -885,7 +885,7 @@ SlateportCity_EventScript_1DD5CE:: @ 81DD5CE
SlateportCity_EventScript_1DD5DC:: @ 81DD5DC
lockall
- applymovement EVENT_OBJ_ID_PLAYER, SlateportCity_Movement_2725B2
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceUp
waitmovement 0
opendoor 10, 12
waitdooranim
@@ -901,8 +901,8 @@ SlateportCity_EventScript_1DD5DC:: @ 81DD5DC
applymovement 35, SlateportCity_Movement_1DD63A
waitmovement 0
removeobject 35
- addvar VAR_0x40D1, 1
- setvar VAR_0x40D2, 3
+ addvar VAR_SCOTT_STATE, 1
+ setvar VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 3
releaseall
end