Document Routes 15-19 scripts

This commit is contained in:
GriffinR
2020-02-24 13:28:45 -05:00
parent a0fa06a066
commit d1b1709ef9
39 changed files with 804 additions and 802 deletions
+12 -12
View File
@@ -25,7 +25,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "Route18_EastEntrance_1F_EventScript_170391",
"script": "Route18_EastEntrance_1F_EventScript_Guard",
"flag": "0"
}
],
@@ -60,7 +60,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1A77C1"
"script": "EventScript_SetEnteringCyclingRoad"
},
{
"type": "trigger",
@@ -69,7 +69,7 @@
"elevation": 3,
"var": "VAR_TEMP_1",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_17039A"
"script": "Route18_EastEntrance_1F_EventScript_NeedBikeTriggerTop"
},
{
"type": "trigger",
@@ -78,7 +78,7 @@
"elevation": 3,
"var": "VAR_TEMP_1",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1703A6"
"script": "Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMidTop"
},
{
"type": "trigger",
@@ -87,7 +87,7 @@
"elevation": 3,
"var": "VAR_TEMP_1",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1703B2"
"script": "Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMid"
},
{
"type": "trigger",
@@ -96,7 +96,7 @@
"elevation": 3,
"var": "VAR_TEMP_1",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1703BE"
"script": "Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMidBottom"
},
{
"type": "trigger",
@@ -105,7 +105,7 @@
"elevation": 3,
"var": "VAR_TEMP_1",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1703CA"
"script": "Route18_EastEntrance_1F_EventScript_NeedBikeTriggerBottom"
},
{
"type": "trigger",
@@ -114,7 +114,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 1,
"script": "Route18_EastEntrance_1F_EventScript_1A77B6"
"script": "EventScript_SetExitingCyclingRoad"
},
{
"type": "trigger",
@@ -123,7 +123,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 1,
"script": "Route18_EastEntrance_1F_EventScript_1A77B6"
"script": "EventScript_SetExitingCyclingRoad"
},
{
"type": "trigger",
@@ -132,7 +132,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 1,
"script": "Route18_EastEntrance_1F_EventScript_1A77B6"
"script": "EventScript_SetExitingCyclingRoad"
},
{
"type": "trigger",
@@ -141,7 +141,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1A77C1"
"script": "EventScript_SetEnteringCyclingRoad"
},
{
"type": "trigger",
@@ -150,7 +150,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE16",
"var_value": 0,
"script": "Route18_EastEntrance_1F_EventScript_1A77C1"
"script": "EventScript_SetEnteringCyclingRoad"
}
],
"bg_events": []
+35 -35
View File
@@ -4,111 +4,111 @@ Route18_EastEntrance_1F_MapScripts:: @ 8170378
Route18_EastEntrance_1F_OnTransition:: @ 817037E
clearflag FLAG_SYS_ON_CYCLING_ROAD
call_if_set FLAG_GOT_BICYCLE, EventScript_17038B
call_if_set FLAG_GOT_BICYCLE, Route18_EastEntrance_1F_EventScript_DisableNeedBikeTrigger
end
EventScript_17038B:: @ 817038B
Route18_EastEntrance_1F_EventScript_DisableNeedBikeTrigger:: @ 817038B
setvar VAR_TEMP_1, 1
return
Route18_EastEntrance_1F_EventScript_170391:: @ 8170391
msgbox gUnknown_819FD3A, MSGBOX_NPC
Route18_EastEntrance_1F_EventScript_Guard:: @ 8170391
msgbox Route18_EastEntrance_1F_Text_CyclingRoadAllUphillFromHere, MSGBOX_NPC
end
Route18_EastEntrance_1F_EventScript_17039A:: @ 817039A
Route18_EastEntrance_1F_EventScript_NeedBikeTriggerTop:: @ 817039A
lockall
setvar VAR_0x8008, 0
goto EventScript_1703D6
goto Route18_EastEntrance_1F_EventScript_NeedBikeTrigger
end
Route18_EastEntrance_1F_EventScript_1703A6:: @ 81703A6
Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMidTop:: @ 81703A6
lockall
setvar VAR_0x8008, 1
goto EventScript_1703D6
goto Route18_EastEntrance_1F_EventScript_NeedBikeTrigger
end
Route18_EastEntrance_1F_EventScript_1703B2:: @ 81703B2
Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMid:: @ 81703B2
lockall
setvar VAR_0x8008, 2
goto EventScript_1703D6
goto Route18_EastEntrance_1F_EventScript_NeedBikeTrigger
end
Route18_EastEntrance_1F_EventScript_1703BE:: @ 81703BE
Route18_EastEntrance_1F_EventScript_NeedBikeTriggerMidBottom:: @ 81703BE
lockall
setvar VAR_0x8008, 3
goto EventScript_1703D6
goto Route18_EastEntrance_1F_EventScript_NeedBikeTrigger
end
Route18_EastEntrance_1F_EventScript_1703CA:: @ 81703CA
Route18_EastEntrance_1F_EventScript_NeedBikeTriggerBottom:: @ 81703CA
lockall
setvar VAR_0x8008, 4
goto EventScript_1703D6
goto Route18_EastEntrance_1F_EventScript_NeedBikeTrigger
end
EventScript_1703D6:: @ 81703D6
Route18_EastEntrance_1F_EventScript_NeedBikeTrigger:: @ 81703D6
textcolor 0
msgbox gUnknown_819FD60
msgbox Route18_EastEntrance_1F_Text_ExcuseMe
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestUp
waitmovement 0
delay 20
compare VAR_0x8008, 1
call_if_eq EventScript_17042F
call_if_eq Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMidTop
compare VAR_0x8008, 2
call_if_eq EventScript_17043A
call_if_eq Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMid
compare VAR_0x8008, 3
call_if_eq EventScript_170445
call_if_eq Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMidBottom
compare VAR_0x8008, 4
call_if_eq EventScript_170450
msgbox gUnknown_819FD0C
call_if_eq Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterBottom
msgbox Route18_EastEntrance_1F_Text_NeedBicycleForCyclingRoad
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_170469
applymovement OBJ_EVENT_ID_PLAYER, Route18_EastEntrance_1F_Movement_WalkRight
waitmovement 0
releaseall
end
EventScript_17042F:: @ 817042F
applymovement OBJ_EVENT_ID_PLAYER, Movement_17045B
Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMidTop:: @ 817042F
applymovement OBJ_EVENT_ID_PLAYER, Route18_EastEntrance_1F_Movement_WalkUp
waitmovement 0
return
EventScript_17043A:: @ 817043A
applymovement OBJ_EVENT_ID_PLAYER, Movement_17045D
Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMid:: @ 817043A
applymovement OBJ_EVENT_ID_PLAYER, Route18_EastEntrance_1F_Movement_WalkUp2
waitmovement 0
return
EventScript_170445:: @ 8170445
applymovement OBJ_EVENT_ID_PLAYER, Movement_170460
Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterMidBottom:: @ 8170445
applymovement OBJ_EVENT_ID_PLAYER, Route18_EastEntrance_1F_Movement_WalkUp3
waitmovement 0
return
EventScript_170450:: @ 8170450
applymovement OBJ_EVENT_ID_PLAYER, Movement_170464
Route18_EastEntrance_1F_EventScript_PlayerWalkToCounterBottom:: @ 8170450
applymovement OBJ_EVENT_ID_PLAYER, Route18_EastEntrance_1F_Movement_WalkUp4
waitmovement 0
return
Movement_17045B:: @ 817045B
Route18_EastEntrance_1F_Movement_WalkUp:: @ 817045B
walk_up
step_end
Movement_17045D:: @ 817045D
Route18_EastEntrance_1F_Movement_WalkUp2:: @ 817045D
walk_up
walk_up
step_end
Movement_170460:: @ 8170460
Route18_EastEntrance_1F_Movement_WalkUp3:: @ 8170460
walk_up
walk_up
walk_up
step_end
Movement_170464:: @ 8170464
Route18_EastEntrance_1F_Movement_WalkUp4:: @ 8170464
walk_up
walk_up
walk_up
walk_up
step_end
Movement_170469:: @ 8170469
Route18_EastEntrance_1F_Movement_WalkRight:: @ 8170469
walk_right
step_end
+3 -3
View File
@@ -1,11 +1,11 @@
gUnknown_819FD0C:: @ 819FD0C
Route18_EastEntrance_1F_Text_NeedBicycleForCyclingRoad:: @ 819FD0C
.string "You need a BICYCLE to go out on\n"
.string "CYCLING ROAD!$"
gUnknown_819FD3A:: @ 819FD3A
Route18_EastEntrance_1F_Text_CyclingRoadAllUphillFromHere:: @ 819FD3A
.string "CYCLING ROAD is all uphill from\n"
.string "here.$"
gUnknown_819FD60:: @ 819FD60
Route18_EastEntrance_1F_Text_ExcuseMe:: @ 819FD60
.string "Excuse me!$"