Document Four Island scripts, trainer_card.inc
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 0,
|
||||
"trainer_sight_or_berry_tree_id": 0,
|
||||
"script": "FourIsland_EventScript_167E2E",
|
||||
"script": "FourIsland_EventScript_OldWoman",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
@@ -155,7 +155,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 0,
|
||||
"trainer_sight_or_berry_tree_id": 0,
|
||||
"script": "FourIsland_EventScript_167E73",
|
||||
"script": "FourIsland_EventScript_FatMan",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
@@ -168,7 +168,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 0,
|
||||
"trainer_sight_or_berry_tree_id": 0,
|
||||
"script": "FourIsland_EventScript_167E5A",
|
||||
"script": "FourIsland_EventScript_LittleGirl",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
@@ -237,7 +237,7 @@
|
||||
"x": 13,
|
||||
"y": 19,
|
||||
"elevation": 0,
|
||||
"script": "FourIsland_EventScript_167E7C"
|
||||
"script": "FourIsland_EventScript_IslandSign"
|
||||
},
|
||||
{
|
||||
"type": "hidden_item",
|
||||
@@ -264,7 +264,7 @@
|
||||
"x": 31,
|
||||
"y": 23,
|
||||
"elevation": 0,
|
||||
"script": "FourIsland_EventScript_167E85"
|
||||
"script": "FourIsland_EventScript_LoreleisHouseSign"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
.equ LOCALID_DAYCARE_MAN, 1
|
||||
.equ LOCALID_RIVAL, 10
|
||||
|
||||
FourIsland_MapScripts:: @ 8167CAE
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, FourIsland_OnTransition
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, FourIsland_OnFrame
|
||||
@@ -6,65 +9,64 @@ FourIsland_MapScripts:: @ 8167CAE
|
||||
FourIsland_OnTransition:: @ 8167CB9
|
||||
setworldmapflag FLAG_WORLD_MAP_FOUR_ISLAND
|
||||
compare VAR_MAP_SCENE_FOUR_ISLAND, 0
|
||||
call_if_eq EventScript_167CCD
|
||||
call EventScript_167CD1
|
||||
call_if_eq FourIsland_EventScript_ShowRival
|
||||
call FourIsland_EventScript_TrySetDayCareManPos
|
||||
end
|
||||
|
||||
EventScript_167CCD:: @ 8167CCD
|
||||
FourIsland_EventScript_ShowRival:: @ 8167CCD
|
||||
clearflag FLAG_HIDE_FOUR_ISLAND_RIVAL
|
||||
return
|
||||
|
||||
EventScript_167CD1:: @ 8167CD1
|
||||
goto_if_unset FLAG_PENDING_DAYCARE_EGG, EventScript_167CE1
|
||||
setobjectxyperm 1, 16, 14
|
||||
|
||||
EventScript_167CE1:: @ 8167CE1
|
||||
FourIsland_EventScript_TrySetDayCareManPos:: @ 8167CD1
|
||||
goto_if_unset FLAG_PENDING_DAYCARE_EGG, FourIsland_EventScript_EndSetDayCareManPos
|
||||
setobjectxyperm LOCALID_DAYCARE_MAN, 16, 14
|
||||
FourIsland_EventScript_EndSetDayCareManPos:: @ 8167CE1
|
||||
return
|
||||
|
||||
FourIsland_OnFrame:: @ 8167CE2
|
||||
map_script_2 VAR_MAP_SCENE_FOUR_ISLAND, 0, EventScript_167CEC
|
||||
map_script_2 VAR_MAP_SCENE_FOUR_ISLAND, 0, FourIsland_EventScript_RivalScene
|
||||
.2byte 0
|
||||
|
||||
EventScript_167CEC:: @ 8167CEC
|
||||
FourIsland_EventScript_RivalScene:: @ 8167CEC
|
||||
lockall
|
||||
textcolor 0
|
||||
applymovement 10, Movement_WalkInPlaceFastestDown
|
||||
applymovement LOCALID_RIVAL, Movement_WalkInPlaceFastestDown
|
||||
waitmovement 0
|
||||
playbgm MUS_RIVAL1, 0
|
||||
applymovement 10, Movement_ExclamationMark
|
||||
applymovement LOCALID_RIVAL, Movement_ExclamationMark
|
||||
waitmovement 0
|
||||
applymovement 10, Movement_Delay48
|
||||
applymovement LOCALID_RIVAL, Movement_Delay48
|
||||
waitmovement 0
|
||||
delay 25
|
||||
applymovement 10, Movement_167D49
|
||||
applymovement LOCALID_RIVAL, FourIsland_Movement_RivalApproach
|
||||
waitmovement 0
|
||||
msgbox gUnknown_8182B37
|
||||
msgbox FourIsland_Text_RivalAlreadyGotEggBeSmellingYa
|
||||
closemessage
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_167D52
|
||||
applymovement 10, Movement_167D4E
|
||||
applymovement OBJ_EVENT_ID_PLAYER, FourIsland_Movement_PlayerWatchRivalExit
|
||||
applymovement LOCALID_RIVAL, FourIsland_Movement_RivalExit
|
||||
waitmovement 0
|
||||
fadedefaultbgm
|
||||
playse SE_KAIDAN
|
||||
delay 35
|
||||
removeobject 10
|
||||
removeobject LOCALID_RIVAL
|
||||
setvar VAR_MAP_SCENE_FOUR_ISLAND, 1
|
||||
releaseall
|
||||
end
|
||||
|
||||
Movement_167D49:: @ 8167D49
|
||||
FourIsland_Movement_RivalApproach:: @ 8167D49
|
||||
walk_right
|
||||
walk_right
|
||||
walk_down
|
||||
walk_down
|
||||
step_end
|
||||
|
||||
Movement_167D4E:: @ 8167D4E
|
||||
FourIsland_Movement_RivalExit:: @ 8167D4E
|
||||
delay_16
|
||||
delay_4
|
||||
walk_down
|
||||
step_end
|
||||
|
||||
Movement_167D52:: @ 8167D52
|
||||
FourIsland_Movement_PlayerWatchRivalExit:: @ 8167D52
|
||||
walk_left
|
||||
walk_in_place_fastest_right
|
||||
step_end
|
||||
@@ -136,36 +138,36 @@ FourIsland_EventScript_CheckOnTwoMons:: @ 8167E19
|
||||
release
|
||||
end
|
||||
|
||||
FourIsland_EventScript_167E2E:: @ 8167E2E
|
||||
FourIsland_EventScript_OldWoman:: @ 8167E2E
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_167E43
|
||||
msgbox gUnknown_8182A2B
|
||||
goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, FourIsland_EventScript_OldWomanLoreleiLeft
|
||||
msgbox FourIsland_Text_LoreleiHasReturned
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_167E43:: @ 8167E43
|
||||
FourIsland_EventScript_OldWomanLoreleiLeft:: @ 8167E43
|
||||
famechecker FAMECHECKER_LORELEI, 5
|
||||
msgbox gUnknown_8182A75
|
||||
msgbox FourIsland_Text_LoreleiMetLaprasAsChild
|
||||
release
|
||||
end
|
||||
|
||||
FourIsland_EventScript_167E5A:: @ 8167E5A
|
||||
FourIsland_EventScript_LittleGirl:: @ 8167E5A
|
||||
lock
|
||||
faceplayer
|
||||
famechecker FAMECHECKER_LORELEI, 4
|
||||
msgbox gUnknown_8182CE3
|
||||
msgbox FourIsland_Text_LoreleiHasLotsOfStuffedDolls
|
||||
release
|
||||
end
|
||||
|
||||
FourIsland_EventScript_167E73:: @ 8167E73
|
||||
msgbox gUnknown_8182D8E, MSGBOX_NPC
|
||||
FourIsland_EventScript_FatMan:: @ 8167E73
|
||||
msgbox FourIsland_Text_MadeSlushieUsingIcefallCaveIce, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FourIsland_EventScript_167E7C:: @ 8167E7C
|
||||
msgbox gUnknown_8182A03, MSGBOX_SIGN
|
||||
FourIsland_EventScript_IslandSign:: @ 8167E7C
|
||||
msgbox FourIsland_Text_IslandSign, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
FourIsland_EventScript_167E85:: @ 8167E85
|
||||
msgbox gUnknown_8182DEB, MSGBOX_SIGN
|
||||
FourIsland_EventScript_LoreleisHouseSign:: @ 8167E85
|
||||
msgbox FourIsland_Text_LoreleisHouse, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
gUnknown_8182A03:: @ 8182A03
|
||||
FourIsland_Text_IslandSign:: @ 8182A03
|
||||
.string "FOUR ISLAND\n"
|
||||
.string "The Warm, Blue, Floe Island$"
|
||||
|
||||
gUnknown_8182A2B:: @ 8182A2B
|
||||
FourIsland_Text_LoreleiHasReturned:: @ 8182A2B
|
||||
.string "LORELEI has returned.\p"
|
||||
.string "Did she find the city life too\n"
|
||||
.string "stressful, I wonder?$"
|
||||
|
||||
gUnknown_8182A75:: @ 8182A75
|
||||
FourIsland_Text_LoreleiMetLaprasAsChild:: @ 8182A75
|
||||
.string "LORELEI has gone back.\p"
|
||||
.string "The LAPRAS she has, I imagine it\n"
|
||||
.string "to be the one she met as a child.\p"
|
||||
@@ -16,7 +16,7 @@ gUnknown_8182A75:: @ 8182A75
|
||||
.string "Perhaps that POKéMON has been with\n"
|
||||
.string "her ever since.$"
|
||||
|
||||
gUnknown_8182B37:: @ 8182B37
|
||||
FourIsland_Text_RivalAlreadyGotEggBeSmellingYa:: @ 8182B37
|
||||
.string "{RIVAL}: Hey!\n"
|
||||
.string "{PLAYER}!\p"
|
||||
.string "What are you doing here in the\n"
|
||||
@@ -37,7 +37,7 @@ gUnknown_8182B37:: @ 8182B37
|
||||
.string "waste.\p"
|
||||
.string "Be smelling ya!$"
|
||||
|
||||
gUnknown_8182CE3:: @ 8182CE3
|
||||
FourIsland_Text_LoreleiHasLotsOfStuffedDolls:: @ 8182CE3
|
||||
.string "Oh, you found me!\n"
|
||||
.string "Please don't tell LORELEI.\p"
|
||||
.string "Did you know that LORELEI has lots\n"
|
||||
@@ -45,12 +45,12 @@ gUnknown_8182CE3:: @ 8182CE3
|
||||
.string "Every time she comes back to\n"
|
||||
.string "FOUR ISLAND, her collection grows!$"
|
||||
|
||||
gUnknown_8182D8E:: @ 8182D8E
|
||||
FourIsland_Text_MadeSlushieUsingIcefallCaveIce:: @ 8182D8E
|
||||
.string "Ooh, chilly!\p"
|
||||
.string "I made a slushie using ice I\n"
|
||||
.string "shaved inside ICEFALL CAVE.\p"
|
||||
.string "It's chilly and tasty!$"
|
||||
|
||||
gUnknown_8182DEB:: @ 8182DEB
|
||||
FourIsland_Text_LoreleisHouse:: @ 8182DEB
|
||||
.string "LORELEI'S HOUSE$"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user