summaryrefslogtreecommitdiff
path: root/data/maps/DewfordTown/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/DewfordTown/scripts.inc')
-rw-r--r--data/maps/DewfordTown/scripts.inc104
1 files changed, 52 insertions, 52 deletions
diff --git a/data/maps/DewfordTown/scripts.inc b/data/maps/DewfordTown/scripts.inc
index dec181f27..51df11d88 100644
--- a/data/maps/DewfordTown/scripts.inc
+++ b/data/maps/DewfordTown/scripts.inc
@@ -1,5 +1,5 @@
DewfordTown_MapScripts:: @ 814DFF8
- map_script 3, DewfordTown_MapScript1_14DFFE
+ map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_MapScript1_14DFFE
.byte 0
DewfordTown_MapScript1_14DFFE:: @ 814DFFE
@@ -21,21 +21,21 @@ DewfordTown_EventScript_14E002:: @ 814E002
end
DewfordTown_EventScript_14E04B:: @ 814E04B
- msgbox DewfordTown_Text_16B57D, 4
+ msgbox DewfordTown_Text_16B57D, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E151
release
end
DewfordTown_EventScript_14E05B:: @ 814E05B
- msgbox DewfordTown_Text_16B5D2, 4
+ msgbox DewfordTown_Text_16B5D2, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E1D8
release
end
DewfordTown_EventScript_14E06B:: @ 814E06B
- msgbox DewfordTown_Text_16B627, 4
+ msgbox DewfordTown_Text_16B627, MSGBOX_DEFAULT
closemessage
release
end
@@ -44,30 +44,30 @@ DewfordTown_EventScript_14E076:: @ 814E076
msgbox DewfordTown_Text_16B3BC, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq DewfordTown_EventScript_14E093
- msgbox DewfordTown_Text_16B471, 4
+ msgbox DewfordTown_Text_16B471, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E093:: @ 814E093
- msgbox DewfordTown_Text_16B417, 4
+ msgbox DewfordTown_Text_16B417, MSGBOX_DEFAULT
closemessage
goto DewfordTown_EventScript_14E151
end
DewfordTown_EventScript_14E0A2:: @ 814E0A2
- msgbox DewfordTown_Text_16B23B, 2
+ msgbox DewfordTown_Text_16B23B, MSGBOX_NPC
end
DewfordTown_EventScript_14E0AB:: @ 814E0AB
- msgbox DewfordTown_Text_16B2A7, 3
+ msgbox DewfordTown_Text_16B2A7, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0B4:: @ 814E0B4
- msgbox DewfordTown_Text_16B2D5, 3
+ msgbox DewfordTown_Text_16B2D5, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0BD:: @ 814E0BD
- msgbox DewfordTown_Text_16B317, 3
+ msgbox DewfordTown_Text_16B317, MSGBOX_SIGN
end
DewfordTown_EventScript_14E0C6:: @ 814E0C6
@@ -82,15 +82,15 @@ DewfordTown_EventScript_14E0C6:: @ 814E0C6
end
DewfordTown_EventScript_14E0F0:: @ 814E0F0
- msgbox DewfordTown_Text_16B6A8, 4
- giveitem_std ITEM_OLD_ROD
+ msgbox DewfordTown_Text_16B6A8, MSGBOX_DEFAULT
+ giveitem ITEM_OLD_ROD
setflag FLAG_RECEIVED_OLD_ROD
- msgbox DewfordTown_Text_16B6F9, 4
+ msgbox DewfordTown_Text_16B6F9, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E111:: @ 814E111
- msgbox DewfordTown_Text_16B828, 4
+ msgbox DewfordTown_Text_16B828, MSGBOX_DEFAULT
release
end
@@ -105,41 +105,41 @@ DewfordTown_EventScript_14E11B:: @ 814E11B
end
DewfordTown_EventScript_14E13D:: @ 814E13D
- msgbox DewfordTown_Text_16B866, 4
+ msgbox DewfordTown_Text_16B866, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E147:: @ 814E147
- msgbox DewfordTown_Text_16B89A, 4
+ msgbox DewfordTown_Text_16B89A, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E151:: @ 814E151
- call DewfordTown_EventScript_1A010C
+ call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0
setobjectpriority 255, MAP_DEWFORD_TOWN, 0
applymovement 2, DewfordTown_Movement_14E40E
waitmovement 0
removeobject 2
- applymovement 255, DewfordTown_Movement_14E402
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E402
waitmovement 0
- hideobjectat 255, MAP_DEWFORD_TOWN
- call DewfordTown_EventScript_1A02E7
+ hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
+ call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_14E293
- applymovement 255, DewfordTown_Movement_14E293
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E293
waitmovement 0
- showobjectat 255, MAP_ROUTE104
- call DewfordTown_EventScript_1A02EF
- applymovement 255, DewfordTown_Movement_14E405
+ showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
+ call Common_EventScript_StopBrineysBoatMusic
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E405
waitmovement 0
- showobjectat 255, MAP_ROUTE104
+ showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
clearflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
hideobjectat 4, MAP_DEWFORD_TOWN
setvar VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 2
- resetobjectpriority 255, MAP_DEWFORD_TOWN
+ resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
waitstate
@@ -147,22 +147,22 @@ DewfordTown_EventScript_14E151:: @ 814E151
end
DewfordTown_EventScript_14E1D8:: @ 814E1D8
- call DewfordTown_EventScript_1A010C
+ call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0
setobjectpriority 255, MAP_DEWFORD_TOWN, 1
applymovement 2, DewfordTown_Movement_14E40E
waitmovement 0
removeobject 2
- applymovement 255, DewfordTown_Movement_14E402
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E402
waitmovement 0
- hideobjectat 255, MAP_DEWFORD_TOWN
- call DewfordTown_EventScript_1A02E7
+ hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
+ call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_14E356
- applymovement 255, DewfordTown_Movement_14E356
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E356
waitmovement 0
- call DewfordTown_EventScript_1A02EF
- showobjectat 255, MAP_ROUTE109
- applymovement 255, DewfordTown_Movement_14E409
+ call Common_EventScript_StopBrineysBoatMusic
+ showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE109
+ applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_14E409
waitmovement 0
setobjectxyperm 2, 21, 26
addobject 2
@@ -178,18 +178,18 @@ DewfordTown_EventScript_14E1D8:: @ 814E1D8
call_if_set FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_14E28A
closemessage
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
- resetobjectpriority 255, MAP_DEWFORD_TOWN
+ resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
resetobjectpriority 2, MAP_ROUTE109
moveobjectoffscreen 2
release
end
DewfordTown_EventScript_14E281:: @ 814E281
- msgbox DewfordTown_Text_16E080, 4
+ msgbox DewfordTown_Text_16E080, MSGBOX_DEFAULT
return
DewfordTown_EventScript_14E28A:: @ 814E28A
- msgbox DewfordTown_Text_16E1FA, 4
+ msgbox DewfordTown_Text_16E1FA, MSGBOX_DEFAULT
return
DewfordTown_Movement_14E293:: @ 814E293
@@ -387,7 +387,7 @@ DewfordTown_Movement_14E293:: @ 814E293
walk_up
walk_up
walk_up
- end_movement
+ step_end
DewfordTown_Movement_14E356:: @ 814E356
walk_right
@@ -561,39 +561,39 @@ DewfordTown_Movement_14E356:: @ 814E356
walk_fast_up
walk_fast_up
walk_fast_up
- end_movement
+ step_end
DewfordTown_Movement_14E402:: @ 814E402
walk_right
walk_up
- end_movement
+ step_end
DewfordTown_Movement_14E405:: @ 814E405
walk_up
walk_up
walk_up
- end_movement
+ step_end
DewfordTown_Movement_14E409:: @ 814E409
walk_up
walk_up
walk_up
walk_in_place_fastest_down
- end_movement
+ step_end
DewfordTown_Movement_14E40E:: @ 814E40E
walk_up
- end_movement
+ step_end
DewfordTown_Movement_14E410:: @ 814E410
walk_up
walk_up
- end_movement
+ step_end
DewfordTown_EventScript_14E413:: @ 814E413
lock
faceplayer
- call DewfordTown_EventScript_1A0102
+ call Common_EventScript_BufferTrendyPhrase
msgbox DewfordTown_Text_16B9CE, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq DewfordTown_EventScript_14E439
@@ -602,14 +602,14 @@ DewfordTown_EventScript_14E413:: @ 814E413
end
DewfordTown_EventScript_14E439:: @ 814E439
- msgbox DewfordTown_Text_16BD37, 4
+ msgbox DewfordTown_Text_16BD37, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E443:: @ 814E443
- msgbox DewfordTown_Text_16BADC, 4
+ msgbox DewfordTown_Text_16BADC, MSGBOX_DEFAULT
setvar VAR_0x8004, 9
- call DewfordTown_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
@@ -622,21 +622,21 @@ DewfordTown_EventScript_14E46E:: @ 814E46E
incrementgamestat GAME_STAT_STARTED_TRENDS
compare VAR_0x8004, 0
goto_if_eq DewfordTown_EventScript_14E48F
- msgbox DewfordTown_Text_16BB44, 4
+ msgbox DewfordTown_Text_16BB44, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E485:: @ 814E485
- msgbox DewfordTown_Text_16BCE9, 4
+ msgbox DewfordTown_Text_16BCE9, MSGBOX_DEFAULT
release
end
DewfordTown_EventScript_14E48F:: @ 814E48F
- msgbox DewfordTown_Text_16BCA2, 4
+ msgbox DewfordTown_Text_16BCA2, MSGBOX_DEFAULT
release
end
@ 814E499
- msgbox DewfordTown_Text_16BD79, 4
+ msgbox DewfordTown_Text_16BD79, MSGBOX_DEFAULT
release
end