mirror of
https://github.com/zeldaret/tmc
synced 2026-09-01 09:52:51 -04:00
label script functions
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
@ Intro Assembly Guard
|
||||
SCRIPT_START script_GuardAtAssembly
|
||||
BeginBlock
|
||||
_0807EB44 0x0000
|
||||
_0807E930 0x0000
|
||||
SetAnimationState 0x0000
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlag 0x00000010
|
||||
PlaySound SFX_11C
|
||||
_0807E930 0x0001
|
||||
SetAnimation 0x0001
|
||||
Wait 0x0010
|
||||
PlaySound SFX_11C
|
||||
_0807EB44 0x0004
|
||||
_0807E930 0x0006
|
||||
SetAnimationState 0x0004
|
||||
SetAnimation 0x0006
|
||||
Wait 0x0010
|
||||
DoPostScriptAction 0x000f
|
||||
SetEntitySpeed 0x0200
|
||||
_0807ECC4 0x1c20
|
||||
WalkSouth 0x1c20
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
|
||||
@@ -1,57 +1,57 @@
|
||||
@ Intro Assembly King Daltus
|
||||
SCRIPT_START script_KingDaltusAtAssembly
|
||||
BeginBlock
|
||||
Call sub_0807F348
|
||||
Call SetPriorityMessage
|
||||
SetEntitySpeed 0x0100
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
_0807E9D4
|
||||
DoPostScriptAction 0x000a
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807EB44 0x0004
|
||||
_0807ECC4 0x0008
|
||||
_0807E930 0x0004
|
||||
SetAnimationState 0x0004
|
||||
WalkSouth 0x0008
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x1050, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807E930 0x0004
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x1052, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807EB44 0x0006
|
||||
_0807E930 0x0005
|
||||
SetAnimationState 0x0006
|
||||
SetAnimation 0x0005
|
||||
MessageFromTargetPos 0x1054, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807E930 0x0004
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x1056, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807E930 0x0004
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x1057, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807E930 0x0004
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x1058, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000080
|
||||
_0807E930 0x0004
|
||||
SetAnimation 0x0004
|
||||
MessageFromTargetPos 0x105c, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
@@ -59,10 +59,10 @@ SCRIPT_START script_KingDaltusAtAssembly
|
||||
script_0800917C:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_0800917C
|
||||
_0807E864
|
||||
_0807EB74
|
||||
SetPlayerIdle
|
||||
FacePlayer
|
||||
Call sub_0806673C
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800917C
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
@ Intro Assembly Minister Potho
|
||||
SCRIPT_START script_MinisterPothoAtAssembly
|
||||
BeginBlock
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
PlaySound SFX_PLY_JUMP
|
||||
_0807EF3C 0x0180, 0x0030
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetSyncFlag 0x00000008
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
SetSyncFlag 0x00000008
|
||||
BeginBlock
|
||||
_0807E9D4
|
||||
|
||||
@@ -6,12 +6,12 @@ SCRIPT_START script_Npc4EIntroAssembly
|
||||
script_08008E12:
|
||||
CheckPlayerInRegion 0x00d8, 0x0098, 0x4020
|
||||
JumpIfNot script_08008E12
|
||||
_0807E864
|
||||
Call sub_0807F9A4
|
||||
SetPlayerIdle
|
||||
Call WaitForPlayerNormal
|
||||
Call sub_0807DF28
|
||||
_0807F0B4 0x0001
|
||||
CameraTargetEntity
|
||||
WaitForPlayerAction0x17
|
||||
WaitForPlayerEnterRoom
|
||||
Wait 0x003c
|
||||
StartPlayerScript script_PlayerEnters
|
||||
WaitForSyncFlagAndClear 0x00000020
|
||||
@@ -62,7 +62,7 @@ script_08008E12:
|
||||
GivePlayerItem 0x0047
|
||||
WaitPlayerGetItem
|
||||
SetIntVariable 0x00000003
|
||||
Call sub_0807F420
|
||||
Call LoadMenu
|
||||
_0807E8E4_0
|
||||
SetSyncFlag 0x00000080
|
||||
WaitForSyncFlagAndClear 0x00000100
|
||||
@@ -71,7 +71,7 @@ script_08008E12:
|
||||
SetGlobalFlag 0x0015
|
||||
Call sub_0806DCC0
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -5,13 +5,13 @@ SCRIPT_START script_PlayerEnters
|
||||
EndBlock
|
||||
DoPostScriptAction 0x0001
|
||||
_0807EDD4 0x00b8, 0x0090
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000020
|
||||
WaitForSyncFlagAndClear 0x00000040
|
||||
DoPostScriptAction 0x0001
|
||||
_0807EDD4 0x0088, 0x0078
|
||||
_0807EB44 0x0000
|
||||
SetAnimationState 0x0000
|
||||
DoPostScriptAction 0x0000
|
||||
Wait 0x000f
|
||||
SetSyncFlag 0x00000020
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@ Intro Assembly Player gets Sword
|
||||
SCRIPT_START script_PlayerGetSword
|
||||
_0807F078 0x0001, 0x0001
|
||||
CallWithArg sub_0807F918, 0x00000001
|
||||
CallWithArg PutItemAnySlot, 0x00000001
|
||||
PlaySound SFX_109
|
||||
CallWithArg sub_0807F238, 0x0000045f
|
||||
Call sub_0807F304
|
||||
CallWithArg SetPlayerAnimation2, 0x0000045f
|
||||
Call WaitForPlayerFrameHiBit
|
||||
MessageFromTargetPos 0x0501, 0x000e
|
||||
WaitUntilTextboxCloses
|
||||
SetSyncFlag 0x00000020
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
SCRIPT_START script_PlayerWakingUpInHyruleCastle
|
||||
BeginBlock
|
||||
Call sub_0807DF28
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
.ifdef JP
|
||||
SetLocalFlag 0x009e
|
||||
.else
|
||||
@@ -18,16 +18,16 @@ SCRIPT_START script_PlayerWakingUpInHyruleCastle
|
||||
.endif
|
||||
EndBlock
|
||||
Wait 0x003c
|
||||
_0807E778 0x0004
|
||||
SetFadeTime 0x0004
|
||||
DoFade4
|
||||
WaitForFadeFinish
|
||||
script_08009EA4:
|
||||
Call sub_0807F0D8
|
||||
Call CheckAnyKeyPressed
|
||||
JumpIfNot script_08009EA4
|
||||
DoPostScriptAction 0x0014
|
||||
Wait 0x000a
|
||||
Call sub_08053250
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Call sub_0807DF50
|
||||
Call sub_080791D0
|
||||
SCRIPT_END
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
@ Intro Assembly Smith
|
||||
SCRIPT_START script_SmithAtAssembly
|
||||
BeginBlock
|
||||
Call sub_0807F348
|
||||
_0807EB44 0x0006
|
||||
Call SetPriorityMessage
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTargetPos 0x105b, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000002
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000002
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
@@ -27,21 +27,21 @@ SCRIPT_START script_SmithAtAssembly
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
DoPostScriptAction 0x0004
|
||||
Wait 0x003c
|
||||
_0807EB74
|
||||
_0807EB8C
|
||||
FacePlayer
|
||||
FaceAwayFromPlayer
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTargetPos 0x1055, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000002
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
SetSyncFlag 0x00000002
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
SetEntitySpeed 0x0080
|
||||
DoPostScriptAction 0x0001
|
||||
_0807EDD4 0x0098, 0x0078
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
DoPostScriptAction 0x0000
|
||||
DoPostScriptAction 0x0001
|
||||
MessageFromTargetPos 0x1059, 0x0000
|
||||
|
||||
Reference in New Issue
Block a user