Document Saffron City scripts

This commit is contained in:
GriffinR
2020-01-25 15:54:20 -05:00
parent a09e66b53f
commit ce9f821b4e
62 changed files with 911 additions and 904 deletions
+4 -4
View File
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "Route5_SouthEntrance_EventScript_16F901",
"script": "Route5_SouthEntrance_EventScript_Guard",
"flag": "0"
}
],
@@ -65,7 +65,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES",
"var_value": 0,
"script": "Route5_SouthEntrance_EventScript_16F90A"
"script": "Route5_SouthEntrance_EventScript_GuardTriggerLeft"
},
{
"type": "trigger",
@@ -74,7 +74,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES",
"var_value": 0,
"script": "Route5_SouthEntrance_EventScript_16F916"
"script": "Route5_SouthEntrance_EventScript_GuardTriggerMid"
},
{
"type": "trigger",
@@ -83,7 +83,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES",
"var_value": 0,
"script": "Route5_SouthEntrance_EventScript_16F922"
"script": "Route5_SouthEntrance_EventScript_GuardTriggerRight"
}
],
"bg_events": []
+30 -30
View File
@@ -1,87 +1,87 @@
Route5_SouthEntrance_MapScripts:: @ 816F900
.byte 0
Route5_SouthEntrance_EventScript_16F901:: @ 816F901
msgbox gUnknown_819E16D, MSGBOX_NPC
Route5_SouthEntrance_EventScript_Guard:: @ 816F901
msgbox Route5_SouthEntrance_Text_HiHowsItGoing, MSGBOX_NPC
end
Route5_SouthEntrance_EventScript_16F90A:: @ 816F90A
Route5_SouthEntrance_EventScript_GuardTriggerLeft:: @ 816F90A
lockall
setvar VAR_TEMP_1, 0
goto EventScript_16F92E
goto Route5_SouthEntrance_EventScript_GuardTrigger
end
Route5_SouthEntrance_EventScript_16F916:: @ 816F916
Route5_SouthEntrance_EventScript_GuardTriggerMid:: @ 816F916
lockall
setvar VAR_TEMP_1, 1
goto EventScript_16F92E
goto Route5_SouthEntrance_EventScript_GuardTrigger
end
Route5_SouthEntrance_EventScript_16F922:: @ 816F922
Route5_SouthEntrance_EventScript_GuardTriggerRight:: @ 816F922
lockall
setvar VAR_TEMP_1, 2
goto EventScript_16F92E
goto Route5_SouthEntrance_EventScript_GuardTrigger
end
EventScript_16F92E:: @ 816F92E
Route5_SouthEntrance_EventScript_GuardTrigger:: @ 816F92E
textcolor 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestLeft
waitmovement 0
goto_if_set FLAG_GOT_TEA, EventScript_16F958
msgbox gUnknown_819E04B
goto_if_set FLAG_GOT_TEA, Route5_SouthEntrance_EventScript_GiveTea
msgbox Route5_SouthEntrance_Text_ThirstyOnGuardDuty
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9C4
applymovement OBJ_EVENT_ID_PLAYER, Route5_SouthEntrance_Movement_BlockPlayerEntry
waitmovement 0
releaseall
end
EventScript_16F958:: @ 816F958
Route5_SouthEntrance_EventScript_GiveTea:: @ 816F958
removeitem ITEM_TEA, 1
goto EventScript_16F963
goto Route5_SouthEntrance_EventScript_GuardDrinkTea
end
EventScript_16F963:: @ 816F963
msgbox gUnknown_819E09B
Route5_SouthEntrance_EventScript_GuardDrinkTea:: @ 816F963
msgbox Route5_SouthEntrance_Text_ThatTeaLooksTasty
closemessage
compare VAR_TEMP_1, 0
call_if_eq EventScript_16F99C
call_if_eq Route5_SouthEntrance_EventScript_WalkToGuardLeft
compare VAR_TEMP_1, 1
call_if_eq EventScript_16F9A7
call_if_eq Route5_SouthEntrance_EventScript_WalkToGuardMid
compare VAR_TEMP_1, 2
call_if_eq EventScript_16F9B2
msgbox gUnknown_819E0C1
call_if_eq Route5_SouthEntrance_EventScript_WalkToGuardRight
msgbox Route5_SouthEntrance_Text_ThanksIllShareTeaWithGuards
setvar VAR_MAP_SCENE_ROUTE5_ROUTE6_ROUTE7_ROUTE8_GATES, 1
releaseall
end
EventScript_16F99C:: @ 816F99C
applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9C2
Route5_SouthEntrance_EventScript_WalkToGuardLeft:: @ 816F99C
applymovement OBJ_EVENT_ID_PLAYER, Route5_SouthEntrance_Movement_WalkToGuardLeft
waitmovement 0
return
EventScript_16F9A7:: @ 816F9A7
applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9BD
Route5_SouthEntrance_EventScript_WalkToGuardMid:: @ 816F9A7
applymovement OBJ_EVENT_ID_PLAYER, Route5_SouthEntrance_Movement_WalkToGuardMid
waitmovement 0
return
EventScript_16F9B2:: @ 816F9B2
applymovement OBJ_EVENT_ID_PLAYER, Movement_16F9BF
Route5_SouthEntrance_EventScript_WalkToGuardRight:: @ 816F9B2
applymovement OBJ_EVENT_ID_PLAYER, Route5_SouthEntrance_Movement_WalkToGuardRight
waitmovement 0
return
Movement_16F9BD:: @ 816F9BD
Route5_SouthEntrance_Movement_WalkToGuardMid:: @ 816F9BD
walk_left
step_end
Movement_16F9BF:: @ 816F9BF
Route5_SouthEntrance_Movement_WalkToGuardRight:: @ 816F9BF
walk_left
walk_left
step_end
Movement_16F9C2:: @ 816F9C2
Route5_SouthEntrance_Movement_WalkToGuardLeft:: @ 816F9C2
walk_in_place_left
step_end
Movement_16F9C4:: @ 816F9C4
Route5_SouthEntrance_Movement_BlockPlayerEntry:: @ 816F9C4
walk_up
step_end
+4 -12
View File
@@ -1,21 +1,13 @@
Text_19E01E:: @ 819E01E
.string "きみの\n"
.string "みてみるかね?$"
Text_19E02A:: @ 819E02A
.string "わるいけど ひでんのわざを もった\n"
.string "ポケモンは あずかれないなぁ$"
gUnknown_819E04B:: @ 819E04B
Route5_SouthEntrance_Text_ThirstyOnGuardDuty:: @ 819E04B
.string "I'm on guard duty.\n"
.string "Gee, I'm thirsty, though!\p"
.string "Oh, wait there, the road's closed.$"
gUnknown_819E09B:: @ 819E09B
Route5_SouthEntrance_Text_ThatTeaLooksTasty:: @ 819E09B
.string "Oh, that TEA…\n"
.string "It looks awfully tasty…$"
gUnknown_819E0C1:: @ 819E0C1
Route5_SouthEntrance_Text_ThanksIllShareTeaWithGuards:: @ 819E0C1
.string "Huh? I can have this drink?\n"
.string "Gee, thanks!\l"
.string "… …\l"
@@ -29,6 +21,6 @@ gUnknown_819E0C1:: @ 819E0C1
.string "I'll share this TEA with the other\n"
.string "guards!$"
gUnknown_819E16D:: @ 819E16D
Route5_SouthEntrance_Text_HiHowsItGoing:: @ 819E16D
.string "Hi, how's it going?$"