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,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