diff options
| author | Henny022p <info@henny022.de> | 2022-01-18 06:38:58 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2022-01-18 06:38:58 +0100 |
| commit | a5a53e70552551698300eac9b6df8ec978d42f95 (patch) | |
| tree | 8d032a411688e6a38e5d47e74a3ada42d27f5410 /data/scripts/cloudTops | |
| parent | 1c932ffea86160bd5f71f7e5523b6d215dad4543 (diff) | |
| parent | 2cf294d02dfa8a483827d4df65ea42834bf29cf5 (diff) | |
merge master
Diffstat (limited to 'data/scripts/cloudTops')
20 files changed, 524 insertions, 0 deletions
diff --git a/data/scripts/cloudTops/script_EzloTalkPoW.inc b/data/scripts/cloudTops/script_EzloTalkPoW.inc new file mode 100644 index 00000000..a8980ffa --- /dev/null +++ b/data/scripts/cloudTops/script_EzloTalkPoW.inc @@ -0,0 +1,12 @@ +@ Ezlo talk after getting wind element +SCRIPT_START script_EzloTalkPoW + SetPlayerIdle + Call sub_0807DF28 + EzloMessage 0x1c05 + WaitUntilTextboxCloses + SetLocalFlagByBank 0x0100, 0x0005 + Call sub_0807DF50 + EnablePlayerControl + DoPostScriptAction 0x0006 +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_GregalHealthy.inc b/data/scripts/cloudTops/script_GregalHealthy.inc new file mode 100644 index 00000000..8f96aa4f --- /dev/null +++ b/data/scripts/cloudTops/script_GregalHealthy.inc @@ -0,0 +1,36 @@ +@ Cloud Tops Gregal healthy +SCRIPT_START script_GregalHealthy + BeginBlock + Call sub_0806CD58 + DoPostScriptAction 0x000a + SetAnimationState 0x0004 + SetAnimation 0x0006 + EndBlock +script_08014C42: + CheckEntityInteractType + JumpIfNot script_08014C42 + SetPlayerIdle + FacePlayer +script_08014C4C: + Call sub_0806CCD0 + JumpIfNot script_08014C4C +script_08014C56: + Call sub_0806CCB4 + JumpIfNot script_08014C56 + CheckLocalFlag 0x0066 + JumpIf script_08014C7C + SetLocalFlag 0x0066 + MessageNoOverlap 0x2f0d + WaitUntilTextboxCloses + GivePlayerItem 0x000a + WaitPlayerGetItem + Jump script_08014C82 +script_08014C7C: + MessageNoOverlap 0x2f09 + WaitUntilTextboxCloses +script_08014C82: + Wait 0x000f + EnablePlayerControl + SetAnimationState 0x0004 + SetAnimation 0x0006 + Jump script_08014C42 diff --git a/data/scripts/cloudTops/script_GregalSick.inc b/data/scripts/cloudTops/script_GregalSick.inc new file mode 100644 index 00000000..038c7f29 --- /dev/null +++ b/data/scripts/cloudTops/script_GregalSick.inc @@ -0,0 +1,72 @@ +@ Cloud Tops Gregal sick +SCRIPT_START script_GregalSick + BeginBlock + DoPostScriptAction 0x000a + SetAnimation 0x0000 + EndBlock + CheckLocalFlag 0x0063 + JumpIf script_08014BE8 +script_08014B48: + EndBlock + BeginBlock + CheckRoomFlag 0x0000 + JumpIf script_08014B70 + CheckEntityInteractType + JumpIfNot script_08014B48 + EndBlock + SetPlayerIdle + FacePlayer + MessageNoOverlap 0x2f01 + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_08014B48 +script_08014B70: + EndBlock + SetPlayerIdle + Call sub_0807DF28 + SetSyncFlag 0x00000001 + DoPostScriptAction 0x0004 + WaitForSyncFlagAndClear 0x00000002 + SetAnimation 0x0010 + Call sub_0806CCF8 + Wait 0x0014 + Call sub_0806CD04 + Wait 0x0014 + Call sub_0806CD14 + Wait 0x0014 + Call sub_0806CD20 + Wait 0x0014 + Call sub_0806CD30 + Wait 0x0014 + Call sub_0806CD3C + Wait 0x0014 + Call sub_0806CD4C + PlaySound SFX_SECRET + SetSyncFlag 0x00000001 + WaitForSyncFlagAndClear 0x00000002 + Call sub_0807DF50 + EnablePlayerControl +script_08014BE8: + SetAnimation 0x0010 + Call sub_0806CD4C +script_08014BF2: + CheckEntityInteractType + JumpIfNot script_08014BF2 + SetPlayerIdle + CheckLocalFlag 0x0065 + JumpIf script_08014C1C + SetLocalFlag 0x0065 + MessageNoOverlap 0x2f07 + WaitUntilTextboxCloses + SetIntVariable 0x00000064 + GivePlayerItem 0x003f + WaitPlayerGetItem + Jump script_08014C22 +script_08014C1C: + MessageNoOverlap 0x2f08 + WaitUntilTextboxCloses +script_08014C22: + Wait 0x000f + EnablePlayerControl + Jump script_08014BF2 diff --git a/data/scripts/cloudTops/script_HiddenWhirlwind1.inc b/data/scripts/cloudTops/script_HiddenWhirlwind1.inc new file mode 100644 index 00000000..5cfb88b9 --- /dev/null +++ b/data/scripts/cloudTops/script_HiddenWhirlwind1.inc @@ -0,0 +1,38 @@ +@ Cloud Tops Whirlwind hidden in clouds +SCRIPT_START script_HiddenWhirlwind1 + BeginBlock +.ifdef JP + CheckLocalFlag 0x00f0 +.else +.ifdef EU + CheckLocalFlag 0x00f0 +.else +.ifdef DEMO_JP + CheckLocalFlag 0x00f0 @ TODO deduplicate +.else + CheckLocalFlag 0x00f3 +.endif +.endif +.endif + JumpIf script_0800D6E8 + DoPostScriptAction 0x0008 + EndBlock +script_0800D6E0: +.ifdef JP + CheckLocalFlag 0x00f0 +.else +.ifdef EU + CheckLocalFlag 0x00f0 +.else +.ifdef DEMO_JP + CheckLocalFlag 0x00f0 @ TODO deduplicate +.else + CheckLocalFlag 0x00f3 +.endif +.endif +.endif + JumpIfNot script_0800D6E0 +script_0800D6E8: + DoPostScriptAction 0x0007 +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_HiddenWhirlwind2.inc b/data/scripts/cloudTops/script_HiddenWhirlwind2.inc new file mode 100644 index 00000000..efbd3eb3 --- /dev/null +++ b/data/scripts/cloudTops/script_HiddenWhirlwind2.inc @@ -0,0 +1,37 @@ +@ Cloud Tops Whirlwind hidden in clouds +SCRIPT_START script_HiddenWhirlwind2 + BeginBlock +.ifdef JP + CheckLocalFlag 0x00f2 +.else +.ifdef EU + CheckLocalFlag 0x00f2 +.else +.ifdef DEMO_JP + CheckLocalFlag 0x00f2 @ TODO deduplicate +.else + CheckLocalFlag 0x00f5 +.endif +.endif +.endif + JumpIf script_0800D6E8 + DoPostScriptAction 0x0008 + EndBlock +script_0800D700: +.ifdef JP + CheckLocalFlag 0x00f2 +.else +.ifdef EU + CheckLocalFlag 0x00f2 +.else +.ifdef DEMO_JP + CheckLocalFlag 0x00f2 @ TODO deduplicate +.else + CheckLocalFlag 0x00f5 +.endif +.endif +.endif + JumpIfNot script_0800D700 + DoPostScriptAction 0x0007 +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_Npc4EFirstCloud.inc b/data/scripts/cloudTops/script_Npc4EFirstCloud.inc new file mode 100644 index 00000000..bec3df8e --- /dev/null +++ b/data/scripts/cloudTops/script_Npc4EFirstCloud.inc @@ -0,0 +1,37 @@ +@ Cloud Tops NPC4E at first Mysterious Cloud +@ Reponsible for Kinstone cutscenes +SCRIPT_START script_Npc4EFirstCloud + BeginBlock + SetAnimationState 0x0004 + DoPostScriptAction 0x000b + DoPostScriptAction 0x0008 + Call sub_0806DAAC + JumpIf script_0800D6AE + Call sub_0806DAD0 + CallWithArg sub_0806DA04, 0x00000002 + EndBlock +script_0800D636: + _0807EA4C + _0807E9F0 + Call sub_0806DAAC + JumpIf script_0800D650 + Call sub_0807DF50 + EnablePlayerControl + Jump script_0800D636 +script_0800D650: + SetPlayerIdle + Call sub_0807DF28 + Call sub_0807FBC4 + Call sub_0807FBA0 + SetEntitySpeed 0x0700 + _0807F0B4 0x0007 + CameraTargetEntity + _0807EDD4 0x01e8, 0x01b8 + Wait 0x003c + Call sub_0806DAE8 + Wait 0x0078 + Call sub_0806DB44 + JumpIfNot script_Npc4EKinstoneFused + LoadRoomEntityList gUnk_080DD730 + DoPostScriptAction 0x0006 +SCRIPT_END diff --git a/data/scripts/cloudTops/script_Npc4EKinstoneFused.inc b/data/scripts/cloudTops/script_Npc4EKinstoneFused.inc new file mode 100644 index 00000000..8f86a3a7 --- /dev/null +++ b/data/scripts/cloudTops/script_Npc4EKinstoneFused.inc @@ -0,0 +1,11 @@ +@ Cloud Tops NPC4E after Kinstone has been fused +SCRIPT_START script_Npc4EKinstoneFused + _0807EEB4 + _0807F0B4 0x0004 + CameraTargetPlayer + Call sub_0807FBCC + EnablePlayerControl + Call sub_0807DF50 +script_0800D6AE: + DoPostScriptAction 0x0006 +SCRIPT_END diff --git a/data/scripts/cloudTops/script_Object69GreatWhirlwindRevealed.inc b/data/scripts/cloudTops/script_Object69GreatWhirlwindRevealed.inc new file mode 100644 index 00000000..8053cca1 --- /dev/null +++ b/data/scripts/cloudTops/script_Object69GreatWhirlwindRevealed.inc @@ -0,0 +1,24 @@ +@ Cloud Tops OBJECT_69 great whirlwind revealed +SCRIPT_START script_Object69GreatWhirlwindRevealed + BeginBlock + Call SetPriorityHighest + SetEntitySpeed 0x0700 + _0807F0B4 0x0007 + CameraTargetEntity + Call sub_0807FBC4 + EndBlock + SetSyncFlag 0x00000008 + WaitForSyncFlagAndClear 0x00000010 + SetSyncFlag 0x00000002 + WaitForSyncFlagAndClear 0x00000004 + SetSyncFlag 0x0000000a + WaitForSyncFlagAndClear 0x00000004 + _0807EEB4 + _0807F0B4 0x0004 + CameraTargetPlayer + Call sub_0807FBCC + EnablePlayerControl + Call sub_0807DF50 + DoPostScriptAction 0x0006 +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_Object6AMysteriousCloud.inc b/data/scripts/cloudTops/script_Object6AMysteriousCloud.inc new file mode 100644 index 00000000..686d63dd --- /dev/null +++ b/data/scripts/cloudTops/script_Object6AMysteriousCloud.inc @@ -0,0 +1,10 @@ +@ Cloud Tops OBJECT_6A Mysterious Cloud +SCRIPT_START script_Object6AMysteriousCloud + BeginBlock + DoPostScriptAction 0x0007 + DoPostScriptAction 0x0011 + Call SetCollisionLayer1 + Call sub_0807F738 + EndBlock +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_PlayerAtSiroc.inc b/data/scripts/cloudTops/script_PlayerAtSiroc.inc new file mode 100644 index 00000000..ebdfb81b --- /dev/null +++ b/data/scripts/cloudTops/script_PlayerAtSiroc.inc @@ -0,0 +1,11 @@ +@ Player at Windtribespeople leader Siroc +SCRIPT_START script_PlayerAtSiroc + BeginBlock + SetEntitySpeed 0x0100 + EndBlock + _0807EDD4 0x0078, 0x0040 + SetAnimationState 0x0000 + DoPostScriptAction 0x0000 + SetSyncFlag 0x00000001 + Call SetPlayerActionNormal +SCRIPT_END diff --git a/data/scripts/cloudTops/script_Siroc.inc b/data/scripts/cloudTops/script_Siroc.inc new file mode 100644 index 00000000..94c1d72c --- /dev/null +++ b/data/scripts/cloudTops/script_Siroc.inc @@ -0,0 +1,27 @@ +@ Cloud Tops Windtribespeople Leader Siroc +SCRIPT_START script_Siroc + BeginBlock + Call sub_0806C870 + DoPostScriptAction 0x000a + EndBlock +script_08014AD2: + FacePlayerAndCheckDist + JumpIfNot script_08014AD2 + SetPlayerIdle + FacePlayer + StartPlayerScript script_PlayerAtSiroc + WaitForSyncFlagAndClear 0x00000001 + FacePlayer + CheckLocalFlag 0x0064 + JumpIf script_08014AFE + SetLocalFlag 0x0064 + MessageNoOverlap 0x2f0b + Jump script_08014B02 +script_08014AFE: + MessageNoOverlap 0x2f0c +script_08014B02: + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_08014AD2 + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeople1.inc b/data/scripts/cloudTops/script_WindTribespeople1.inc new file mode 100644 index 00000000..94a6feb5 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople1.inc @@ -0,0 +1,21 @@ +@ Cloud Tops WindTribespeople blocking exit +SCRIPT_START script_WindTribespeople1 + BeginBlock + Call sub_0806C870 + DoPostScriptAction 0x000a + CheckGlobalFlag 0x0058 + JumpIf script_08014976 + SetAnimationState 0x0004 + SetEntityPositionRelative 0x0078, 0x0128 +script_08014976: + EndBlock +script_08014978: + FacePlayerAndCheckDist + JumpIfNot script_08014978 + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_08014978 diff --git a/data/scripts/cloudTops/script_WindTribespeople2.inc b/data/scripts/cloudTops/script_WindTribespeople2.inc new file mode 100644 index 00000000..f8fa2804 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople2.inc @@ -0,0 +1,21 @@ +@ Cloud Top Windtribespeople woman on first floor +SCRIPT_START script_WindTribespeople2 + BeginBlock + Call sub_0806C870 + DoPostScriptAction 0x000a + CheckGlobalFlag 0x0058 + JumpIfNot script_080149C6 + EndBlock +script_080149AA: + FacePlayerAndCheckDist + JumpIfNot script_080149AA + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_080149AA +script_080149C6: + DoPostScriptAction 0x0006 +SCRIPT_END diff --git a/data/scripts/cloudTops/script_WindTribespeople3.inc b/data/scripts/cloudTops/script_WindTribespeople3.inc new file mode 100644 index 00000000..84c60935 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople3.inc @@ -0,0 +1,30 @@ +@ Cloud Tops Windtribespeople blocking the way up to the palace +SCRIPT_START script_WindTribespeople3 + BeginBlock + SetEntitySpeed 0x0080 + Call sub_0806C870 + DoPostScriptAction 0x000a + EndBlock +script_080149DE: + FacePlayerAndCheckDist + JumpIfNot script_080149DE + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + CheckLocalFlag 0x0064 + JumpIfNot script_08014A20 + CheckLocalFlag 0x00b1 + JumpIf script_08014A20 + SetLocalFlag 0x00b1 + DoPostScriptAction 0x000b + DoPostScriptAction 0x0001 + _0807EDD4 0x0068, 0x00f8 + PlaySound SFX_SECRET + FacePlayer + DoPostScriptAction 0x0000 + DoPostScriptAction 0x000a +script_08014A20: + EnablePlayerControl + Jump script_080149DE + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeople4.inc b/data/scripts/cloudTops/script_WindTribespeople4.inc new file mode 100644 index 00000000..ba6fb854 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople4.inc @@ -0,0 +1,17 @@ +@ Cloud Tops Windtribespeople blocking way up +SCRIPT_START script_WindTribespeople4 + BeginBlock + Call sub_0806C870 + DoPostScriptAction 0x000a + EndBlock +script_08014A36: + FacePlayerAndCheckDist + JumpIfNot script_08014A36 + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_08014A36 + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeople5.inc b/data/scripts/cloudTops/script_WindTribespeople5.inc new file mode 100644 index 00000000..698f9bb2 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople5.inc @@ -0,0 +1,17 @@ +@ Cloud Tops Windtribespeople at the bed +SCRIPT_START script_WindTribespeople5 + BeginBlock + Call sub_0806C870 + DoPostScriptAction 0x000a + EndBlock +script_08014A62: + FacePlayerAndCheckDist + JumpIfNot script_08014A62 + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + Wait 0x000f + EnablePlayerControl + Jump script_08014A62 + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeople6.inc b/data/scripts/cloudTops/script_WindTribespeople6.inc new file mode 100644 index 00000000..0633f743 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople6.inc @@ -0,0 +1,23 @@ +@ Cloud Tops Windtribespeople sucked up ghost +SCRIPT_START script_WindTribespeople6 + BeginBlock + DoPostScriptAction 0x000a + EndBlock + WaitForSyncFlagAndClear 0x00000001 + FacePlayer + DoPostScriptAction 0x0004 + SetSyncFlag 0x00000002 + WaitForSyncFlagAndClear 0x00000001 + MessageNoOverlap 0x2f0a + WaitUntilTextboxCloses + SetSyncFlag 0x00000002 +script_08014AAC: + FacePlayerAndCheckDist + JumpIfNot script_08014AAC + SetPlayerIdle + FacePlayer + MessageNoOverlap 0x2f0a + WaitUntilTextboxCloses + EnablePlayerControl + Jump script_08014AAC + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeople7.inc b/data/scripts/cloudTops/script_WindTribespeople7.inc new file mode 100644 index 00000000..72962d45 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeople7.inc @@ -0,0 +1,27 @@ +@ Cloud Tops Windtribespeople +SCRIPT_START script_WindTribespeople7 + BeginBlock + CheckGlobalFlag 0x0024 + JumpIf script_08014CD4 + Call sub_0806C870 + DoPostScriptAction 0x000a + DoPostScriptAction 0x0000 + EndBlock +script_08014CAE: + EndBlock + BeginBlock + CheckGlobalFlag 0x0024 + JumpIf script_08014CD4 + FacePlayerAndCheckDist + JumpIfNot script_08014CAE + EndBlock + SetPlayerIdle + FacePlayer + Call sub_0806C90C + WaitUntilTextboxCloses + EnablePlayerControl + Jump script_08014CAE +script_08014CD4: + DoPostScriptAction 0x0006 +SCRIPT_END + .2byte 0x0000 diff --git a/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed1.inc b/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed1.inc new file mode 100644 index 00000000..c5d77432 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed1.inc @@ -0,0 +1,26 @@ +@ Cloud Tops WindTribespeople great whirlwind revealed 2 +SCRIPT_START script_WindTribespeopleGreatWhirlwindRevealed1 + BeginBlock + Call SetPriorityHighest + DoPostScriptAction 0x000b + SetEntitySpeed 0x0200 + SetAnimationState 0x0004 + DoPostScriptAction 0x0000 + EndBlock + WaitForSyncFlagAndClear 0x00000008 + DoPostScriptAction 0x0004 + Wait 0x003c + PlaySound SFX_123 + CallWithArg sub_0807F464, 0x000001e0 + _0807EDD4 0x01e0, 0x01d8 + SetAnimationState 0x0002 + DoPostScriptAction 0x0000 + SetSyncFlag 0x00000010 + PlaySound SFX_PLY_JUMP + _0807EF3C 0x0180, 0x0030 + PlaySound SFX_PLY_JUMP + _0807EF3C 0x0180, 0x0030 + SetAnimationState 0x0002 + DoPostScriptAction 0x0001 + WaitForSyncFlagAndClear 0x00000008 + Jump script_0800D80C diff --git a/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed2.inc b/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed2.inc new file mode 100644 index 00000000..1bdc67f5 --- /dev/null +++ b/data/scripts/cloudTops/script_WindTribespeopleGreatWhirlwindRevealed2.inc @@ -0,0 +1,27 @@ +@ Cloud Tops WindTribespeople great whirlwind revealed +SCRIPT_START script_WindTribespeopleGreatWhirlwindRevealed2 + BeginBlock + Call SetPriorityHighest + DoPostScriptAction 0x000b + SetEntityPositionRelative 0x0268, 0x01d8 + SetEntitySpeed 0x0100 + EndBlock + WaitForSyncFlagAndClear 0x00000002 + _0807EDD4 0x01f0, 0x01d8 + SetSyncFlag 0x00000004 + WaitForSyncFlagAndClear 0x00000002 +script_0800D80C: + SetEntitySpeed 0x0100 + _0807EEF4 0x0000, 0xffe0 + DoPostScriptAction 0x000e + Call sub_0806CA5C + SetEntityVelocity 0x00040000 + PlaySound SFX_F5 +script_0800D82A: + CallWithArg DoGravity, 0xffffe000 + Call CheckEntityOnScreen + JumpIf script_0800D82A + SetSyncFlag 0x00000004 + DoPostScriptAction 0x0006 +SCRIPT_END + .2byte 0x0000 |
