mirror of
https://github.com/zeldaret/tmc
synced 2026-09-09 04:00:00 -04:00
label script functions
This commit is contained in:
@@ -11,7 +11,7 @@ SCRIPT_START script_HouseDoorIntro
|
||||
PlaySound SFX_F1
|
||||
DoPostScriptAction 0x0007
|
||||
Wait 0x005a
|
||||
_0807E778 0x0004
|
||||
SetFadeTime 0x0004
|
||||
@ Circle transition
|
||||
_0807E80C 0x00000000
|
||||
WaitForFadeFinish @ Wait for end of transition
|
||||
|
||||
@@ -5,7 +5,7 @@ SCRIPT_START script_IntroCameraTarget
|
||||
SetEntitySpeed 0x0080
|
||||
Wait 0x0078
|
||||
PlayBgm BGM_MINISH_CAP
|
||||
_0807E778 0x0002
|
||||
SetFadeTime 0x0002
|
||||
@ Fade in
|
||||
DoFade4
|
||||
WaitForFadeFinish @ TODO wait for fade to be finished
|
||||
|
||||
@@ -3,11 +3,11 @@ SCRIPT_START script_Npc4EOutsideLinksHouse
|
||||
BeginBlock
|
||||
SetEntityPositionRelative 0x0238, 0x01a8
|
||||
Call sub_0807F844
|
||||
Call sub_0807F348
|
||||
_0807E864
|
||||
Call SetPriorityMessage
|
||||
SetPlayerIdle
|
||||
Call sub_0807DF28
|
||||
EndBlock
|
||||
_0807E778 0x0010
|
||||
SetFadeTime 0x0010
|
||||
DoFade6
|
||||
WaitForFadeFinish
|
||||
SetSyncFlag 0x00000001
|
||||
@@ -15,7 +15,7 @@ SCRIPT_START script_Npc4EOutsideLinksHouse
|
||||
_0807F0B4 0x0004
|
||||
CameraTargetPlayer
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
SCRIPT_START script_Object69Intro
|
||||
BeginBlock
|
||||
Call sub_0807DF28
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
SetSyncFlag 0x00000000
|
||||
EndBlock
|
||||
WaitForFadeFinish
|
||||
@@ -11,6 +11,6 @@ SCRIPT_START script_Object69Intro
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
SetGlobalFlag 0x001c
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Call sub_0807921C
|
||||
SCRIPT_END
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
SCRIPT_START script_PlayerIntro
|
||||
BeginBlock
|
||||
Call sub_0807DF28
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
SetLocalFlag 0x0046
|
||||
EndBlock
|
||||
WaitForFadeFinish
|
||||
@@ -18,7 +18,7 @@ SCRIPT_START script_PlayerIntro
|
||||
Wait 0x001e
|
||||
@ Give control to the player?
|
||||
Call sub_08053250
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Call sub_0807DF50
|
||||
Call sub_080791D0
|
||||
SCRIPT_END
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
@ Intro Smith 1
|
||||
SCRIPT_START script_SmithIntro
|
||||
BeginBlock
|
||||
Call sub_0807F348
|
||||
Call SetPriorityMessage
|
||||
SetEntitySpeed 0x0040
|
||||
_0807EB44 0x0004
|
||||
_0807E930 0x000c
|
||||
_0807E908 0x0003
|
||||
SetAnimationState 0x0004
|
||||
SetAnimation 0x000c
|
||||
SetAction 0x0003
|
||||
EndBlock
|
||||
Wait 0x001e
|
||||
CameraTargetEntity
|
||||
_0807E778 0x0004
|
||||
SetFadeTime 0x0004
|
||||
_0807E800 0x00000000
|
||||
WaitForFadeFinish
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
DoPostScriptAction 0x0004
|
||||
Wait 0x001e
|
||||
_0807E930 0x000b
|
||||
SetAnimation 0x000b
|
||||
Wait 0x001e
|
||||
MessageFromTarget 0x1002
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000004
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807E908 0x0001
|
||||
_0807EB44 0x0004
|
||||
SetAction 0x0001
|
||||
SetAnimationState 0x0004
|
||||
_0807EDD4 0x00b8, 0x005c
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTarget 0x1004
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
Wait 0x001e
|
||||
_0807E778 0x0002
|
||||
SetFadeTime 0x0002
|
||||
DoFade5
|
||||
WaitForFadeFinish
|
||||
Call sub_08053634
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
@ Intro Smith 2
|
||||
SCRIPT_START script_SmithIntro2
|
||||
BeginBlock
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
SetEntitySpeed 0x0080
|
||||
_0807E9D4
|
||||
Call sub_0807F348
|
||||
Call SetPriorityMessage
|
||||
EndBlock
|
||||
CheckGlobalFlag 0x0013
|
||||
JumpIf script_08009C4C
|
||||
_0807E888
|
||||
DisablePlayerControl
|
||||
Wait 0x000a
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
StartPlayerScript script_PlayerMoveToSmith
|
||||
Call sub_0807DF28
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807EDD4 0x0080, 0x005c
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x0000
|
||||
Wait 0x000f
|
||||
DoPostScriptAction 0x0001
|
||||
@@ -25,7 +25,7 @@ SCRIPT_START script_SmithIntro2
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000004
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807EB8C
|
||||
FaceAwayFromPlayer
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTargetPos 0x100b, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
@@ -36,7 +36,7 @@ SCRIPT_START script_SmithIntro2
|
||||
Wait 0x000f
|
||||
DoPostScriptAction 0x000d
|
||||
_0807EDD4 0x0084, 0x005c
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x000c
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000002
|
||||
@@ -57,10 +57,10 @@ script_08009C4C:
|
||||
script_08009C50:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_08009C50
|
||||
_0807E864
|
||||
_0807EB74
|
||||
SetPlayerIdle
|
||||
FacePlayer
|
||||
MessageNoOverlap 0x100e
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_08009C50
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@ Intro Zelda at Smith
|
||||
SCRIPT_START script_ZeldaIntro
|
||||
BeginBlock
|
||||
Call sub_0807F348
|
||||
Call SetPriorityMessage
|
||||
SetEntitySpeed 0x00c0
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
DoPostScriptAction 0x0008
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
SCRIPT_START script_ZeldaLeaveLinksHouse
|
||||
BeginBlock
|
||||
SetEntitySpeed 0x0100
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
EndBlock
|
||||
_0807EDD4 0x0078, 0x0060
|
||||
_0807EDD4 0x0078, 0x007c
|
||||
@@ -11,7 +11,7 @@ SCRIPT_START script_ZeldaLeaveLinksHouse
|
||||
Wait 0x0008
|
||||
_0807EDD4 0x0078, 0x0098
|
||||
DoPostScriptAction 0x0008
|
||||
_0807E778 0x0010
|
||||
SetFadeTime 0x0010
|
||||
DoFade5
|
||||
WaitForFadeFinish
|
||||
Call sub_08053634
|
||||
|
||||
@@ -6,12 +6,12 @@ SCRIPT_START script_ZeldaOutsideLinksHouse
|
||||
Call sub_08066D04
|
||||
Call sub_08066D14
|
||||
SetEntityPositionRelative 0x01e8, 0x0180
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
Call sub_08066E08
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
MessageFromTargetPos 0x1010, 0x000c
|
||||
WaitUntilTextboxCloses
|
||||
SetSyncFlag 0x00000002
|
||||
@@ -22,41 +22,41 @@ script_08014D1E:
|
||||
CheckPlayerInRegion 0x01d8, 0x0160, 0x3050
|
||||
JumpIfNot script_08014D1E
|
||||
EndBlock
|
||||
_0807E864
|
||||
Call sub_0807F9A4
|
||||
SetPlayerIdle
|
||||
Call WaitForPlayerNormal
|
||||
Call sub_0807DF28
|
||||
MessageNoOverlap 0x1012
|
||||
WaitUntilTextboxCloses
|
||||
_0807EC64 0x0040
|
||||
_0807EB44 0x0004
|
||||
WalkNorth 0x0040
|
||||
SetAnimationState 0x0004
|
||||
Call sub_08066E08
|
||||
SetEntityPositionRelative 0x01f8, 0x00c8
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
script_08014D60:
|
||||
@ Between trees
|
||||
CallWithArg sub_0807F6B4, 0x000000e8
|
||||
JumpIf script_08014D60
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_0807DF28
|
||||
MessageNoOverlap 0x1013
|
||||
WaitUntilTextboxCloses
|
||||
_0807EC64 0x0040
|
||||
_0807EB44 0x0004
|
||||
WalkNorth 0x0040
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
SetEntityPositionRelative 0x01e8, 0x0028
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
script_08014D96:
|
||||
@ Before hyrule town entry
|
||||
CheckPlayerInRegion 0x01f8, 0x0028, 0x2040
|
||||
JumpIfNot script_08014D96
|
||||
_0807E864
|
||||
Call sub_0807F9A4
|
||||
SetPlayerIdle
|
||||
Call WaitForPlayerNormal
|
||||
Call sub_0807DF28
|
||||
MessageNoOverlap 0x1014
|
||||
WaitUntilTextboxCloses
|
||||
_0807EC64 0x0018
|
||||
WalkNorth 0x0018
|
||||
.ifdef JP
|
||||
SetLocalFlag 0x006b
|
||||
.else
|
||||
@@ -71,6 +71,6 @@ script_08014D96:
|
||||
.endif
|
||||
.endif
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
@ Intro Zelda at Smith 2
|
||||
SCRIPT_START script_ZeldaTalkToSmith
|
||||
BeginBlock
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetEntitySpeed 0x0100
|
||||
Call sub_0807F348
|
||||
Call SetPriorityMessage
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
DoPostScriptAction 0x0004
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807EB74
|
||||
_0807EB8C
|
||||
FacePlayer
|
||||
FaceAwayFromPlayer
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTargetPos 0x100a, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000008
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807EB8C
|
||||
FaceAwayFromPlayer
|
||||
DoPostScriptAction 0x0001
|
||||
_0807EB8C
|
||||
_0807EB44 0x0002
|
||||
FaceAwayFromPlayer
|
||||
SetAnimationState 0x0002
|
||||
MessageFromTargetPos 0x100d, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
@@ -35,7 +35,7 @@ SCRIPT_START script_ZeldaTalkToSmith
|
||||
SetGlobalFlag 0x0013
|
||||
Call sub_0807DF50
|
||||
Call sub_080791D0
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
EndBlock
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
Reference in New Issue
Block a user