Rename scripts

This commit is contained in:
octorock
2021-12-26 23:22:16 +01:00
parent 11bb0e7656
commit 2ccf89a1fb
643 changed files with 8481 additions and 7693 deletions
@@ -0,0 +1,244 @@
@ First look at Ezlo EzloCap
SCRIPT_START script_EzloCap
BeginBlock
SetEntitySpeed 0x0040
DoPostScriptAction 0x0007
EndBlock
_0807E930 0x0020
WaitForSomething2 0x00000004
_0807E930 0x0022
Call sub_0807F3C8
MessageFromTargetPos 0x1102, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0021
Call sub_0807F3C8
MessageFromTargetPos 0x1103, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x0004
Wait 0x003c
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x0011
_0807E930 0x001c
MessageFromTargetPos 0x1105, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0022
Call sub_0807F3C8
MessageFromTargetPos 0x1106, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001c
Call sub_0806D96C
MessageFromTargetPos 0x1107, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0021
Call sub_0807F3C8
MessageFromTargetPos 0x1108, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001c
Call sub_0806D96C
MessageFromTargetPos 0x1109, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
DoPostScriptAction 0x000a
_0807E9D4
_0807E5F8 0x00000008
script_080127F2:
EndBlock
BeginBlock
CheckRoomFlag 0x0000
JumpIf script_08012824
CheckEntityInteractType
JumpIfNot script_080127F2
EndBlock
_0807E864
Call sub_0806D944
_0807E930 0x0010
MessageFromTargetPos 0x1114, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0020
_0807E878
Jump script_080127F2
script_08012824:
_0807E864
_0807E9DC
CallWithArg sub_0807F5B0, 0x0000003c
Call sub_080791D0
EndBlock
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x000b
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
Call sub_0806D944
_0807E930 0x0010
MessageFromTargetPos 0x110a, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001f
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0010
MessageFromTargetPos 0x110b, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001f
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x0004
Wait 0x003c
_0807E930 0x0010
MessageFromTargetPos 0x110c, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001f
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0010
MessageFromTargetPos 0x110d, 0x000c
WaitUntilTextboxCloses
_0807E930 0x001f
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807E930 0x0010
MessageFromTargetPos 0x110e, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0018
SetEntitySpeed 0x0080
Call sub_0806D908
_0807EC1C 0x0010
DoPostScriptAction 0x000a
_0807E9D4
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
script_08012904:
EndBlock
BeginBlock
Call sub_0806D944
CheckEntityInteractType
JumpIf script_08012920
CheckPlayerInRegion2 0x3030
JumpIfNot script_0801293A
Jump script_08012904
script_08012920:
_0807E864
_0807E930 0x0010
EndBlock
MessageFromTargetPos 0x1115, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0018
_0807E878
Jump script_08012904
script_0801293A:
EndBlock
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
_0807EB8C
Call sub_0806D944
_0807E930 0x0010
MessageFromTargetPos 0x110f, 0x000c
_0807E930 0x0018
SetEntitySpeed 0x0080
Call sub_0806D908
_0807EC1C 0x0050
WaitUntilTextboxCloses
Call sub_0807DF50
_0807E878
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
script_08012984:
EndBlock
BeginBlock
Call sub_0806D944
CheckEntityInteractType
JumpIf script_080129A0
CheckPlayerInRegion2 0x3030
JumpIfNot script_080129BA
Jump script_08012984
script_080129A0:
_0807E864
_0807E930 0x0010
EndBlock
MessageFromTargetPos 0x1115, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0018
_0807E878
Jump script_08012984
script_080129BA:
EndBlock
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
_0807EB8C
Call sub_0806D944
_0807E930 0x0010
MessageFromTargetPos 0x1110, 0x000c
_0807E930 0x0018
SetEntitySpeed 0x0080
Call sub_0806D908
_0807EC1C 0x0050
_0807E930 0x0018
WaitUntilTextboxCloses
Call sub_0807DF50
_0807E878
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
script_08012A08:
EndBlock
BeginBlock
Call sub_0806D944
CheckEntityInteractType
JumpIf script_08012A24
CheckPlayerInRegion2 0x3030
JumpIfNot script_08012A3E
Jump script_08012A08
script_08012A24:
_0807E864
_0807E930 0x0010
EndBlock
MessageFromTargetPos 0x1115, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0018
_0807E878
Jump script_08012A08
script_08012A3E:
EndBlock
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
StopBgm
DoPostScriptAction 0x000b
_0807EB8C
Call sub_0806D944
_0807E930 0x0010
MessageFromTargetPos 0x1111, 0x000c
_0807E930 0x0018
SetEntitySpeed 0x0080
Call sub_0806D8A0
script_08012A74:
_0807EE30
JumpIfNot script_08012A74
_0807E930 0x001f
WaitUntilTextboxCloses
StartPlayerScript script_PlayerGetEzloCap
Call sub_0806D9A4
DoPostScriptAction 0x0008
Wait 0x0078
PlayBgm BGM_EZLO_THEME
BeginBlock
_0807E8E4_2
_0807EB28 0x1112
EndBlock
WaitUntilTextboxCloses
_0807E5F8 0x00000008
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,135 @@
@ Minish Woods Ezlo Cutscene NPC4E
SCRIPT_START script_Npc4EEzloCutscene
BeginBlock
Call sub_08054564
EndBlock
script_0801248A:
CheckPlayerInRegion 0x0208, 0x02c8, 0x4020
JumpIfNot script_0801248A
StopBgm
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
StartPlayerScript script_PlayerAtFirstLookAtEzlo
MessageFromTargetPos 0x1101, 0x0007
WaitUntilTextboxCloses
CameraTargetPlayer
_0807E778 0x0004
_0807E80C 0x00000000
WaitFor_2
_0807E858 0x0000
Call sub_080791BC
LoadRoomEntityList gUnk_080F4D70
Call DeleteAllEnemies
SetEntityPositionRelative 0x0388, 0x0168
Call sub_0807F844
_0807E778 0x0004
_0807E800 0x00000000
WaitFor_2
PlayBgm BGM_EZLO_THEME
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000040
WaitForSomething2 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StopBgm
_0807E778 0x0004
_0807E80C 0x00000000
WaitFor_2
MoveEntityToPlayer
Call sub_0807F844
CameraTargetPlayer
SetFadeMask 0xffffffff
_0807E778 0x0004
_0807E800 0x00000000
WaitFor_2
Call sub_0807DF50
_0807E878
PlayBGM
script_08012566:
CheckPlayerInRegion 0x03a0, 0x01a0, 0x1020
JumpIfNot script_08012566
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
Call sub_0806DC7C
StopBgm
StartPlayerScript script_PlayerEzloBeingBullied
WaitForSomething2 0x00000001
SetEntityPositionRelative 0x0388, 0x0168
_0807F0B4 0x0001
CameraTargetEntity
Wait 0x005a
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
PlayBgm BGM_EZLO_THEME
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000040
WaitForSomething2 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StopBgm
PlayBgm BGM_FIGHT_THEME2
Call sub_0807DF50
_0807E878
_0807E5F8 0x00000050
LoadRoomEntityList gUnk_080F51D0
WaitForSomething2 0x00000008
_0807E864
Call sub_0807FA40
Call sub_0807DF28
PlaySound SFX_SECRET
StopBgm
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StartPlayerScript script_PlayerDefeatedOctoroks
WaitForSomething2 0x00000001
_0807E8E4_0
PlayBgm BGM_EZLO_THEME
Wait 0x001e
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StopBgm
Wait 0x003c
PlayBGM
Call sub_0806DCA0
_0807F0B4 0x0004
CameraTargetPlayer
Call sub_0807DF50
_0807E878
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StopBgm
Wait 0x003c
PlayBGM
Call sub_08054570
SetGlobalFlag 0x0014
CallWithArg sub_0807F6F8, 0x00000008
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,21 @@
@ First look at Ezlo OBJECT_6A left octorok
SCRIPT_START script_Object6ALeftBullyingOctorok
BeginBlock
_0807EB44 0x0002
DoPostScriptAction 0x0007
_0807E930 0x0001
EndBlock
WaitForSomething2 0x00000040
_0807E930 0x0005
Wait 0x001e
_0807E5F8 0x00000080
_0807E930 0x0001
WaitForSomething2 0x00000040
_0807E930 0x0005
Wait 0x001e
_0807E5F8 0x00000080
_0807E930 0x0001
WaitForSomething2 0x00000040
Wait 0x0001
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,21 @@
@ First look at Ezlo OBJECT_6A right octorok
SCRIPT_START script_Object6ARightBullyingOctorok
BeginBlock
_0807EB44 0x0006
DoPostScriptAction 0x0007
_0807E930 0x0003
EndBlock
WaitForSomething2 0x00000010
_0807E930 0x0007
Wait 0x001e
_0807E5F8 0x00000020
_0807E930 0x0003
WaitForSomething2 0x00000010
_0807E930 0x0007
Wait 0x001e
_0807E5F8 0x00000020
_0807E930 0x0003
WaitForSomething2 0x00000010
Wait 0x0001
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,10 @@
@ First look at Ezlo Player
SCRIPT_START script_PlayerAtFirstLookAtEzlo
EndBlock
script_08012AB2:
_0807EB44 0x0002
Wait 0x000a
_0807EB44 0x0006
Wait 0x000a
Jump script_08012AB2
.2byte 0x0000
@@ -0,0 +1,12 @@
@ Ezlo octoroks defeated Player
SCRIPT_START script_PlayerDefeatedOctoroks
BeginBlock
SetEntitySpeed 0x0100
EndBlock
DoPostScriptAction 0x0001
_0807EDD4 0x0388, 0x0180
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,13 @@
@ Ezlo being bullied Player
SCRIPT_START script_PlayerEzloBeingBullied
BeginBlock
SetEntitySpeed 0x0080
EndBlock
_0807EB44 0x0000
DoPostScriptAction 0x0000
DoPostScriptAction 0x0004
Wait 0x003c
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,5 @@
@ Get Ezlo cap Player
SCRIPT_START script_PlayerGetEzloCap
DoPostScriptAction 0x0015
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,20 @@
@ Intro house door
SCRIPT_START script_HouseDoorIntro
BeginBlock
EndBlock
WaitForSomething2 0x00000010
@ Open door
PlaySound SFX_F0
DoPostScriptAction 0x0008
Wait 0x001e
@ Close door
PlaySound SFX_F1
DoPostScriptAction 0x0007
Wait 0x005a
_0807E778 0x0004
@ Circle transition
_0807E80C 0x00000000
WaitFor_2 @ Wait for end of transition
Call sub_0805367C
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,17 @@
@ Intro camera target
SCRIPT_START script_IntroCameraTarget
SetEntityPositionRelative 0x0240, 0x0178
CameraTargetEntity
SetEntitySpeed 0x0080
Wait 0x0078
PlayBgm BGM_MINISH_CAP
_0807E778 0x0002
@ Fade in
DoFade4
WaitFor_2 @ TODO wait for fade to be finished
Wait 0x0078
_0807E5F8 0x00000004
Call sub_08053648
@ Move camera target down
_0807EDD4 0x0240, 0x0228
SCRIPT_END
@@ -0,0 +1,21 @@
@ NPC4E in front of links house during intro
SCRIPT_START script_Npc4EOutsideLinksHouse
BeginBlock
SetEntityPositionRelative 0x0238, 0x01a8
Call sub_0807F844
Call sub_0807F348
_0807E864
Call sub_0807DF28
EndBlock
_0807E778 0x0010
DoFade6
WaitFor_2
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
_0807F0B4 0x0004
CameraTargetPlayer
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,16 @@
@ Intro smith OBJECT_69 ?
SCRIPT_START script_Object69Intro
BeginBlock
Call sub_0807DF28
_0807E864
_0807E5F8 0x00000000
EndBlock
WaitFor_2
Wait 0x0078
_0807E5F8 0x00000004
WaitForSomething2 0x00000001
SetGlobalFlag 0x001c
Call sub_0807DF50
_0807E878
Call sub_0807921C
SCRIPT_END
@@ -0,0 +1,9 @@
@ Intro unknown second OBJECT_69
SCRIPT_START script_Object69Intro2
Wait 0x003c
script_08009A38:
Call sub_08066258
Wait 0x001e
Call sub_08066258
Wait 0x005a
Jump script_08009A38
@@ -0,0 +1,24 @@
@ Intro Player
SCRIPT_START script_PlayerIntro
BeginBlock
Call sub_0807DF28
_0807E864
SetLocalFlag 0x0046
EndBlock
WaitFor_2
Wait 0x001e
@ Wake up message
MessageFromTarget 0x1005
WaitUntilTextboxCloses
Wait 0x003c
Call sub_0807529C
Wait 0x003c
@ Exclamation mark
DoPostScriptAction 0x0014
Wait 0x001e
@ Give control to the player?
Call sub_08053250
_0807E878
Call sub_0807DF50
Call sub_080791D0
SCRIPT_END
@@ -0,0 +1,28 @@
@ Player at Smith during intro
SCRIPT_START script_PlayerMoveToSmith
BeginBlock
_0807E8E4_1
SetEntitySpeed 0x00c0
EndBlock
_0807E5F8 0x00000004
DoPostScriptAction 0x0004
Wait 0x003c
_0807EDD4 0x0040, 0x0060
_0807EDD4 0x0060, 0x0068
_0807E5F8 0x00000004
DoPostScriptAction 0x0000
_0807E8E4_0
Wait 0x000f
PlaySound SFX_VO_ZELDA1
DoPostScriptAction 0x0000
Wait 0x001e
_0807E5F8 0x00000008
WaitForSomething2 0x00000002
_0807EDD4 0x0070, 0x005c
_0807E8E4_1
DoPostScriptAction 0x0000
Wait 0x000f
_0807E5F8 0x00000008
WaitForSomething2 0x00000002
_0807E5F8 0x00000008
SCRIPT_END
@@ -0,0 +1,38 @@
@ Intro Smith 1
SCRIPT_START script_SmithIntro
BeginBlock
Call sub_0807F348
SetEntitySpeed 0x0040
_0807EB44 0x0004
_0807E930 0x000c
_0807E908 0x0003
EndBlock
Wait 0x001e
CameraTargetEntity
_0807E778 0x0004
_0807E800 0x00000000
WaitFor_2
WaitForSomething2 0x00000008
DoPostScriptAction 0x0004
Wait 0x001e
_0807E930 0x000b
Wait 0x001e
MessageFromTarget 0x1002
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E908 0x0001
_0807EB44 0x0004
_0807EDD4 0x00b8, 0x005c
_0807EB44 0x0006
DoPostScriptAction 0x0001
MessageFromTarget 0x1004
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
Wait 0x001e
_0807E778 0x0002
DoFade5
WaitFor_2
Call sub_08053634
SCRIPT_END
@@ -0,0 +1,66 @@
@ Intro Smith 2
SCRIPT_START script_SmithIntro2
BeginBlock
_0807EB44 0x0006
SetEntitySpeed 0x0080
_0807E9D4
Call sub_0807F348
EndBlock
CheckGlobalFlag 0x0013
JumpIf script_08009C4C
_0807E888
Wait 0x000a
_0807E864
StartPlayerScript script_PlayerMoveToSmith
Call sub_0807DF28
WaitForSomething2 0x00000008
_0807EDD4 0x0080, 0x005c
_0807EB44 0x0006
DoPostScriptAction 0x0000
Wait 0x000f
DoPostScriptAction 0x0001
MessageFromTargetPos 0x1009, 0x0000
_0807E8E4_1
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807EB8C
DoPostScriptAction 0x0001
MessageFromTargetPos 0x100b, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000008
_0807EDD4 0x007c, 0x005c
Wait 0x000f
DoPostScriptAction 0x000d
_0807EDD4 0x0084, 0x005c
_0807EB44 0x0006
DoPostScriptAction 0x000c
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000008
Call sub_08053250
@ Give player rusty sword
_0807F034 0x0034
WaitPlayerGetItem
_0807E8E4_1
DoPostScriptAction 0x0001
MessageFromTargetPos 0x100c, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
script_08009C4C:
@ Talk to Smith
DoPostScriptAction 0x000a
script_08009C50:
CheckEntityInteractType
JumpIfNot script_08009C50
_0807E864
_0807EB74
MessageNoOverlap 0x100e
_0807E878
Jump script_08009C50
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,24 @@
@ Intro Zelda at Smith
SCRIPT_START script_ZeldaIntro
BeginBlock
Call sub_0807F348
SetEntitySpeed 0x00c0
_0807EB44 0x0002
DoPostScriptAction 0x0008
EndBlock
WaitForSomething2 0x00000004
DoPostScriptAction 0x0007
_0807EDD4 0x0068, 0x0060
Wait 0x000f
MessageFromTarget 0x1001
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x0001
MessageFromTarget 0x1003
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000008
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,19 @@
@ Intro Zelda leaving
SCRIPT_START script_ZeldaLeaveLinksHouse
BeginBlock
SetEntitySpeed 0x0100
_0807EB44 0x0006
EndBlock
_0807EDD4 0x0078, 0x0060
_0807EDD4 0x0078, 0x007c
Wait 0x001e
Call sub_0805368C
Wait 0x0008
_0807EDD4 0x0078, 0x0098
DoPostScriptAction 0x0008
_0807E778 0x0010
DoFade5
WaitFor_2
Call sub_08053634
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,29 @@
@ Intro Zelda moves to links house
SCRIPT_START script_ZeldaMoveToLinksHouse
BeginBlock
SetEntityPositionRelative 0x01e8, 0x0110
SetEntitySpeed 0x00c0
DoPostScriptAction 0x0008
EndBlock
WaitForSomething2 0x00000004
DoPostScriptAction 0x0007
_0807EDD4 0x01e8, 0x0200
_0807EDD4 0x01f8, 0x0218
_0807EDD4 0x0220, 0x0228
_0807EDD4 0x0240, 0x0228
@ Now the camera follows Zelda
CameraTargetEntity
_0807EDD4 0x0290, 0x0228
_0807EDD4 0x0290, 0x01f8
SetEntitySpeed 0x0080
_0807EDD4 0x0290, 0x01c8
SetEntitySpeed 0x00c0
_0807EDD4 0x0290, 0x0198
Wait 0x001e
@ Door is opening
_0807E5F8 0x00000010 @ Send signal to door
_0807EDD4 0x0290, 0x0190
DoPostScriptAction 0x0008
_0807EDD4 0x0290, 0x0188
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,76 @@
@ Zelda intro in front of links house
SCRIPT_START script_ZeldaOutsideLinksHouse
BeginBlock
SetEntitySpeed 0x0180
DoPostScriptAction 0x000a
Call sub_08066D04
Call sub_08066D14
SetEntityPositionRelative 0x01e8, 0x0180
_0807EB44 0x0004
DoPostScriptAction 0x0000
EndBlock
WaitForSomething2 0x00000001
Call sub_08066E08
_0807E864
MessageFromTargetPos 0x1010, 0x000c
WaitUntilTextboxCloses
_0807E5F8 0x00000002
script_08014D1E:
EndBlock
BeginBlock
@ Left of links house
CheckPlayerInRegion 0x01d8, 0x0160, 0x3050
JumpIfNot script_08014D1E
EndBlock
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
MessageNoOverlap 0x1012
WaitUntilTextboxCloses
_0807EC64 0x0040
_0807EB44 0x0004
Call sub_08066E08
SetEntityPositionRelative 0x01f8, 0x00c8
Call sub_0807DF50
_0807E878
script_08014D60:
@ Between trees
CallWithArg sub_0807F6B4, 0x000000e8
JumpIf script_08014D60
_0807E864
Call sub_0807DF28
MessageNoOverlap 0x1013
WaitUntilTextboxCloses
_0807EC64 0x0040
_0807EB44 0x0004
DoPostScriptAction 0x0000
SetEntityPositionRelative 0x01e8, 0x0028
Call sub_0807DF50
_0807E878
script_08014D96:
@ Before hyrule town entry
CheckPlayerInRegion 0x01f8, 0x0028, 0x2040
JumpIfNot script_08014D96
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
MessageNoOverlap 0x1014
WaitUntilTextboxCloses
_0807EC64 0x0018
.ifdef JP
SetLocalFlag 0x006b
.else
.ifdef EU
SetLocalFlag 0x006b
.else
.ifdef DEMO_JP
SetLocalFlag 0x006b @ TODO deduplicate
.else
SetLocalFlag 0x006d
.endif
.endif
.endif
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,41 @@
@ Intro Zelda at Smith 2
SCRIPT_START script_ZeldaTalkToSmith
BeginBlock
_0807EB44 0x0002
SetEntitySpeed 0x0100
Call sub_0807F348
EndBlock
WaitForSomething2 0x00000004
DoPostScriptAction 0x0004
_0807EB74
WaitForSomething2 0x00000004
_0807EB74
WaitForSomething2 0x00000004
_0807EB74
_0807EB8C
DoPostScriptAction 0x0001
MessageFromTargetPos 0x100a, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807EB8C
DoPostScriptAction 0x0001
_0807EB8C
_0807EB44 0x0002
MessageFromTargetPos 0x100d, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
@ Leave room
_0807EDD4 0x0028, 0x0060
_0807EDD4 0x0000, 0x0060
Call sub_080536A8
Wait 0x001e
BeginBlock
SetGlobalFlag 0x0013
Call sub_0807DF50
Call sub_080791D0
_0807E878
EndBlock
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,19 @@
@ Intro Assembly Guard
SCRIPT_START script_GuardAtAssembly
BeginBlock
_0807EB44 0x0000
_0807E930 0x0000
EndBlock
WaitForSomething 0x00000010
PlaySound SFX_11C
_0807E930 0x0001
Wait 0x0010
PlaySound SFX_11C
_0807EB44 0x0004
_0807E930 0x0006
Wait 0x0010
DoPostScriptAction 0x000f
SetEntitySpeed 0x0200
_0807ECC4 0x1c20
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,68 @@
@ Intro Assembly King Daltus
SCRIPT_START script_KingDaltusAtAssembly
BeginBlock
Call sub_0807F348
SetEntitySpeed 0x0100
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E9D4
DoPostScriptAction 0x000a
EndBlock
WaitForSomething2 0x00000080
_0807EB44 0x0004
_0807ECC4 0x0008
_0807E930 0x0004
MessageFromTargetPos 0x1050, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807E930 0x0004
MessageFromTargetPos 0x1052, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807EB44 0x0006
_0807E930 0x0005
MessageFromTargetPos 0x1054, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807EB44 0x0004
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807E930 0x0004
MessageFromTargetPos 0x1056, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807E930 0x0004
MessageFromTargetPos 0x1057, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807E930 0x0004
MessageFromTargetPos 0x1058, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
WaitForSomething2 0x00000080
_0807E930 0x0004
MessageFromTargetPos 0x105c, 0x000e
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000100
script_0800917C:
CheckEntityInteractType
JumpIfNot script_0800917C
_0807E864
_0807EB74
Call sub_0806673C
WaitUntilTextboxCloses
Wait 0x000f
_0807E878
Jump script_0800917C
@@ -0,0 +1,19 @@
@ Intro Assembly Minister Potho
SCRIPT_START script_MinisterPothoAtAssembly
BeginBlock
_0807EB44 0x0004
DoPostScriptAction 0x0000
EndBlock
WaitForSomething2 0x00000004
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
_0807EB44 0x0002
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807EB44 0x0004
_0807E5F8 0x00000008
BeginBlock
_0807E9D4
DoPostScriptAction 0x000a
Jump script_0800927E
.2byte 0x0000
@@ -0,0 +1,77 @@
@ Intro Assembly NPC4E
SCRIPT_START script_Npc4EIntroAssembly
BeginBlock
SetEntityPositionRelative 0x0088, 0x0078
EndBlock
script_08008E12:
CheckPlayerInRegion 0x00d8, 0x0098, 0x4020
JumpIfNot script_08008E12
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
_0807F0B4 0x0001
CameraTargetEntity
WaitForPlayerAction0x17
Wait 0x003c
StartPlayerScript script_PlayerEnters
WaitForSomething2 0x00000020
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
Wait 0x003c
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
Wait 0x000f
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
MessageFromTargetPos 0x1053, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000040
WaitForSomething2 0x00000020
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
_0807F034 0x0035
WaitPlayerGetItem
StartPlayerScript script_PlayerGetSword
WaitForSomething2 0x00000020
_0807E8E4_0
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000010
Wait 0x0078
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E8E4_1
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
_0807F034 0x0047
WaitPlayerGetItem
SetIntVariable 0x00000003
Call sub_0807F420
_0807E8E4_0
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807F0B4 0x0004
CameraTargetPlayer
SetGlobalFlag 0x0015
Call sub_0806DCC0
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,20 @@
@ Intro Assembly Player
SCRIPT_START script_PlayerEnters
BeginBlock
SetEntitySpeed 0x0100
EndBlock
DoPostScriptAction 0x0001
_0807EDD4 0x00b8, 0x0090
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000020
WaitForSomething2 0x00000040
DoPostScriptAction 0x0001
_0807EDD4 0x0088, 0x0078
_0807EB44 0x0000
DoPostScriptAction 0x0000
Wait 0x000f
_0807E5F8 0x00000020
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,13 @@
@ Intro Assembly Player gets Sword
SCRIPT_START script_PlayerGetSword
_0807F078 0x0001, 0x0001
CallWithArg sub_0807F918, 0x00000001
PlaySound SFX_109
CallWithArg sub_0807F238, 0x0000045f
Call sub_0807F304
MessageFromTargetPos 0x0501, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000020
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,33 @@
@ Intro Hyrule Castle Player Sleeping
SCRIPT_START script_PlayerWakingUpInHyruleCastle
BeginBlock
Call sub_0807DF28
_0807E864
.ifdef JP
SetLocalFlag 0x009e
.else
.ifdef EU
SetLocalFlag 0x009e
.else
.ifdef DEMO_JP
SetLocalFlag 0x009e @ TODO deduplicate
.else
SetLocalFlag 0x009f
.endif
.endif
.endif
EndBlock
Wait 0x003c
_0807E778 0x0004
DoFade4
WaitFor_2
script_08009EA4:
Call sub_0807F0D8
JumpIfNot script_08009EA4
DoPostScriptAction 0x0014
Wait 0x000a
Call sub_08053250
_0807E878
Call sub_0807DF50
Call sub_080791D0
SCRIPT_END
@@ -0,0 +1,55 @@
@ Intro Assembly Smith
SCRIPT_START script_SmithAtAssembly
BeginBlock
Call sub_0807F348
_0807EB44 0x0006
DoPostScriptAction 0x0000
EndBlock
WaitForSomething2 0x00000001
_0807EB74
DoPostScriptAction 0x0001
MessageFromTargetPos 0x105b, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
DoPostScriptAction 0x0005
Wait 0x003c
DoPostScriptAction 0x0001
MessageFromTargetPos 0x1051, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
DoPostScriptAction 0x0004
Wait 0x003c
_0807EB74
_0807EB8C
DoPostScriptAction 0x0001
MessageFromTargetPos 0x1055, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
_0807EB74
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
SetEntitySpeed 0x0080
DoPostScriptAction 0x0001
_0807EDD4 0x0098, 0x0078
_0807EB74
DoPostScriptAction 0x0000
DoPostScriptAction 0x0001
MessageFromTargetPos 0x1059, 0x0000
WaitUntilTextboxCloses
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
BeginBlock
_0807E9D4
DoPostScriptAction 0x000a
Jump script_080092B2
.2byte 0x0000
@@ -0,0 +1,86 @@
@ Intro Outside Castle OBJECT_69 1?
SCRIPT_START script_080157AC
CheckPlayerInRegion 0x01f8, 0x0310, 0x2020
JumpIfNot script_080157AC
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
Call sub_0807DF50
_0807E878
script_080157DA:
CheckPlayerInRegion 0x0250, 0x0230, 0x3040
JumpIfNot script_080157DA
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
Call sub_0807F3F8
Wait 0x003c
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
StartPlayerScript script_PlayerIntroBusinessScrub1
_0807F0B4 0x0001
SetEntityPositionRelative 0x0248, 0x0218
CameraTargetEntity
Call sub_0807F5C0
WaitForSomething2 0x00000010
_0807E5F8 0x00000008
WaitForSomething2 0x00000020
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
StartPlayerScript script_PlayerIntroBusinessScrub2
WaitForSomething2 0x00000010
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
MessageFromTargetPos 0x1066, 0x0002
WaitUntilTextboxCloses
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
Call sub_0807DF50
_0807E878
Call sub_08066F94
_0807E5F8 0x00000008
script_08015880:
CheckRoomFlag 0x0000
JumpIfNot script_08015880
script_08015888:
WaitUntilTextboxCloses
ComparePlayerAction 0x001c
JumpIf script_08015888
_0807E864
Call sub_0807DF28
_0807F0B4 0x0002
SetEntityPositionRelative 0x0248, 0x0208
CameraTargetEntity
StartPlayerScript script_PlayerIntroBusinessScrub3
WaitForSomething2 0x00000010
MessageFromTargetPos 0x106a, 0x000c
WaitUntilTextboxCloses
_0807E5F8 0x00000008
Wait 0x0078
_0807E8E4_2
MessageFromTargetPos 0x1068, 0x0002
WaitUntilTextboxCloses
_0807E5F8 0x00000001
WaitForSomething2 0x00000002
.ifdef JP
SetLocalFlag 0x0089
.else
.ifdef EU
SetLocalFlag 0x0089
.else
.ifdef DEMO_JP
SetLocalFlag 0x0089 @ TODO deduplicate
.else
SetLocalFlag 0x008b
.endif
.endif
.endif
Call sub_08066FB8
Call sub_0807DF50
_0807E878
_0807F0B4 0x0004
CameraTargetPlayer
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,11 @@
@ OBJECT_6A in sub_080954AC ? businessScrubPrologue?
SCRIPT_START script_08015B14
BeginBlock
_0807E930 0x0018
SetEntitySpeed 0x0300
EndBlock
_0807EDD4 0x0248, 0x0218
_0807E5F8 0x00000020
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,35 @@
@ Intro Outside Castle OBJECT_69 2?
SCRIPT_START script_08015B34
EndBlock
BeginBlock
.ifdef JP
CheckLocalFlag 0x0089
.else
.ifdef EU
CheckLocalFlag 0x0089
.else
.ifdef DEMO_JP
CheckLocalFlag 0x0089 @ TODO deduplicate
.else
CheckLocalFlag 0x008b
.endif
.endif
.endif
JumpIf script_08015B7E
@ Prevent player from leaving to Hyrule Town
CallWithArg sub_0807F6B4, 0x00000318
JumpIfNot script_08015B34
EndBlock
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
MessageFromTargetPos 0x2506, 0x0002
WaitUntilTextboxCloses
StartPlayerScript script_PlayerAtIntroBusinessScrub4
WaitForSomething2 0x00000004
Call sub_0807DF50
_0807E878
Jump script_08015B34
script_08015B7E:
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,22 @@
@ Intro Outside Castle Business Scrub
SCRIPT_START script_BusinessScrubIntro
BeginBlock
DoPostScriptAction 0x0007
DoPostScriptAction 0x000a
_0807EB44 0x0004
DoPostScriptAction 0x0000
EndBlock
WaitForSomething2 0x00000008
_0807E908 0x0007
WaitForSomething2 0x00000008
_0807E908 0x0006
SetRoomFlag 0x0000
_0807EB44 0x0004
DoPostScriptAction 0x0000
WaitForSomething2 0x00000008
Wait 0x003c
PlaySound SFX_SECRET
Call sub_08046078
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,11 @@
@ Player at intro outside castle
SCRIPT_START script_PlayerAtIntroBusinessScrub4
SetEntitySpeed 0x0100
DoPostScriptAction 0x0001
_0807EC64 0x0010
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,9 @@
@ Player at intro outside castle 1?
SCRIPT_START script_PlayerIntroBusinessScrub1
SetEntitySpeed 0x0100
_0807EDD4 0x0218, 0x0238
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00000010
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,9 @@
@ Player at intro outside castle
SCRIPT_START script_PlayerIntroBusinessScrub2
SetEntitySpeed 0x0100
_0807EDD4 0x0238, 0x0228
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00000010
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,9 @@
@ Intro Outside Castle Player
SCRIPT_START script_PlayerIntroBusinessScrub3
SetEntitySpeed 0x0100
_0807EDD4 0x0248, 0x0208
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000010
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,74 @@
@ Intro Outside Castle Zelda
SCRIPT_START script_ZeldaIntroBusinessScrub
BeginBlock
SetEntitySpeed 0x0180
DoPostScriptAction 0x0008
DoPostScriptAction 0x000b
Call sub_08066D04
EndBlock
WaitForSomething2 0x00000001
BeginBlock
Call sub_08066D14
MoveEntityToPlayer
EndBlock
DoPostScriptAction 0x0007
_0807EB74
_0807EDD4 0x01f8, 0x02f8
_0807EB44 0x0004
DoPostScriptAction 0x0000
MessageFromTargetPos 0x1011, 0x0002
WaitUntilTextboxCloses
_0807EDD4 0x01f8, 0x0268
SetEntityPositionRelative 0x0248, 0x0218
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
Call sub_0807F3C8
PlaySound SFX_VO_ZELDA3
SetEntitySpeed 0x0200
_0807ECC4 0x0008
_0807E930 0x0040
Call sub_0807F2D4
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
WaitForSomething2 0x00000001
SetEntitySpeed 0x0100
_0807EDD4 0x0238, 0x0238
_0807EB44 0x0000
DoPostScriptAction 0x0000
DoPostScriptAction 0x000a
_0807E9D4
_0807E5F8 0x00000002
script_08015A32:
EndBlock
BeginBlock
_0807EB74
CheckRoomFlag 0x0000
JumpIf script_08015A54
CheckEntityInteractType
JumpIfNot script_08015A32
EndBlock
MessageFromTargetPos 0x1067, 0x0002
WaitUntilTextboxCloses
Jump script_08015A32
script_08015A54:
EndBlock
DoPostScriptAction 0x000b
_0807EB44 0x0000
DoPostScriptAction 0x0000
WaitForSomething2 0x00000001
Call sub_08066D4C
_0807E5F8 0x00000002
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,17 @@
@ Something during Intro Ceremony? Called via script_VaatiIntroCeremony
SCRIPT_START script_08011890
BeginBlock
_0807E930 0x0000
SetEntitySpeed 0x0200
Call nullsub_527
Call sub_08094B80
EndBlock
Wait 0x00f0
Call sub_08094B6C
_0807EDD4 0x01f8, 0x0088
Call sub_08094B80
PlaySound SFX_1CC
_0807E5F8 0x10000000
WaitForSomething2 0x08000000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,35 @@
@ Intro Ceremony Guard bottom right
SCRIPT_START script_GuardBottomRight
_0807E610 0x00002000
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
_0807E930 0x0005
_0807EB44 0x0002
_0807EC94 0x0010
_0807EB44 0x0004
_0807E930 0x0002
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
DoPostScriptAction 0x0004
Wait 0x003c
_0807E930 0x0012
PlaySound SFX_EM_MOBLIN_SPEAR
Wait 0x003c
_0807E930 0x0014
SetEntitySpeed 0x0100
_0807EDD4 0x0200, 0x0098
_0807EDD4 0x0200, 0x00c8
_0807E930 0x0013
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
DoPostScriptAction 0x0010
Wait 0x000a
DoPostScriptAction 0x0010
Call sub_0807F3C8
_0807E930 0x0014
SetEntitySpeed 0x0400
SetEntityDirection 0x0002
_0807EC1C 0x003c
_0807E5F8 0x00004000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,55 @@
@ Intro Ceremony Chest carrying Guard
@ and guard bottom left?
SCRIPT_START script_GuardCarryingChest
BeginBlock
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
Call sub_08095244
Call sub_0807F338
EndBlock
WaitForSomething 0x0002a800
DoPostScriptAction 0x0007
_0807E930 0x0006
_0807ECC4 0x0010
Wait 0x003c
_0807ECC4 0x0010
Wait 0x003c
_0807ECC4 0x0010
_0807E930 0x0002
Call sub_08064050
JumpTable script_08011312, script_GuardBottomRight, script_GuardTopLeft, script_GuardTopRight
@ Guard bottom left:
script_08011312:
_0807E610 0x00000800
_0807E5F8 0x00001000
WaitForSomething2 0x00000800
_0807E930 0x0007
_0807EB44 0x0006
_0807ECF4 0x0010
_0807EB44 0x0004
_0807E930 0x0002
_0807E5F8 0x00001000
WaitForSomething2 0x00000800
DoPostScriptAction 0x0004
Wait 0x003c
_0807E930 0x0012
PlaySound SFX_EM_MOBLIN_SPEAR
Wait 0x003c
_0807E930 0x0014
SetEntitySpeed 0x0100
_0807EDD4 0x01f0, 0x0098
_0807EDD4 0x01f0, 0x00c8
_0807E930 0x0013
_0807E5F8 0x00001000
WaitForSomething2 0x00000800
DoPostScriptAction 0x0010
Wait 0x000a
DoPostScriptAction 0x0010
Call sub_0807F3C8
_0807E930 0x0014
SetEntitySpeed 0x0400
SetEntityDirection 0x001e
_0807EC1C 0x003c
_0807E5F8 0x00001000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,16 @@
@ Intro Ceremony Entrance Guard left
SCRIPT_START script_GuardEntryLeft
BeginBlock
SetEntitySpeed 0x0100
_0807EB44 0x0002
_0807E930 0x0001
EndBlock
WaitForSomething2 0x00080000
_0807E930 0x0005
PlaySound SFX_11C
_0807ECF4 0x0010
_0807E930 0x0001
_0807E5F8 0x00100000
WaitForSomething2 0x00080000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,16 @@
@ Intro Ceremony Entrace Guard right
SCRIPT_START script_GuardEntryRight
BeginBlock
SetEntitySpeed 0x0100
_0807EB44 0x0006
_0807E930 0x0003
EndBlock
WaitForSomething2 0x00200000
_0807E930 0x0007
PlaySound SFX_11C
_0807EC94 0x0010
_0807E930 0x0003
_0807E5F8 0x00400000
WaitForSomething2 0x00200000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,44 @@
@ Intro Ceremony Guard top left
SCRIPT_START script_GuardTopLeft
_0807E610 0x00008000
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
_0807E930 0x0007
_0807EB44 0x0006
_0807ECF4 0x0020
_0807EB44 0x0004
_0807E930 0x0006
_0807ECC4 0x0010
_0807E930 0x0002
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
DoPostScriptAction 0x0004
Wait 0x003c
_0807E930 0x0012
PlaySound SFX_EM_MOBLIN_SPEAR
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
_0807E930 0x0014
SetEntitySpeed 0x0100
_0807EDD4 0x01e8, 0x0098
SetEntitySpeed 0x0040
_0807EEF4 0x0000, 0x0010
_0807E930 0x0013
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
DoPostScriptAction 0x000d
_0807E930 0x0014
SetEntitySpeed 0x0020
_0807EEF4 0x0000, 0xfff0
_0807E930 0x0013
DoPostScriptAction 0x0010
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
Call sub_0807F3C8
_0807E930 0x0014
SetEntitySpeed 0x0400
SetEntityDirection 0x001e
_0807EC1C 0x003c
_0807E5F8 0x00010000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,45 @@
@ Intro Ceremony Guard top right
SCRIPT_START script_GuardTopRight
_0807E610 0x00020000
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
_0807E930 0x0005
_0807EB44 0x0002
_0807EC94 0x0020
_0807EB44 0x0004
_0807E930 0x0006
_0807ECC4 0x0010
_0807E930 0x0002
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
DoPostScriptAction 0x0004
Wait 0x003c
_0807E930 0x0012
PlaySound SFX_EM_MOBLIN_SPEAR
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
_0807E930 0x0014
SetEntitySpeed 0x0100
_0807EDD4 0x0208, 0x0098
SetEntitySpeed 0x0040
_0807EEF4 0x0000, 0x0010
_0807E930 0x0013
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
DoPostScriptAction 0x000d
_0807E930 0x0014
SetEntitySpeed 0x0020
_0807EEF4 0x0000, 0xfff0
_0807E930 0x0013
DoPostScriptAction 0x0010
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
Call sub_0807F3C8
_0807E930 0x0014
SetEntitySpeed 0x0400
SetEntityDirection 0x0002
_0807EC1C 0x003c
_0807E5F8 0x00040000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,26 @@
@ Intro Ceremony King Daltus
SCRIPT_START script_KingDaltusIntroCeremony
BeginBlock
DoPostScriptAction 0x0008
_0807EB44 0x0004
SetEntitySpeed 0x0100
EndBlock
Call sub_0807F338
WaitForSomething2 0x00000040
DoPostScriptAction 0x0007
DoPostScriptAction 0x0001
SetEntitySpeed 0x0040
_0807EDD4 0x01f8, 0x0048
DoPostScriptAction 0x0000
_0807E5F8 0x00000080
WaitForSomething2 0x00000040
DoPostScriptAction 0x0010
Wait 0x001e
DoPostScriptAction 0x0010
Call sub_0807F3C8
SetEntitySpeed 0x0400
SetEntityDirection 0x0008
_0807EC1C 0x003c
_0807E5F8 0x00000080
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,58 @@
@ Intro Hyrule Castle Minister Potho
SCRIPT_START script_MinisterPothoIntroCastle
BeginBlock
_0807EB44 0x0004
DoPostScriptAction 0x0000
.ifdef JP
.ifndef DEMO_JP
_0807E9D4
DoPostScriptAction 0x000a
.endif
.else
.ifdef EU
_0807E9D4
DoPostScriptAction 0x000a
.endif
.endif
EndBlock
script_08011134:
CheckPlayerInRegion 0x01f8, 0x0048, 0x1040
JumpIfNot script_08011134
LoadRoomEntityList gUnk_080F06B0
DoPostScriptAction 0x000b
WaitForSomething2 0x00000004
SetEntityPositionRelative 0x01b8, 0x0058
_0807EB44 0x0004
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807EB44 0x0006
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
_0807EB44 0x0004
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
SetEntitySpeed 0x0100
DoPostScriptAction 0x0001
_0807ECC4 0x0010
DoPostScriptAction 0x0000
_0807E5F8 0x00000008
WaitForSomething2 0x00000004
DoPostScriptAction 0x0010
Wait 0x001e
DoPostScriptAction 0x0010
Call sub_0807F3C8
SetEntitySpeed 0x0400
SetEntityDirection 0x001c
_0807EC1C 0x003c
_0807E5F8 0x00000008
DoPostScriptAction 0x0006
SCRIPT_END
.ifdef JP
.ifndef DEMO_JP
.2byte 0x0000
.endif
.else
.ifdef EU
.2byte 0x0000
.endif
.endif
@@ -0,0 +1,56 @@
@ Intro Ceremony NPC4E monsters
SCRIPT_START script_Npc4EMonsters
Wait 0x001e
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x003c
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x0004
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x001e
PlaySound SFX_12C
_0807E5F8 0x00800000
WaitForSomething2 0x01000000
_0807E778 0x0004
DoFade7
WaitFor_2
Wait 0x003c
PlaySound SFX_SPIRITS_RELEASE
PlaySound SFX_1C2
LoadRoomEntityList gUnk_080F0770
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
_0807E778 0x0002
DoFade6
WaitFor_2
CallWithArg DeleteManager36, 0x00000002
_0807F0C8 0x0000, 0x0000
Call sub_0806DC3C
Call sub_080791BC
CallWithArg sub_0807F244, 0x0000000d
CallWithArg sub_0807F29C, gUnk_080049F6
_0807F0B4 0x0001
SetEntityPositionRelative 0x01f8, 0x0068
_0807E5F8 0x00000004
Wait 0x001e
_0807E5F8 0x00000040
WaitForSomething2 0x00000008
WaitForSomething2 0x00000080
PlaySound SFX_1C3
_0807E5F8 0x20000000
Wait 0x0078
CallWithArg sub_0807F29C, 0x00000000
Call sub_0806DC58
_0807E5F8 0x40000000
_0807E5F8 0x00000010
_0807E5F8 0x00000100
WaitForSomething2 0x00000020
WaitForSomething2 0x00000200
MessageFromTargetPos 0x1045, 0x000c
WaitUntilTextboxCloses
MessageFromTargetPos 0x1046, 0x0000
WaitUntilTextboxCloses
CallWithArg CreateManager36, 0x00000002
_0807F0C8 0xffff, 0x0000
@@ -0,0 +1,45 @@
@ Intro Ceremony NPC4E Vaati attacking
SCRIPT_START script_Npc4EVaatiAttacking
Wait 0x003c
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
StartPlayerScript script_PlayerProtectingZelda
WaitForSomething2 0x00000400
MessageFromTargetPos 0x1047, 0x0000
WaitUntilTextboxCloses
Call sub_0806DC3C
Call sub_080791BC
CallWithArg sub_0807F244, 0x0000000d
CallWithArg sub_0807F29C, gUnk_080049F6
Wait 0x001e
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
CallWithArg sub_0807F29C, 0x00000000
Call sub_0806DC58
Wait 0x003c
_0807E5F8 0x08000000
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x000f
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
CallWithArg DeleteManager36, 0x00000002
_0807F0C8 0x0000, 0x0000
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
StopBgm
Wait 0x003c
MessageFromTargetPos 0x104a, 0x0000
WaitUntilTextboxCloses
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
MessageFromTargetPos 0x1049, 0x0000
WaitUntilTextboxCloses
SetEntityPositionRelative 0x01f8, 0x0098
Wait 0x0078
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
Call sub_0804BCDC
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,6 @@
@ Intro Ceremony OBJECT_6A Monster from Chest
SCRIPT_START script_Object6AMonsterFromChest
WaitForSomething 0x20000000
Call sub_0809567C
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,20 @@
@ Intro Ceremony OBJECT_6A Sword in Chest
SCRIPT_START script_Object6ASwordInChest
BeginBlock
Call sub_08095330
EndBlock
WaitForSomething2 0x00800000
_0807EF3C 0x0000, 0x0020
_0807E5F8 0x01000000
WaitForSomething2 0x00800000
Call sub_08095364
PlaySound SFX_122
Wait 0x003c
_0807E5F8 0x01000000
WaitForSomething2 0x00800000
_0807E930 0x0002
_0807E5F8 0x01000000
WaitForSomething2 0x00800000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,10 @@
@ Intro Ceremony Player
SCRIPT_START script_PlayerAtIntroCeremony
SetEntityPositionRelative 0x01a8, 0x0058
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000400
_0807E610 0x00000002
EndBlock
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,17 @@
@ Intro Ceremony Player fainting
SCRIPT_START script_PlayerFainting
PlaySound SFX_PLY_VO6
_0807EB44 0x0004
DoPostScriptAction 0x000d
PlaySound SFX_86
Call sub_0807F36C
SetEntitySpeed 0x0400
_0807ECF4 0x0008
BeginBlock
Call sub_0807F1E8
DoPostScriptAction 0x0011
EndBlock
Call sub_0807F2D4
WaitForSomething 0x80000000
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,11 @@
@ Intro Hyrule Castle Player
SCRIPT_START script_PlayerIntroCastle
BeginBlock
SetEntitySpeed 0x0080
EndBlock
_0807EDD4 0x01e8, 0x0050
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,13 @@
@ Intro ceremony Player protecting Zelda
SCRIPT_START script_PlayerProtectingZelda
BeginBlock
SetEntitySpeed 0x0040
EndBlock
SetEntitySpeed 0x0200
DoPostScriptAction 0x0001
_0807EDD4 0x01d8, 0x0068
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,22 @@
@ Intro Ceremony Vaati Dark magic?
SCRIPT_START script_VaatiDarkMagic
BeginBlock
_0807E930 0x0000
SetEntitySpeed 0x0200
Call nullsub_527
Call sub_08094B80
EndBlock
WaitForSomething2 0x08000000
Call sub_08094B6C
_0807EDD4 0x01d8, 0x0078
StartPlayerScript script_PlayerFainting
_0807EDD4 0x01d8, 0x0058
Call sub_08094B80
PlaySound SFX_VO_ZELDA7
PlaySound SFX_1C6
_0807E5F8 0x10000000
WaitForSomething2 0x08000000
PlaySound SFX_11D
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,86 @@
@ Intro Ceremony Vaati
SCRIPT_START script_VaatiIntroCeremony
BeginBlock
_0807EB44 0x0000
SetEntitySpeed 0x0100
EndBlock
Call sub_0807F338
WaitForSomething2 0x00000100
DoPostScriptAction 0x0001
_0807EDD4 0x01f8, 0x00d0
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
_0807EB44 0x0004
DoPostScriptAction 0x001c
Call sub_0807F2D4
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
_0807EB44 0x0000
DoPostScriptAction 0x001c
Call sub_0807F2D4
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
_0807EB44 0x0000
DoPostScriptAction 0x001a
Call sub_0807F2D4
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
_0807EB44 0x0000
DoPostScriptAction 0x0014
PlaySound SFX_CHARGING_UP
CallWithArg sub_08095420, script_08011890
Wait 0x00f0
DoPostScriptAction 0x0016
PlaySound SFX_1CB
WaitForSomething2 0x10000000
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
SetEntitySpeed 0x0080
DoPostScriptAction 0x0001
_0807EDD4 0x01d8, 0x00a8
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
DoPostScriptAction 0x0014
PlaySound SFX_1C4
CallWithArg sub_0809545C, script_VaatiDarkMagic
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
Wait 0x003c
DoPostScriptAction 0x0016
PlaySound SFX_1C5
_0807E5F8 0x08000000
WaitForSomething2 0x10000000
DoPostScriptAction 0x0000
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
SetEntitySpeed 0x0100
DoPostScriptAction 0x0001
_0807EDD4 0x01f8, 0x0098
_0807EB44 0x0000
DoPostScriptAction 0x0000
DoPostScriptAction 0x0004
Wait 0x005a
_0807EB44 0x0004
DoPostScriptAction 0x001c
Call sub_0807F2D4
_0807EB44 0x0004
DoPostScriptAction 0x0000
Wait 0x001e
_0807E5F8 0x00000200
WaitForSomething2 0x00000100
Call sub_08066CA4
DoPostScriptAction 0x0008
Wait 0x0078
_0807E5F8 0x00000200
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,56 @@
@ Intro Hyrule Castle Zelda
SCRIPT_START script_ZeldaIntroCastle
BeginBlock
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
Call sub_08066D04
EndBlock
Call sub_0807F338
WaitForSomething2 0x00000010
Call sub_08066D14
JumpIf script_080111F6
MoveEntityToPlayer
script_080111F6:
Call sub_0807F8BC
JumpIf script_08011206
SetEntityPositionRelative 0x01f8, 0x00b8
script_08011206:
DoPostScriptAction 0x0007
DoPostScriptAction 0x0001
_0807EDD4 0x01f8, 0x0050
_0807EB74
DoPostScriptAction 0x0000
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
DoPostScriptAction 0x0001
_0807EDD4 0x01f8, 0x0020
DoPostScriptAction 0x0008
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
DoPostScriptAction 0x0007
DoPostScriptAction 0x0001
SetEntitySpeed 0x0040
_0807EDD4 0x01e8, 0x0040
DoPostScriptAction 0x0000
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
Call sub_08095810
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
DoPostScriptAction 0x0001
_0807EDD4 0x01d8, 0x0058
DoPostScriptAction 0x0000
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
PlaySound SFX_1C9
DoPostScriptAction 0x0010
Wait 0x0014
Call sub_08066E20
Wait 0x0014
DoPostScriptAction 0x0010
Call sub_0807F2D4
PlaySound SFX_1CA
_0807E5F8 0x00000020
WaitForSomething2 0x00000010
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,5 @@
@ Intro Ceremony OBJECT_6A Zelda shine or something?
SCRIPT_START script_ZeldaMagic
WaitForSomething 0x40000000
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,20 @@
@ Intro Hyrule Town Beedle
SCRIPT_START script_BeedleIntro
BeginBlock
_0807EB44 0x0004
_0807E930 0x0000
_0807E9D4
DoPostScriptAction 0x000a
Call sub_0807F348
EndBlock
script_0800F604:
CheckEntityInteractType
JumpIfNot script_0800F604
_0807E864
_0807EB74
CallWithArg sub_0807F3D8, 0x00000008
MessageNoOverlap 0x2511
WaitUntilTextboxCloses
Wait 0x000f
_0807E878
Jump script_0800F604
@@ -0,0 +1,19 @@
@ Intro Hyrule Town Guard
SCRIPT_START script_GuardIntro
BeginBlock
_0807EB44 0x0006
_0807E9D4
DoPostScriptAction 0x000a
CallWithArg sub_0807F3D8, 0x00000008
EndBlock
script_0800F5C8:
CheckEntityInteractType
JumpIfNot script_0800F5C8
_0807E864
_0807EB74
CallWithArg sub_0807F3D8, 0x00000008
Call sub_08064428
WaitUntilTextboxCloses
_0807E878
Jump script_0800F5C8
.2byte 0x0000
@@ -0,0 +1,18 @@
@ Intro Hyrule Town Kid listening to Townsperson
SCRIPT_START script_KidIntro1
BeginBlock
DoPostScriptAction 0x0001
_0807E9D4
DoPostScriptAction 0x000a
EndBlock
script_0800F592:
CheckEntityInteractType
JumpIfNot script_0800F592
_0807E864
_0807EB74
Call sub_0806265C
WaitUntilTextboxCloses
_0807E878
DoPostScriptAction 0x0001
Jump script_0800F592
.2byte 0x0000
@@ -0,0 +1,36 @@
@ Hyrule Town Intro Kid blocking the way
SCRIPT_START script_KidIntro2
BeginBlock
DoPostScriptAction 0x0001
_0807E9D4
DoPostScriptAction 0x000a
Call sub_08062788
EndBlock
script_0800F6F4:
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800F718
CheckEntityInteractType
JumpIfNot script_0800F6F4
_0807E864
_0807EB74
Call sub_0806265C
WaitUntilTextboxCloses
_0807E878
DoPostScriptAction 0x0001
Jump script_0800F6F4
script_0800F718:
Call sub_080627E8
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,24 @@
@ Intro Hyrule Town Kid
SCRIPT_START script_KidIntro3
BeginBlock
DoPostScriptAction 0x0008
EndBlock
script_0800F72C:
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIfNot script_0800F72C
DoPostScriptAction 0x0007
Jump script_KidIntro1
@@ -0,0 +1,121 @@
@ Intro Hyrule Castle NPC4E
SCRIPT_START script_Npc4EIntroCastle
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
StartPlayerScript script_PlayerIntroCastle
WaitForSomething2 0x00000400
_0807F078 0x0034, 0x0002
MessageFromTargetPos 0x1036, 0x000c
WaitUntilTextboxCloses
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
MessageFromTargetPos 0x1037, 0x0002
WaitUntilTextboxCloses
_0807E5F8 0x00000010
WaitForSomething2 0x00000020
MessageFromTargetPos 0x1038, 0x000c
WaitUntilTextboxCloses
StopBgm
_0807E778 0x0004
DoFade5
WaitFor_2
Call sub_08064180
Call sub_08064180
Call sub_08064180
Call sub_08064180
Call sub_08064180
Call sub_08064180
Call sub_08064180
Call sub_08064180
LoadRoomEntityList gUnk_080F06E0
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
StartPlayerScript script_PlayerAtIntroCeremony
WaitForSomething2 0x00000400
SetEntityPositionRelative 0x01f8, 0x0050
_0807F0B4 0x0007
CameraTargetEntity
Wait 0x000a
_0807F0B4 0x0001
_0807E778 0x0001
DoFade4
_0807E5F8 0x0002a800
WaitForSomething2 0x00055000
SetEntityPositionRelative 0x01f8, 0x0078
Wait 0x003c
_0807E5F8 0x00800000
WaitForSomething2 0x01000000
_0807E5F8 0x0002a800
WaitForSomething2 0x00055000
_0807E8E4_1
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
MessageFromTargetPos 0x1039, 0x000c
WaitUntilTextboxCloses
PlayBgm BGM_CASTLE_TOURNAMENT
_0807E8E4_2
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
_0807E5F8 0x00000010
_0807E5F8 0x00000040
WaitForSomething2 0x00000020
WaitForSomething2 0x00000080
Wait 0x012c
_0807E5F8 0x00000004
WaitForSomething2 0x00000008
MessageFromTargetPos 0x103a, 0x000c
WaitUntilTextboxCloses
SetEntityPositionRelative 0x01f8, 0x01c0
_0807F0B4 0x0004
Wait 0x0078
_0807E5F8 0x00280000
WaitForSomething2 0x00500000
_0807E5F8 0x00000100
SetEntityPositionRelative 0x01f8, 0x0220
SetEntitySpeed 0x0100
_0807EDD4 0x01f8, 0x0098
Wait 0x003c
WaitForSomething2 0x00000200
_0807E5F8 0x00280000
StopBgm
PlaySound SFX_9B
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
MessageFromTargetPos 0x1043, 0x0000
WaitUntilTextboxCloses
PlayBgm BGM_VAATI_THEME
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
_0807E5F8 0x0002a800
WaitForSomething2 0x00055000
PlaySound SFX_1C7
PlaySound SFX_BUTTON_DEPRESS
_0807E5F8 0x00000100
_0807E5F8 0x00002800
CallWithArg sub_0807FB28, 0x00000003
WaitForSomething2 0x00000200
WaitForSomething2 0x00005000
_0807E5F8 0x00028000
WaitForSomething2 0x00050000
MessageFromTargetPos 0x1044, 0x0000
WaitUntilTextboxCloses
SetEntityPositionRelative 0x01f8, 0x0098
StopBgm
Wait 0x003c
PlayBgm BGM_VAATI_REBORN
_0807E5F8 0x00028000
_0807E5F8 0x00000100
WaitForSomething2 0x00000200
WaitForSomething2 0x00050000
CallWithArg sub_0807FB28, 0x00000003
PlaySound SFX_BUTTON_DEPRESS
_0807E5F8 0x00028000
WaitForSomething2 0x00050000
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
_0807E5F8 0x08000000
_0807E5F8 0x00800000
WaitForSomething2 0x01000000
CallWithArg CreateManager36, 0x00000002
_0807F0C8 0xffff, 0x0000
@@ -0,0 +1,199 @@
@ Intro Hyrule Town NPC4E
SCRIPT_START script_Npc4EIntroTown
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800FA4C
_0807E864
Call sub_0807DF28
SetEntityPositionRelative 0x00c8, 0x0148
Call sub_0807F844
_0807E778 0x0002
DoFade6
WaitFor_2
StartPlayerScript script_PlayerIntro1
_0807E5F8 0x00000002
_0807F0B4 0x0001
SetEntityPositionRelative 0x00c8, 0x0218
Call sub_0807F5C0
Wait 0x0064
@ Camera reaches center of town square
_0807F0B4 0x0002
SetEntityPositionRelative 0x00c8, 0x0368
Call sub_0807F5C0
WaitForSomething2 0x00000001
WaitForSomething2 0x00000004
@ First message from Zelda
MessageFromTargetPos 0x2501, 0x0000
WaitUntilTextboxCloses
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
@ Zelda ran off. Give control to the player
_0807F0B4 0x0004
CameraTargetPlayer
Call sub_0807DF50
_0807E878
_0807E5F8 0x00000010
WaitForSomething2 0x00000004
_0807E864
Call sub_0807DF28
StartPlayerScript script_PlayerIntro2
WaitForSomething2 0x00000001
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
MessageFromTargetPos 0x2503, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
Call sub_0807DF50
_0807E878
WaitForSomething2 0x00000004
_0807E864
Call sub_0807DF28
StartPlayerScript script_PlayerIntro3
WaitForSomething2 0x00000001
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
MessageFromTargetPos 0x2504, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
Call sub_0807DF50
_0807E878
WaitForSomething2 0x00000004
_0807E864
Call sub_0807DF28
StartPlayerScript script_PlayerIntro4
WaitForSomething2 0x00000001
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
MessageFromTargetPos 0x2505, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
Call sub_0807DF50
_0807E878
@ Wait for Link at Pina
WaitForSomething2 0x00000004
_0807E864
Call sub_0807DF28
Call sub_08063C5C
PlaySound SFX_CUCCO_MINIGAME_BELL
Wait 0x001e
_0807E8E4_0
Call sub_0807F3F8
Wait 0x003c
MessageFromTargetPos 0x1021, 0x000e
WaitUntilTextboxCloses
StartPlayerScript script_PlayerIntro5
SetEntityPositionRelative 0x00f0, 0x0258
_0807F0B4 0x0001
CameraTargetEntity
Wait 0x001e
Call sub_08063C2C
WaitForSomething2 0x00000001
MessageFromTargetPos 0x1022, 0x000e
WaitUntilTextboxCloses
_0807E8E4_0
Call sub_08063C14
Call sub_08094CDC
Wait 0x001e
MessageFromTargetPos 0x1023, 0x000e
WaitUntilTextboxCloses
Call sub_08063C14
Call sub_08094DD8
Wait 0x001e
MessageFromTargetPos 0x1024, 0x000e
WaitUntilTextboxCloses
Call sub_08063C14
Call sub_08094D34
Wait 0x001e
MessageFromTargetPos 0x1025, 0x000e
WaitUntilTextboxCloses
Call sub_08063C5C
MessageFromTargetPos 0x1026, 0x000e
WaitUntilTextboxCloses
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
_0807E8E4_1
Call sub_08063C2C
MessageFromTargetPos 0x1027, 0x0000
WaitUntilTextboxCloses
Call sub_08063C74
Wait 0x003c
Call sub_08063C14
_0807E8E4_0
MessageFromTargetPos 0x1028, 0x000e
WaitUntilTextboxCloses
_0807E8E4_1
MessageFromTargetPos 0x1029, 0x0000
WaitUntilTextboxCloses
_0807E8E4_0
MessageFromTargetPos 0x102a, 0x000e
WaitUntilTextboxCloses
Call sub_08063C14
Call sub_08094D70
PlaySound SFX_103
_0807E5F8 0x00000002
WaitForSomething2 0x00000004
Call sub_08063C14
Call sub_08094D10
Wait 0x001e
Call sub_08094E0C
Wait 0x001e
_0807E8E4_1
Call sub_0807F3F8
Wait 0x003c
MessageFromTargetPos 0x102b, 0x0000
WaitUntilTextboxCloses
@ Give the shield to the player
_0807F034 0x000d
WaitPlayerGetItem
Call sub_0806DC3C
Call sub_080791BC
CallWithArg sub_0807F244, 0x0000000d
SetIntVariable 0x000000ff
Call sub_0807F5B0
CallWithArg sub_0807F29C, gUnk_080049D6
Wait 0x00b7
SetIntVariable 0x00000000
Call sub_0807F5B0
MessageFromTargetPos 0x102c, 0x0000
WaitUntilTextboxCloses
@ Give control back to the player
CallWithArg sub_0807F29C, 0x00000000
Call sub_0806DC58
_0807F0B4 0x0004
CameraTargetPlayer
Wait 0x000a
_0807E5F8 0x00000002
Call sub_08063C44
.ifdef JP
SetLocalFlag 0x00ca
.else
.ifdef EU
SetLocalFlag 0x00ca
.else
.ifdef DEMO_JP
SetLocalFlag 0x00ca @ TODO deduplicate
.else
SetLocalFlag 0x00cd
.endif
.endif
.endif
Call sub_0807DF50
_0807E878
script_0800FA4C:
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,56 @@
@ Intro Hyrule Town OBJECT_69 ?
SCRIPT_START script_Object69IntroTown
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800FD50
WaitForSomething2 0x00000010
script_0800FD1A:
@ Prevent Link from leaving
CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
JumpIfNot script_0800FD1A
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800FD5C
_0807E864
Call sub_0807F9A4
MessageFromTargetPos 0x2506, 0x0000
WaitUntilTextboxCloses
StartPlayerScript script_PlayerIntroTown
WaitForSomething2 0x00000008
_0807E878
Jump script_0800FD1A
script_0800FD50:
CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
JumpIfNot script_0800FD50
script_0800FD5C:
_0807E864
Call sub_0807F9A4
MessageFromTargetPos 0x106c, 0x0000
WaitUntilTextboxCloses
StartPlayerScript script_PlayerIntroTown
WaitForSomething2 0x00000008
_0807E878
Jump script_0800FD50
.2byte 0x0000
@@ -0,0 +1,23 @@
@ Intro Hyrule Town Percy
SCRIPT_START script_PercyIntro
BeginBlock
_0807EB44 0x0004
DoPostScriptAction 0x0000
DoPostScriptAction 0x000a
_0807E9D4
EndBlock
script_0800F662:
CheckEntityInteractType
JumpIfNot script_0800F662
_0807E864
_0807EB74
DoPostScriptAction 0x0001
Call sub_0806B4F0
WaitUntilTextboxCloses
Wait 0x000f
_0807E878
DoPostScriptAction 0x0000
Jump script_0800F662
.2byte 0x0000
@@ -0,0 +1,40 @@
@ Intro Hyrule Town Pina
SCRIPT_START script_PinaIntro
BeginBlock
_0807EB44 0x0004
_0807E930 0x0000
_0807E9D4
DoPostScriptAction 0x000a
Call sub_0807F348
EndBlock
script_0800F6A0:
CheckEntityInteractType
JumpIfNot script_0800F6A0
_0807E864
_0807EB74
CallWithArg sub_0807F3D8, 0x00000004
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800F6C4
MessageNoOverlap 0x2512
Jump script_0800F6C8
script_0800F6C4:
MessageNoOverlap 0x251f
script_0800F6C8:
WaitUntilTextboxCloses
Wait 0x000f
_0807E878
CallWithArg sub_0807F3D8, 0x00000000
Jump script_0800F6A0
.2byte 0x0000
@@ -0,0 +1,11 @@
@ Intro Hyrule Town Player
SCRIPT_START script_PlayerIntro1
BeginBlock
SetEntitySpeed 0x0100
EndBlock
SetEntityPositionRelative 0x00d8, 0x0398
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,11 @@
@ Intro Hyrule Town Player 2
SCRIPT_START script_PlayerIntro2
BeginBlock
SetEntitySpeed 0x0100
EndBlock
_0807EDD4 0x00a0, 0x0278
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,11 @@
@ Intro Hyrule Town Player 3
SCRIPT_START script_PlayerIntro3
BeginBlock
SetEntitySpeed 0x0100
EndBlock
_0807EDD4 0x0078, 0x01c0
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,11 @@
@ Intro Hyrule Town Player 4
SCRIPT_START script_PlayerIntro4
BeginBlock
SetEntitySpeed 0x0100
EndBlock
_0807EDD4 0x0108, 0x01c8
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,18 @@
@ Intro Hyrule Town Player at Pina
SCRIPT_START script_PlayerIntro5
BeginBlock
SetEntitySpeed 0x0100
EndBlock
Call sub_0807F584
JumpTable script_0800FB06, script_0800FB10, script_0800FB06, script_0800FAFC
script_0800FAFC:
CallWithArg sub_0807F4F8, 0x0000027c
script_0800FB06:
CallWithArg sub_0807F464, 0x000000e8
script_0800FB10:
_0807EDD4 0x00e8, 0x0270
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,10 @@
@ Hyrule Town Intro Player
SCRIPT_START script_PlayerIntroTown
SetEntitySpeed 0x0080
_0807EC64 0x0020
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000008
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,18 @@
@ Intro Hyrule Town Townsperson
SCRIPT_START script_TownsperonIntro
BeginBlock
Call sub_08061FE4
_0807E9D4
DoPostScriptAction 0x000a
EndBlock
script_0800F564:
CheckEntityInteractType
JumpIfNot script_0800F564
_0807E864
_0807EB74
Call sub_08061FE4
Call sub_08061FF4
WaitUntilTextboxCloses
_0807E878
Jump script_0800F564
.2byte 0x0000
@@ -0,0 +1,17 @@
@ Intro Hyrule Town WindTribespeople
SCRIPT_START script_WindtribespeopleIntro
BeginBlock
_0807E9D4
DoPostScriptAction 0x000a
DoPostScriptAction 0x0001
EndBlock
script_0800F636:
_0807E30C
JumpIfNot script_0800F636
_0807E864
_0807EB74
Call sub_0806C90C
WaitUntilTextboxCloses
_0807E878
Jump script_0800F636
.2byte 0x0000
@@ -0,0 +1,107 @@
@ Intro Hyrule Town Zelda
SCRIPT_START script_ZeldaIntroTown
BeginBlock
DoPostScriptAction 0x0008
DoPostScriptAction 0x000b
SetEntitySpeed 0x0080
Call sub_08066D04
EndBlock
WaitForSomething2 0x00000002
Call sub_08066D14
JumpIf script_0800FB6C
MoveEntityToPlayer
script_0800FB6C:
DoPostScriptAction 0x0007
SetEntityPositionRelative 0x00b8, 0x0398
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
SetEntitySpeed 0x0200
_0807EDD4 0x00b8, 0x0318
SetEntityPositionRelative 0x00a0, 0x0260
_0807EB44 0x0000
DoPostScriptAction 0x0001
_0807E5F8 0x00000004
DoPostScriptAction 0x000a
_0807E9D4
script_0800FBAE:
_0807E30C
JumpIfNot script_0800FBAE
DoPostScriptAction 0x000b
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
SetEntitySpeed 0x0200
_0807EDD4 0x00a0, 0x0268
_0807EDD4 0x0070, 0x0268
_0807EDD4 0x0070, 0x0208
SetEntityPositionRelative 0x0078, 0x01a8
_0807EB44 0x0000
DoPostScriptAction 0x0001
_0807E5F8 0x00000004
DoPostScriptAction 0x000a
script_0800FC06:
_0807E30C
JumpIfNot script_0800FC06
DoPostScriptAction 0x000b
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
SetEntitySpeed 0x0200
_0807EDD4 0x00f8, 0x01a8
SetEntityPositionRelative 0x0118, 0x01c8
_0807EB44 0x0002
DoPostScriptAction 0x0001
_0807E5F8 0x00000004
DoPostScriptAction 0x000a
script_0800FC52:
_0807E30C
JumpIfNot script_0800FC52
DoPostScriptAction 0x000b
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
SetEntitySpeed 0x0200
_0807EDD4 0x0118, 0x0260
SetEntityPositionRelative 0x00f8, 0x0270
_0807EB44 0x0000
DoPostScriptAction 0x0001
_0807E5F8 0x00000004
DoPostScriptAction 0x000a
script_0800FC9E:
@ Wait at Pina for Link
CheckEntityInteractType
JumpIfNot script_0800FC9E
DoPostScriptAction 0x000b
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
DoPostScriptAction 0x0004
WaitForSomething2 0x00000002
DoPostScriptAction 0x000d
SetEntitySpeed 0x0040
_0807EC94 0x0020
_0807EB44 0x0000
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
DoPostScriptAction 0x000c
SetEntitySpeed 0x0040
_0807ECF4 0x0020
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000004
WaitForSomething2 0x00000002
Call sub_08066D4C
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,114 @@
@ Hyrule Town Kinstone cutscene HurdyGurdyMan
SCRIPT_START script_HurdyGurdyManFirstKinstone
BeginBlock
SetEntitySpeed 0x0080
DoPostScriptAction 0x0008
DoPostScriptAction 0x000a
EndBlock
Call sub_0807F348
_0807EB44 0x0002
WaitForSomething2 0x00000002
DoPostScriptAction 0x0007
_0807EDD4 0x01b8, 0x0328
_0807E5F8 0x00000040
_0807EDD4 0x01f8, 0x0328
_0807EB44 0x0004
_0807E930 0x0008
_0807E8E4_0
_0807E5F8 0x00000040
WaitForSomething2 0x00000002
Call sub_0806E440
Wait 0x0078
_0807E5F8 0x00000040
WaitForSomething2 0x00000002
script_0800F1E6:
EndBlock
BeginBlock
CallWithArg sub_0807F680, 0x000001c0
JumpIf script_0800F22A
EndBlock
_0807E864
Call sub_0807F9A4
_0807EB74
_0807E930 0x0008
DoPostScriptAction 0x0004
Wait 0x003c
MessageFromTargetPos 0x1206, 0x000c
WaitUntilTextboxCloses
StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone1
WaitForSomething2 0x00000400
_0807E878
Jump script_0800F1E6
script_0800F22A:
CallWithArg sub_0807F680, 0x00000230
JumpIfNot script_0800F26A
EndBlock
_0807E864
Call sub_0807F9A4
_0807EB74
_0807E930 0x0008
DoPostScriptAction 0x0004
Wait 0x003c
MessageFromTargetPos 0x1206, 0x000c
WaitUntilTextboxCloses
StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone2
WaitForSomething2 0x00000400
_0807E878
Jump script_0800F1E6
script_0800F26A:
CallWithArg sub_0807F6B4, 0x00000310
JumpIf script_0800F2AA
EndBlock
_0807E864
Call sub_0807F9A4
_0807EB74
_0807E930 0x0008
DoPostScriptAction 0x0004
Wait 0x003c
MessageFromTargetPos 0x1206, 0x000c
WaitUntilTextboxCloses
StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone3
WaitForSomething2 0x00000400
_0807E878
Jump script_0800F1E6
script_0800F2AA:
CallWithArg sub_0807F6B4, 0x00000340
JumpIfNot script_0800F2EA
EndBlock
_0807E864
Call sub_0807F9A4
_0807EB74
_0807E930 0x0008
DoPostScriptAction 0x0004
Wait 0x003c
MessageFromTargetPos 0x1206, 0x000c
WaitUntilTextboxCloses
StartPlayerScript script_PlayerAtHurdyGurdyManFirstKinstone4
WaitForSomething2 0x00000400
_0807E878
Jump script_0800F1E6
script_0800F2EA:
EndBlock
BeginBlock
CheckKinstoneFused 0x0032
JumpIf script_0800F314
CheckEntityInteractType
JumpIfNot script_0800F2EA
EndBlock
_0807E864
_0807EB74
_0807E930 0x0008
MessageFromTargetPos 0x1208, 0x000c
WaitUntilTextboxCloses
_0807E878
Jump script_0800F1E6
script_0800F314:
EndBlock
_0807E5F8 0x00000040
WaitForSomething2 0x00000002
SetEntitySpeed 0x0100
_0807EB44 0x0002
_0807EEF4 0x00c0, 0x0000
_0807E5F8 0x00000040
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,43 @@
@ Hyrule Town Kinstone cutscene Kid 1
SCRIPT_START script_KidKinstone1
BeginBlock
_0807E9D4
_0807EB44 0x0002
DoPostScriptAction 0x0001
DoPostScriptAction 0x0008
SetEntitySpeed 0x0080
DoPostScriptAction 0x000b
EndBlock
Call sub_0807F348
WaitForSomething2 0x00000004
DoPostScriptAction 0x0007
_0807EDD4 0x01f8, 0x0318
_0807EDD4 0x0208, 0x0318
_0807EDD4 0x0208, 0x0338
_0807EB44 0x0006
DoPostScriptAction 0x0000
DoPostScriptAction 0x000a
_0807E5F8 0x00000080
script_0800F3EA:
EndBlock
BeginBlock
CheckEntityInteractType
JumpIfNot script_0800F402
EndBlock
_0807E864
_0807EB74
MessageNoOverlap 0x1237
WaitUntilTextboxCloses
_0807E878
script_0800F402:
TestBit 0x00000004
JumpIfNot script_0800F3EA
EndBlock
DoPostScriptAction 0x000b
Wait 0x0010
SetEntitySpeed 0x0100
_0807EC64 0x0010
_0807EDD4 0x0288, 0x0328
_0807E5F8 0x00000080
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,44 @@
@ Hyrule Town Kinstone cutscene Kid 2
SCRIPT_START script_KidKinstone2
BeginBlock
_0807E9D4
_0807EB44 0x0002
DoPostScriptAction 0x0001
DoPostScriptAction 0x0008
SetEntitySpeed 0x0080
DoPostScriptAction 0x000b
EndBlock
Call sub_0807F348
WaitForSomething2 0x00000008
DoPostScriptAction 0x0007
_0807EDD4 0x01d8, 0x0328
_0807EDD4 0x01f8, 0x0348
_0807EB44 0x0000
DoPostScriptAction 0x0000
DoPostScriptAction 0x000a
_0807E5F8 0x00000100
script_0800F478:
EndBlock
BeginBlock
CheckEntityInteractType
JumpIfNot script_0800F490
EndBlock
_0807E864
_0807EB74
MessageNoOverlap 0x1238
WaitUntilTextboxCloses
_0807E878
script_0800F490:
TestBit 0x00000008
JumpIfNot script_0800F478
EndBlock
DoPostScriptAction 0x000b
Wait 0x0018
SetEntitySpeed 0x0100
_0807EC94 0x0010
_0807EC64 0x0020
_0807EDD4 0x0288, 0x0328
_0807E5F8 0x00000100
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,43 @@
@ Hyrule Town Kinstone cutscene Kid 3
SCRIPT_START script_KidKinstone3
BeginBlock
_0807E9D4
_0807EB44 0x0002
DoPostScriptAction 0x0001
DoPostScriptAction 0x0008
SetEntitySpeed 0x0080
DoPostScriptAction 0x000b
EndBlock
Call sub_0807F348
WaitForSomething2 0x00000010
DoPostScriptAction 0x0007
_0807EDD4 0x01c8, 0x0328
_0807EDD4 0x01e8, 0x0338
_0807EB44 0x0002
DoPostScriptAction 0x0000
DoPostScriptAction 0x000a
_0807E5F8 0x00000200
script_0800F50C:
EndBlock
BeginBlock
CheckEntityInteractType
JumpIfNot script_0800F524
EndBlock
_0807E864
_0807EB74
MessageNoOverlap 0x1239
WaitUntilTextboxCloses
_0807E878
script_0800F524:
TestBit 0x00000010
JumpIfNot script_0800F50C
EndBlock
DoPostScriptAction 0x000b
Wait 0x0028
SetEntitySpeed 0x0100
_0807EC64 0x0010
_0807EDD4 0x0288, 0x0328
_0807E5F8 0x00000200
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,48 @@
@ Hyrule Town NPC4E Kinstone Cutscene
SCRIPT_START script_Npc4EFirstKinstone
BeginBlock
_0807F0B4 0x0001
CameraTargetPlayer
EndBlock
script_0800F09A:
CheckPlayerInRegion 0x01f8, 0x0338, 0x1030
JumpIfNot script_0800F09A
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
LoadRoomEntityList gUnk_080EE8AC
StartPlayerScript script_PlayerAtFirstKinstone
WaitForSomething2 0x00000001
_0807E5F8 0x0000001e
WaitForSomething2 0x00000040
MessageFromTargetPos 0x1201, 0x000c
WaitUntilTextboxCloses
WaitForSomething2 0x000003c0
_0807E8E4_0
MessageFromTargetPos 0x1202, 0x000c
WaitUntilTextboxCloses
_0807F034 0x0067
WaitPlayerGetItem
_0807E8E4_0
_0807E5F8 0x00000002
WaitForSomething2 0x00000040
MessageFromTargetPos 0x1203, 0x000c
WaitUntilTextboxCloses
_0807E5F8 0x00000002
Call sub_0807DF50
_0807E878
WaitForSomething2 0x00000040
script_0800F11A:
CheckKinstoneFused 0x0032
JumpIfNot script_0800F11A
_0807E864
Call sub_0807DF28
_0807E5F8 0x0000001e
Wait 0x003c
_0807E8E4_1
WaitForSomething2 0x000003c0
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,16 @@
@ Hyrule Town Kinstone cutscene Player
SCRIPT_START script_PlayerAtFirstKinstone
BeginBlock
SetEntitySpeed 0x0080
EndBlock
DoPostScriptAction 0x0000
_0807EB44 0x0006
DoPostScriptAction 0x0004
Wait 0x003c
DoPostScriptAction 0x0001
_0807EDD4 0x01f8, 0x0338
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00000001
Call sub_080791BC
SCRIPT_END
@@ -0,0 +1,8 @@
@ Player at Hyrule Town Kinstone cutscene HurdyGurdyMan
SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone1
SetEntitySpeed 0x0100
_0807EC94 0x0008
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,8 @@
@ Player at Hyrule Town Kinstone cutscene HurdyGurdyMan 2
SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone2
SetEntitySpeed 0x0100
_0807ECF4 0x0008
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,8 @@
@ Player at Hyrule Town Kinstone cutscene HurdyGurdyMan 3
SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone3
SetEntitySpeed 0x0100
_0807ECC4 0x0008
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,8 @@
@ Player at Hyrule Town Kinstone cutscene HurdyGurdyMan 4
SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone4
SetEntitySpeed 0x0100
_0807EC64 0x0008
_0807E5F8 0x00000400
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,35 @@
@ Minish Village Intro Forest Minish
SCRIPT_START script_ForestMinish5
BeginBlock
DoPostScriptAction 0x0000
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
DoPostScriptAction 0x000f
Call sub_0807F338
EndBlock
WaitForSomething2 0x00000200
DoPostScriptAction 0x0007
_0807EDD4 0x0208, 0x0308
_0807EB44 0x0004
DoPostScriptAction 0x0000
_0807E5F8 0x00000400
WaitForSomething2 0x00000200
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
_0807E5F8 0x00000400
WaitForSomething2 0x00000200
SetEntitySpeed 0x0200
DoPostScriptAction 0x000f
_0807EDD4 0x0208, 0x0328
DoPostScriptAction 0x0000
_0807E5F8 0x00000400
WaitForSomething2 0x00000200
SetEntitySpeed 0x0300
DoPostScriptAction 0x000f
_0807EDD4 0x0208, 0x02b0
_0807E5F8 0x00000400
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,31 @@
@ Minish Village Intro Forest Minish 2
SCRIPT_START script_ForestMinish6
BeginBlock
DoPostScriptAction 0x0000
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
DoPostScriptAction 0x000f
Call sub_0807F338
EndBlock
WaitForSomething2 0x00000800
DoPostScriptAction 0x0007
_0807EB44 0x0002
DoPostScriptAction 0x0001
_0807EDD4 0x01a8, 0x0330
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00001000
WaitForSomething2 0x00000800
SetEntitySpeed 0x0200
DoPostScriptAction 0x000f
_0807EDD4 0x01f8, 0x0348
DoPostScriptAction 0x0000
_0807E5F8 0x00001000
WaitForSomething2 0x00000800
SetEntitySpeed 0x0300
DoPostScriptAction 0x000f
_0807EDD4 0x0178, 0x0328
_0807E5F8 0x00001000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,35 @@
@ Minish Village Intro Forest Minish 3
SCRIPT_START script_ForestMinish7
BeginBlock
DoPostScriptAction 0x0000
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
DoPostScriptAction 0x000f
Call sub_0807F338
EndBlock
WaitForSomething2 0x00002000
DoPostScriptAction 0x0007
_0807EDD4 0x0258, 0x0330
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
SetEntitySpeed 0x0200
DoPostScriptAction 0x000f
_0807EDD4 0x0218, 0x0340
DoPostScriptAction 0x0000
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
_0807E5F8 0x00004000
WaitForSomething2 0x00002000
SetEntitySpeed 0x0300
DoPostScriptAction 0x000f
_0807EDD4 0x0288, 0x02d8
_0807E5F8 0x00004000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,35 @@
@ Minish Village Intro Forest Minish 4
SCRIPT_START script_ForestMinish8
BeginBlock
DoPostScriptAction 0x0008
DoPostScriptAction 0x0000
SetEntitySpeed 0x0100
DoPostScriptAction 0x000f
Call sub_0807F338
EndBlock
WaitForSomething2 0x00008000
DoPostScriptAction 0x0007
_0807EDD4 0x01b8, 0x0320
_0807EB44 0x0002
DoPostScriptAction 0x0000
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
SetEntitySpeed 0x0200
DoPostScriptAction 0x000f
_0807EDD4 0x01f8, 0x0330
DoPostScriptAction 0x0000
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
PlaySound SFX_PLY_JUMP
_0807EF3C 0x0180, 0x0030
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
SetEntitySpeed 0x0300
DoPostScriptAction 0x000f
_0807EDD4 0x0188, 0x02d8
_0807E5F8 0x00010000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,29 @@
@ Minish Village Intro Forest Minish 5
SCRIPT_START script_ForestMinish9
BeginBlock
DoPostScriptAction 0x0000
DoPostScriptAction 0x0008
SetEntitySpeed 0x0100
DoPostScriptAction 0x000f
Call sub_0807F338
EndBlock
WaitForSomething2 0x00020000
DoPostScriptAction 0x0007
_0807EDD4 0x0268, 0x0338
_0807EB44 0x0006
DoPostScriptAction 0x0000
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
SetEntitySpeed 0x0200
DoPostScriptAction 0x000f
_0807EDD4 0x0218, 0x0350
DoPostScriptAction 0x0000
_0807E5F8 0x00040000
WaitForSomething2 0x00020000
SetEntitySpeed 0x0300
DoPostScriptAction 0x000f
_0807EDD4 0x02a8, 0x0328
_0807E5F8 0x00040000
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,83 @@
@ Minish Village OBJECT_69 Intro Cutscene?
SCRIPT_START script_Object69VillageIntro
BeginBlock
_0807EB44 0x0004
SetEntitySpeed 0x0300
EndBlock
script_0800C928:
CheckPlayerInRegion 0x0208, 0x0360, 0x2040
JumpIfNot script_0800C928
_0807E864
Call sub_0807F9A4
Call sub_0807DF28
StartPlayerScript script_PlayerAtVillageIntro
WaitForSomething2 0x00000002
Wait 0x003c
_0807EB28 0x1125
WaitUntilTextboxCloses
_0807E5F8 0x00000800
_0807E8E4_3
Wait 0x003c
_0807E5F8 0x00000200
_0807E8E4_0
Wait 0x001e
_0807E5F8 0x00002000
_0807E8E4_1
Wait 0x0014
_0807E5F8 0x00020000
_0807E8E4_1
Wait 0x000a
_0807E5F8 0x00008000
_0807E8E4_3
Wait 0x001e
WaitForSomething2 0x00000400
WaitForSomething2 0x00001000
WaitForSomething2 0x00004000
WaitForSomething2 0x00010000
WaitForSomething2 0x00040000
_0807E8E4_0
Wait 0x003c
_0807E5F8 0x00000200
WaitForSomething2 0x00000400
_0807E8E4_0
MessageFromTarget 0x1126
Call sub_0807F40C
WaitUntilTextboxCloses
_0807E5F8 0x00000200
_0807E5F8 0x00000800
_0807E5F8 0x00002000
_0807E5F8 0x00008000
_0807E5F8 0x00020000
WaitForSomething2 0x00000400
WaitForSomething2 0x00001000
WaitForSomething2 0x00004000
WaitForSomething2 0x00010000
WaitForSomething2 0x00040000
_0807E5F8 0x00008000
WaitForSomething2 0x00010000
_0807E8E4_3
MessageFromTarget 0x1127
WaitUntilTextboxCloses
_0807E5F8 0x00002000
WaitForSomething2 0x00004000
_0807E8E4_1
MessageFromTarget 0x1128
WaitUntilTextboxCloses
_0807E5F8 0x00000200
_0807E5F8 0x00000800
_0807E5F8 0x00002000
_0807E5F8 0x00008000
_0807E5F8 0x00020000
WaitForSomething2 0x00000400
WaitForSomething2 0x00001000
WaitForSomething2 0x00004000
WaitForSomething2 0x00010000
WaitForSomething2 0x00040000
_0807E8E4_0
_0807EB28 0x1129
WaitUntilTextboxCloses
SetLocalFlag 0x008d
Call sub_0807DF50
_0807E878
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,14 @@
@ Minish Village Intro Player
SCRIPT_START script_PlayerAtVillageIntro
BeginBlock
SetEntitySpeed 0x0100
EndBlock
DoPostScriptAction 0x0001
_0807EDD4 0x0208, 0x0358
SetEntitySpeed 0x0080
_0807EDD4 0x0208, 0x0340
DoPostScriptAction 0x0000
_0807E5F8 0x00000002
Call sub_080791BC
SCRIPT_END
.2byte 0x0000
@@ -0,0 +1,25 @@
@ Outside Castle after ezlo cutscene EzloCap
SCRIPT_START script_EzloCapExplainingOriginStory
BeginBlock
SetEntitySpeed 0x0080
DoPostScriptAction 0x0007
EndBlock
_0807E930 0x001f
Call sub_0806D944
WaitForSomething2 0x00000008
_0807E930 0x0010
MessageFromTargetPos 0x1314, 0x000c
WaitUntilTextboxCloses
_0807E930 0x0018
Call sub_0806D8A0
script_080153C2:
_0807EE30
JumpIfNot script_080153C2
_0807E930 0x001f
StartPlayerScript script_PlayerReceivedExposition
Call sub_0806D9A4
DoPostScriptAction 0x0008
Wait 0x0078
_0807E5F8 0x00000010
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,46 @@
@ Ezlo Cutscene MinishEzlo
SCRIPT_START script_MinishEzlo
BeginBlock
SetEntitySpeed 0x0080
DoPostScriptAction 0x0007
_0807EB44 0x0000
Call sub_0807F338
EndBlock
CallWithArg sub_0806AF60, 0x00000000
WaitForSomething2 0x00008000
CallWithArg sub_0806AF60, 0x00000004
_0807EDD4 0x0078, 0x00b8
_0807EB44 0x0000
CallWithArg sub_0806AF60, 0x00000000
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
DoPostScriptAction 0x000d
_0807EB44 0x0000
CallWithArg sub_0806AF60, 0x00000004
_0807EDD4 0x0078, 0x00c8
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
_0807EB44 0x0000
CallWithArg sub_0806AF60, 0x00000000
DoPostScriptAction 0x0010
Wait 0x0028
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x000a
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
Wait 0x000a
DoPostScriptAction 0x0010
_0807E5F8 0x00010000
WaitForSomething2 0x00008000
_0807E930 0x000d
Call sub_0807F2D4
_0807E5F8 0x00010000
Wait 0x003c
DoPostScriptAction 0x0005
Wait 0x003c
script_080155E6:
CheckRoomFlag 0x0001
JumpIfNot script_080155E6
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,27 @@
@ Ezlo Cutscene OBJECT_69 Camera Target?
SCRIPT_START script_Object69CameraTarget
_0807E5F8 0x00000800
WaitForSomething2 0x00001000
PlaySound SFX_125
CallWithArg sub_0807FB28, 0x00000003
_0807E5F8 0x00048000
WaitForSomething2 0x00090000
MessageFromTargetPos 0x1311, 0x0002
WaitUntilTextboxCloses
_0807E5F8 0x00008000
WaitForSomething2 0x00010000
_0807E5F8 0x00048000
WaitForSomething2 0x00010000
CallWithArg DeleteManager36, 0x00000001
_0807F0C8 0x0000, 0x0000
MessageFromTargetPos 0x1312, 0x000c
WaitUntilTextboxCloses
_0807E5F8 0x00000800
WaitForSomething2 0x00001000
StopBgm
_0807E778 0x0004
DoFade5
WaitFor_2
SetRoomFlag 0x0001
DoPostScriptAction 0x0006
SCRIPT_END
@@ -0,0 +1,37 @@
@ Ezlo Cutscene OBJECT_69 MinishVaati
SCRIPT_START script_Object69MinishVaati
BeginBlock
_0807F0B4 0x0007
SetEntityPositionRelative 0x0078, 0x0068
CameraTargetEntity
EndBlock
PlayBgm BGM_EZLO_STORY
_0807E778 0x0004
DoFade4
WaitFor_2
Wait 0x003c
_0807E5F8 0x00000080
WaitForSomething2 0x00000100
_0807E5F8 0x00000800
WaitForSomething2 0x00001000
_0807E5F8 0x00000880
WaitForSomething2 0x00001100
_0807F0B4 0x0004
SetEntityPositionRelative 0x0078, 0x0090
MessageFromTargetPos 0x1330, 0x0002
WaitUntilTextboxCloses
_0807E5F8 0x00008000
WaitForSomething2 0x00010000
_0807E5F8 0x00000880
WaitForSomething2 0x00001000
Wait 0x003c
MessageFromTargetPos 0x130d, 0x0002
WaitUntilTextboxCloses
MessageFromTargetPos 0x130e, 0x000c
WaitUntilTextboxCloses
MessageFromTargetPos 0x130f, 0x0002
WaitUntilTextboxCloses
MessageFromTargetPos 0x1310, 0x000c
WaitUntilTextboxCloses
CallWithArg CreateManager36, 0x00000001
_0807F0C8 0xffff, 0x0000

Some files were not shown because too many files have changed in this diff Show More