summaryrefslogtreecommitdiff
path: root/data/scripts/graveyard
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2021-12-26 23:22:16 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2021-12-26 23:22:16 +0100
commit2ccf89a1fb89e01f449e1d4ce734c57943fa093b (patch)
tree55b14aa2625dd269c30be6d636b97a65d828b145 /data/scripts/graveyard
parent11bb0e7656594d12bf16a250d43a59361e15bd9e (diff)
Rename scripts
Diffstat (limited to 'data/scripts/graveyard')
-rw-r--r--data/scripts/graveyard/script_DampeInside.inc20
-rw-r--r--data/scripts/graveyard/script_DampeInside2.inc13
-rw-r--r--data/scripts/graveyard/script_DampeOuside.inc36
-rw-r--r--data/scripts/graveyard/script_GhostBrothers.inc20
-rw-r--r--data/scripts/graveyard/script_Gina.inc28
-rw-r--r--data/scripts/graveyard/script_GraveyardHouseDoor.inc30
-rw-r--r--data/scripts/graveyard/script_GreatFairyArrows.inc53
-rw-r--r--data/scripts/graveyard/script_KingGustav.inc43
-rw-r--r--data/scripts/graveyard/script_Object69CrowStealingKey.inc29
-rw-r--r--data/scripts/graveyard/script_Object69GetKeyBack.inc48
-rw-r--r--data/scripts/graveyard/script_Object6AKingsGravestone.inc15
-rw-r--r--data/scripts/graveyard/script_Object97FirstCrow.inc22
-rw-r--r--data/scripts/graveyard/script_Object97SecondCrow.inc18
-rw-r--r--data/scripts/graveyard/script_PlayerAtGraveyardHouseDoor.inc16
-rw-r--r--data/scripts/graveyard/script_PlayerAtKingGustav.inc12
-rw-r--r--data/scripts/graveyard/script_PlayerGetKeyStolen.inc21
16 files changed, 424 insertions, 0 deletions
diff --git a/data/scripts/graveyard/script_DampeInside.inc b/data/scripts/graveyard/script_DampeInside.inc
new file mode 100644
index 00000000..4f7b7f6f
--- /dev/null
+++ b/data/scripts/graveyard/script_DampeInside.inc
@@ -0,0 +1,20 @@
+@ Graveyard Dampe in house
+SCRIPT_START script_DampeInside
+ CheckEntityInteractType
+ JumpIfNot script_080095DE
+ _0807E864
+ _0807EB74
+ DoPostScriptAction 0x0001
+ Call sub_0806BE84
+ WaitUntilTextboxCloses
+ JumpIfNot script_08009622
+ PlaySound SFX_109
+ _0807F088 0x003c
+ MessageFromTarget 0x053c
+ WaitPlayerGetItem
+ WaitUntilTextboxCloses
+ _0807F078 0x003c, 0x0001
+script_08009622:
+ _0807E878
+ DoPostScriptAction 0x0000
+ Jump script_080095DE
diff --git a/data/scripts/graveyard/script_DampeInside2.inc b/data/scripts/graveyard/script_DampeInside2.inc
new file mode 100644
index 00000000..fba10fd3
--- /dev/null
+++ b/data/scripts/graveyard/script_DampeInside2.inc
@@ -0,0 +1,13 @@
+@ Graveyard Dampe in house 2?
+SCRIPT_START script_DampeInside2
+ BeginBlock
+ Call sub_0806BE3C
+ DoPostScriptAction 0x000a
+ DoPostScriptAction 0x0007
+ EndBlock
+script_080095DE:
+ Call sub_0806BF44
+ JumpIf script_DampeInside
+ DoPostScriptAction 0x000b
+ DoPostScriptAction 0x0006
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_DampeOuside.inc b/data/scripts/graveyard/script_DampeOuside.inc
new file mode 100644
index 00000000..fd0d90a2
--- /dev/null
+++ b/data/scripts/graveyard/script_DampeOuside.inc
@@ -0,0 +1,36 @@
+@ Graveyard Dampe outside
+SCRIPT_START script_DampeOuside
+ BeginBlock
+ DoPostScriptAction 0x000b
+ DoPostScriptAction 0x0008
+ EndBlock
+script_08009638:
+ EndBlock
+ BeginBlock
+ CheckGlobalFlag 0x0020
+ JumpIfNot script_08009638
+ EndBlock
+script_08009646:
+ Call sub_0806BF44
+ JumpIf script_08009646
+ EndBlock
+ Call sub_0806BE3C
+ DoPostScriptAction 0x000a
+ DoPostScriptAction 0x0007
+script_08009660:
+ CheckEntityInteractType
+ JumpIfNot script_08009660
+ _0807E864
+ _0807EB74
+ DoPostScriptAction 0x0001
+ Call sub_0806BEC8
+ WaitUntilTextboxCloses
+ JumpIfNot script_0800968E
+ PlaySound SFX_111
+ PlaySound SFX_SECRET
+ _0807F078 0x003c, 0x0002
+ Call sub_0806BEFC
+script_0800968E:
+ _0807E878
+ DoPostScriptAction 0x0000
+ Jump script_08009660
diff --git a/data/scripts/graveyard/script_GhostBrothers.inc b/data/scripts/graveyard/script_GhostBrothers.inc
new file mode 100644
index 00000000..4f734e51
--- /dev/null
+++ b/data/scripts/graveyard/script_GhostBrothers.inc
@@ -0,0 +1,20 @@
+@ Graveyard GhostBrothers
+SCRIPT_START script_GhostBrothers
+ BeginBlock
+ Call sub_08065D00
+ _0807EB44 0x0004
+ DoPostScriptAction 0x0000
+ DoPostScriptAction 0x000a
+ DoPostScriptAction 0x0007
+ EndBlock
+script_0800975A:
+ CheckEntityInteractType
+ JumpIfNot script_0800975A
+ _0807E864
+ _0807EB74
+ DoPostScriptAction 0x0000
+ Call sub_08065F64
+ WaitUntilTextboxCloses
+ _0807E878
+ Jump script_0800975A
+ .2byte 0x0000
diff --git a/data/scripts/graveyard/script_Gina.inc b/data/scripts/graveyard/script_Gina.inc
new file mode 100644
index 00000000..2f0422c7
--- /dev/null
+++ b/data/scripts/graveyard/script_Gina.inc
@@ -0,0 +1,28 @@
+@ Graveyard Gina
+SCRIPT_START script_Gina
+ BeginBlock
+ _0807EB44 0x0004
+ DoPostScriptAction 0x0000
+ DoPostScriptAction 0x000a
+ EndBlock
+ CheckLocalFlag 0x005f
+ JumpIf script_0800B94E
+script_0800B934:
+ CheckEntityInteractType
+ JumpIfNot script_0800B934
+ _0807E864
+ _0807EB74
+ MessageFromTarget 0x3f19
+ WaitUntilTextboxCloses
+ SetLocalFlag 0x005f
+ _0807E878
+ Jump script_0800B934
+script_0800B94E:
+ CheckEntityInteractType
+ JumpIfNot script_0800B94E
+ _0807E864
+ _0807EB74
+ MessageFromTarget 0x3f1a
+ WaitUntilTextboxCloses
+ _0807E878
+ Jump script_0800B94E
diff --git a/data/scripts/graveyard/script_GraveyardHouseDoor.inc b/data/scripts/graveyard/script_GraveyardHouseDoor.inc
new file mode 100644
index 00000000..04e54f7d
--- /dev/null
+++ b/data/scripts/graveyard/script_GraveyardHouseDoor.inc
@@ -0,0 +1,30 @@
+@ Graveyard house door
+SCRIPT_START script_GraveyardHouseDoor
+ BeginBlock
+ DoPostScriptAction 0x0007
+ Jump script_080096FC
+ CheckGlobalFlag 0x0020
+ JumpIf script_080096FC
+ EndBlock
+script_080096AC:
+ CheckPlayerInRegion 0x0188, 0x01c0, 0x1020
+ JumpIfNot script_080096AC
+ _0807E864
+ Call sub_0807F9A4
+ Call sub_0807DF28
+ StartPlayerScript script_PlayerAtGraveyardHouseDoor
+ WaitForSomething2 0x00000001
+ PlaySound SFX_111
+ DoPostScriptAction 0x0008
+ LoadRoomEntityList gUnk_080D9048
+ Wait 0x000f
+ PlaySound SFX_111
+ DoPostScriptAction 0x0007
+script_080096EC:
+ CheckGlobalFlag 0x0020
+ JumpIfNot script_080096EC
+ Call sub_0807DF50
+ _0807E878
+script_080096FC:
+ Call sub_0808692C
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_GreatFairyArrows.inc b/data/scripts/graveyard/script_GreatFairyArrows.inc
new file mode 100644
index 00000000..d78252c3
--- /dev/null
+++ b/data/scripts/graveyard/script_GreatFairyArrows.inc
@@ -0,0 +1,53 @@
+@ Graveyard Great Fairy OBJECT_69
+SCRIPT_START script_GreatFairyArrows
+ BeginBlock
+ EndBlock
+script_0800B618:
+ CheckPlayerInRegion 0x0078, 0x00b8, 0x1060
+ JumpIfNot script_0800B618
+ Call sub_08079184
+ _0807E864
+ Call sub_0807F9A4
+ StartPlayerScript script_PlayerAtGreatFairy
+ WaitForSomething2 0x00000004
+ SetRoomFlag 0x0000
+ WaitForSomething2 0x00000004
+ CheckLocalFlag 0x009e
+ JumpIf script_0800B7A2
+ MessageNoOverlap 0x0583
+ WaitUntilTextboxCloses
+ _0807E3E8
+ JumpIfNot script_0800B684
+ Wait 0x000f
+ MessageNoOverlap 0x0584
+ CallWithArg sub_0807F970, 0x0000058b
+ JumpIf script_0800B68E
+ CallWithArg sub_08087424, 0x00000000
+ Wait 0x00b4
+ Jump script_0800B6A6
+script_0800B684:
+ MessageNoOverlap 0x057d
+ WaitUntilTextboxCloses
+ Jump script_0800B6A6
+script_0800B68E:
+ WaitUntilTextboxCloses
+ SetLocalFlag 0x009e
+ _0807F034 0x0066
+script_0800B698:
+ WaitPlayerGetItem
+ _0807EB8C
+ Wait 0x001e
+ MessageNoOverlap 0x057f
+ WaitUntilTextboxCloses
+script_0800B6A6:
+ _0807E778 0x0004
+ DoFade7
+ WaitFor_2
+ Call sub_080873FC
+ DoFade6
+ WaitFor_2
+ CameraTargetPlayer
+ Wait 0x001e
+ Call sub_0807DF50
+ _0807E878
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_KingGustav.inc b/data/scripts/graveyard/script_KingGustav.inc
new file mode 100644
index 00000000..14fceb9f
--- /dev/null
+++ b/data/scripts/graveyard/script_KingGustav.inc
@@ -0,0 +1,43 @@
+@ Graveyard King Gustav
+SCRIPT_START script_KingGustav
+ BeginBlock
+ DoPostScriptAction 0x0008
+ Call sub_0807F180
+ EndBlock
+script_0800D962:
+ CheckPlayerInRegion 0x0118, 0x0038, 0x3050
+ JumpIfNot script_0800D962
+ _0807E864
+ Call sub_0807F9A4
+ Call sub_0807DF28
+ StartPlayerScript script_PlayerAtKingGustav
+ WaitForSomething2 0x00000001
+ Wait 0x003c
+ _0807EB44 0x0004
+ DoPostScriptAction 0x0000
+ DoPostScriptAction 0x0007
+ PlaySound SFX_ELEMENT_FLOAT
+ SetEntity0x20 0xffff8000
+ MessageNoOverlap 0x1701
+ WaitUntilTextboxCloses
+ _0807E5F8 0x00000004
+ WaitForSomething2 0x00000002
+ MessageNoOverlap 0x1702
+ WaitUntilTextboxCloses
+ SetEntity0x20 0x00010000
+ _0807E5F8 0x00000004
+ WaitForSomething2 0x00000002
+ _0807F050 0x006d
+ WaitPlayerGetItem
+ _0807EB28 0x1703
+ WaitUntilTextboxCloses
+ Wait 0x003c
+ SetLocalFlag 0x0032
+ PlaySound SFX_113
+ SetIntVariable 0x00000001
+ Call sub_0806DA1C
+ Call sub_0807DF50
+ _0807E878
+ DoPostScriptAction 0x0006
+SCRIPT_END
+ .2byte 0x0000
diff --git a/data/scripts/graveyard/script_Object69CrowStealingKey.inc b/data/scripts/graveyard/script_Object69CrowStealingKey.inc
new file mode 100644
index 00000000..d4eeac98
--- /dev/null
+++ b/data/scripts/graveyard/script_Object69CrowStealingKey.inc
@@ -0,0 +1,29 @@
+@ Graveyard OBJECT_69 Crow stealing key cutscene
+SCRIPT_START script_Object69CrowStealingKey
+ _0807E864
+ Call sub_0807F9A4
+ Call sub_0807DF28
+ PlaySound SFX_1F3
+ Call sub_0807F40C
+ _0807E8E4_1
+ Wait 0x000a
+ _0807E8E4_3
+ Wait 0x0032
+ _0807E5F8 0x00000002
+ WaitForSomething2 0x00000004
+ StartPlayerScript script_PlayerGetKeyStolen
+ WaitForSomething2 0x00000040
+ _0807E5F8 0x00000008
+ WaitForSomething2 0x00000010
+ _0807E5F8 0x00000020
+ WaitForSomething2 0x00000040
+ _0807F078 0x003c, 0x0000
+ SetGlobalFlag 0x0020
+ _0807E8E4_3
+ Wait 0x001e
+ _0807EB28 0x2809
+ WaitUntilTextboxCloses
+ Call sub_0807DF50
+ _0807E878
+ DoPostScriptAction 0x0006
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_Object69GetKeyBack.inc b/data/scripts/graveyard/script_Object69GetKeyBack.inc
new file mode 100644
index 00000000..7c9b1a25
--- /dev/null
+++ b/data/scripts/graveyard/script_Object69GetKeyBack.inc
@@ -0,0 +1,48 @@
+@ Graveyard OBJECT_69 When getting the key back
+SCRIPT_START script_Object69GetKeyBack
+ BeginBlock
+ EndBlock
+script_080098D8:
+ CheckGlobalFlag 0x0020
+ JumpIfNot script_080098D8
+script_080098E0:
+ CheckInventory1 0x003c
+ JumpIfNot script_080098E0
+.ifdef JP
+ CheckLocalFlag 0x5b
+.else
+.ifdef EU
+ CheckLocalFlag 0x5b
+.else
+.ifdef DEMO_JP
+ CheckLocalFlag 0x5b @ TODO deduplicate
+.else
+ CheckLocalFlag 0x5d
+.endif
+.endif
+.endif
+ JumpIf script_08009910
+.ifdef JP
+ SetLocalFlag 0x005b
+.else
+.ifdef EU
+ SetLocalFlag 0x005b
+.else
+.ifdef DEMO_JP
+ SetLocalFlag 0x005b @ TODO deduplicate
+.else
+ SetLocalFlag 0x005d
+.endif
+.endif
+.endif
+ _0807E864
+ Call sub_0807F9A4
+ Call sub_0807DF28
+ _0807EB28 0x280a
+ WaitUntilTextboxCloses
+ Call sub_0807DF50
+ _0807E878
+script_08009910:
+ DoPostScriptAction 0x0006
+SCRIPT_END
+ .2byte 0x0000
diff --git a/data/scripts/graveyard/script_Object6AKingsGravestone.inc b/data/scripts/graveyard/script_Object6AKingsGravestone.inc
new file mode 100644
index 00000000..57b0a88c
--- /dev/null
+++ b/data/scripts/graveyard/script_Object6AKingsGravestone.inc
@@ -0,0 +1,15 @@
+@ Graveyard OBJECT_6A Kings gravestone? or King ghost representation?
+SCRIPT_START script_Object6AKingsGravestone
+ BeginBlock
+ DoPostScriptAction 0x0008
+ SetEntitySpeed 0x0080
+ EndBlock
+ WaitForSomething2 0x00000004
+ DoPostScriptAction 0x0007
+ Wait 0x003c
+ _0807E5F8 0x00000002
+ WaitForSomething2 0x00000004
+ _0807EDD4 0x0118, 0x0060
+ _0807E5F8 0x00000002
+ DoPostScriptAction 0x0006
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_Object97FirstCrow.inc b/data/scripts/graveyard/script_Object97FirstCrow.inc
new file mode 100644
index 00000000..40e0dd9a
--- /dev/null
+++ b/data/scripts/graveyard/script_Object97FirstCrow.inc
@@ -0,0 +1,22 @@
+@ Graveyard OBJECT_97 Crow stealing the key? first crow that makes link loose the key
+SCRIPT_START script_Object97FirstCrow
+ BeginBlock
+ _0807E930 0x0003
+ DoPostScriptAction 0x0007
+ SetEntitySpeed 0x0300
+ Call sub_0807F348
+ EndBlock
+ WaitForSomething2 0x00000002
+ PlaySound SFX_123
+ Call sub_0807F1A0
+script_08009816:
+ EndBlock
+ BeginBlock
+ _0807EE30
+ JumpIfNot script_08009816
+ EndBlock
+ _0807E5F8 0x00000004
+ Call sub_0807FBD4
+ PlaySound SFX_1F3
+ DoPostScriptAction 0x0006
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_Object97SecondCrow.inc b/data/scripts/graveyard/script_Object97SecondCrow.inc
new file mode 100644
index 00000000..c3b86b00
--- /dev/null
+++ b/data/scripts/graveyard/script_Object97SecondCrow.inc
@@ -0,0 +1,18 @@
+@ Graveyard OBJECT_97 Crow stealing the key? Second crow that picks up the key
+SCRIPT_START script_Object97SecondCrow
+ BeginBlock
+ _0807E930 0x0003
+ DoPostScriptAction 0x0007
+ SetEntitySpeed 0x0300
+ Call sub_0807F348
+ EndBlock
+ WaitForSomething2 0x00000008
+ Call sub_0809E0A0
+ Call sub_0809E0D4
+ PlaySound SFX_1F3
+ Call sub_0807FBD4
+ PlaySound SFX_1F3
+ _0807E5F8 0x00000010
+ DoPostScriptAction 0x0006
+SCRIPT_END
+ .2byte 0x0000
diff --git a/data/scripts/graveyard/script_PlayerAtGraveyardHouseDoor.inc b/data/scripts/graveyard/script_PlayerAtGraveyardHouseDoor.inc
new file mode 100644
index 00000000..4fbb447d
--- /dev/null
+++ b/data/scripts/graveyard/script_PlayerAtGraveyardHouseDoor.inc
@@ -0,0 +1,16 @@
+@ Player at Graveyard house door
+SCRIPT_START script_PlayerAtGraveyardHouseDoor
+ SetEntitySpeed 0x0080
+ DoPostScriptAction 0x0001
+ _0807EDD4 0x01a0, 0x01b0
+ _0807EB44 0x0000
+ DoPostScriptAction 0x0000
+ Wait 0x000a
+ DoPostScriptAction 0x0004
+ Wait 0x003c
+ _0807E5F8 0x00000001
+ DoPostScriptAction 0x000d
+ SetEntitySpeed 0x0100
+ _0807ECC4 0x0010
+ Call sub_080791BC
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_PlayerAtKingGustav.inc b/data/scripts/graveyard/script_PlayerAtKingGustav.inc
new file mode 100644
index 00000000..92ced678
--- /dev/null
+++ b/data/scripts/graveyard/script_PlayerAtKingGustav.inc
@@ -0,0 +1,12 @@
+@ Player at Graveyard King Gustaf
+SCRIPT_START script_PlayerAtKingGustav
+ BeginBlock
+ SetEntitySpeed 0x0080
+ EndBlock
+ DoPostScriptAction 0x0001
+ _0807EDD4 0x0118, 0x0060
+ _0807EB44 0x0000
+ DoPostScriptAction 0x0000
+ _0807E5F8 0x00000001
+ Call sub_080791BC
+SCRIPT_END
diff --git a/data/scripts/graveyard/script_PlayerGetKeyStolen.inc b/data/scripts/graveyard/script_PlayerGetKeyStolen.inc
new file mode 100644
index 00000000..4848e38c
--- /dev/null
+++ b/data/scripts/graveyard/script_PlayerGetKeyStolen.inc
@@ -0,0 +1,21 @@
+@ Player when crow steals key
+SCRIPT_START script_PlayerGetKeyStolen
+ PlaySound SFX_PLY_VO6
+ _0807EB44 0x0004
+ PlaySound SFX_86
+ Call sub_0807F36C
+ SetEntitySpeed 0x0400
+ _0807ECF4 0x0004
+ Call sub_0807F1E8
+ Wait 0x001e
+ _0807E5F8 0x00000040
+ WaitForSomething2 0x00000020
+ PlaySound SFX_PLY_JUMP
+ _0807EB44 0x0004
+ Call sub_0807F210
+ _0807EF3C 0x0200, 0x0020
+ DoPostScriptAction 0x0000
+ _0807E5F8 0x00000040
+ Call sub_080791BC
+SCRIPT_END
+ .2byte 0x0000