mirror of
https://github.com/zeldaret/tmc
synced 2026-08-09 02:48:23 -04:00
label script functions
This commit is contained in:
@@ -3,17 +3,17 @@ SCRIPT_START script_CrenelHermit
|
||||
BeginBlock
|
||||
Call sub_08061E70
|
||||
DoPostScriptAction 0x000a
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
Call sub_08061FD8
|
||||
EndBlock
|
||||
script_0800B8FC:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_0800B8FC
|
||||
_0807E864
|
||||
_0807EB74
|
||||
SetPlayerIdle
|
||||
FacePlayer
|
||||
Call sub_08061FD8
|
||||
Call sub_08062048
|
||||
WaitUntilTextboxCloses
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800B8FC
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
@ Mountain Ezlo text after beating CoF
|
||||
SCRIPT_START script_EzloTalkCoF
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_0807DF28
|
||||
_0807EB28 0x1c02
|
||||
EzloMessage 0x1c02
|
||||
WaitUntilTextboxCloses
|
||||
SetLocalFlagByBank 0x0100, 0x0002
|
||||
Call sub_0807DF50
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,9 +6,9 @@ script_0800B734:
|
||||
Call sub_0808747C
|
||||
JumpIfNot script_0800B734
|
||||
Call sub_08079184
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Wait 0x000a
|
||||
Call sub_0807F9A4
|
||||
Call WaitForPlayerNormal
|
||||
StartPlayerScript script_PlayerAtGreatFairy
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
SetRoomFlag 0x0000
|
||||
@@ -17,7 +17,7 @@ script_0800B734:
|
||||
JumpIf script_0800B7A2
|
||||
MessageNoOverlap 0x0580
|
||||
WaitUntilTextboxCloses
|
||||
CallWithArg sub_0807F970, 0x00000582
|
||||
CallWithArg CheckMessageEqual, 0x00000582
|
||||
JumpIf script_0800B794
|
||||
CallWithArg sub_08087424, 0x00000001
|
||||
Wait 0x00b4
|
||||
@@ -30,7 +30,7 @@ script_0800B794:
|
||||
script_0800B7A2:
|
||||
MessageNoOverlap 0x0590
|
||||
WaitUntilTextboxCloses
|
||||
_0807E778 0x0010
|
||||
SetFadeTime 0x0010
|
||||
DoFade7
|
||||
WaitForFadeFinish
|
||||
ModHealth 0x00a0
|
||||
|
||||
@@ -3,14 +3,14 @@ SCRIPT_START script_Melari
|
||||
BeginBlock
|
||||
_0807E9D4
|
||||
DoPostScriptAction 0x000a
|
||||
_0807EB44 0x0004
|
||||
_0807E930 0x0000
|
||||
SetAnimationState 0x0004
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
CheckInventory1 0x0041
|
||||
JumpIf script_0800CFD2
|
||||
CheckLocalFlag 0x007e
|
||||
JumpIfNot script_0800CFD2
|
||||
_0807E930 0x0008
|
||||
SetAnimation 0x0008
|
||||
script_0800CFD2:
|
||||
CheckInventory1 0x0002
|
||||
JumpIf script_0800CFFA
|
||||
@@ -29,11 +29,11 @@ script_0800CFFA:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_0800CFFA
|
||||
EndBlock
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_0807DF28
|
||||
CheckInventory1 0x0002
|
||||
JumpIfNot script_0800D032
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
MessageNoOverlap 0x1219
|
||||
@@ -43,14 +43,14 @@ script_0800D032:
|
||||
JumpIfNot script_0800D098
|
||||
StartPlayerScript script_PlayerAtMelari
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
MessageFromTargetPos 0x125c, 0x0002
|
||||
WaitUntilTextboxCloses
|
||||
StartPlayerScript script_PlayerPlaceBrokenSword
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
Wait 0x000f
|
||||
@@ -71,14 +71,14 @@ script_0800D0A8:
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
SetSyncFlag 0x00000001
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807EB74
|
||||
FacePlayer
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
MessageFromTargetPos 0x123d, 0x0002
|
||||
WaitUntilTextboxCloses
|
||||
StartPlayerScript script_PlayerPlaceBrokenSword
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
PlaySound SFX_TASK_COMPLETE
|
||||
@@ -92,7 +92,7 @@ script_0800D108:
|
||||
MessageFromTargetPos 0x123e, 0x0002
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E930 0x0009
|
||||
SetAnimation 0x0009
|
||||
SetSyncFlag 0x00000002
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
SetSyncFlag 0x00000002
|
||||
@@ -104,14 +104,14 @@ script_0800D108:
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
SetSyncFlag 0x00000001
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
_0807E930 0x0008
|
||||
SetAnimation 0x0008
|
||||
Wait 0x003c
|
||||
Call sub_08095164
|
||||
_0807EB28 0x1240
|
||||
EzloMessage 0x1240
|
||||
script_0800D17C:
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Call sub_0807DF50
|
||||
Jump script_0800CFFA
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -3,8 +3,8 @@ SCRIPT_START script_MelariInRoom
|
||||
BeginBlock
|
||||
Call sub_08068884
|
||||
DoPostScriptAction 0x000a
|
||||
_0807EB44 0x0004
|
||||
_0807E930 0x0000
|
||||
SetAnimationState 0x0004
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
script_0800D31E:
|
||||
EndBlock
|
||||
@@ -13,12 +13,12 @@ script_0800D31E:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_0800D31E
|
||||
EndBlock
|
||||
_0807E864
|
||||
_0807EB74
|
||||
SetPlayerIdle
|
||||
FacePlayer
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806C028
|
||||
MessageFromTarget 0x1219
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800D31E
|
||||
|
||||
@@ -13,9 +13,9 @@ script_0800CF5E:
|
||||
Jump script_0800CF5E
|
||||
script_0800CF72:
|
||||
EndBlock
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_08068190
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800CF5E
|
||||
|
||||
@@ -5,10 +5,10 @@ SCRIPT_START script_MountainMinish2
|
||||
DoPostScriptAction 0x000a
|
||||
EndBlock
|
||||
script_0800CF96:
|
||||
_0807E944
|
||||
_0807E864
|
||||
TriggerInteract
|
||||
SetPlayerIdle
|
||||
Call sub_08068190
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800CF96
|
||||
|
||||
@@ -20,28 +20,28 @@ script_0800D292:
|
||||
Jump script_0800D282
|
||||
script_0800D2B0:
|
||||
EndBlock
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_08068190
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800D282
|
||||
script_0800D2C6:
|
||||
EndBlock
|
||||
SetSyncFlag 0x00000004
|
||||
WaitForSyncFlagAndClear 0x00000002
|
||||
SetSyncFlag 0x00000004
|
||||
_0807E930 0x000c
|
||||
SetAnimation 0x000c
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
SetSyncFlag 0x00000004
|
||||
script_0800D2EA:
|
||||
_0807E930 0x000b
|
||||
SetAnimation 0x000b
|
||||
script_0800D2EE:
|
||||
CheckEntityInteractType
|
||||
JumpIfNot script_0800D2EE
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_08068190
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800D2EE
|
||||
|
||||
@@ -13,7 +13,7 @@ script_0800D35E:
|
||||
Jump script_0800D35E
|
||||
script_0800D372:
|
||||
EndBlock
|
||||
_0807E864
|
||||
SetPlayerIdle
|
||||
Call sub_08068190
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
@@ -28,11 +28,11 @@ script_0800D372:
|
||||
StartPlayerScript script_PlayerAtMountainMinishExit
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
script_0800D3B2:
|
||||
_0807EB44 0x0002
|
||||
_0807E930 0x0005
|
||||
SetAnimationState 0x0002
|
||||
SetAnimation 0x0005
|
||||
_0807EDD4 0x00a0, 0x0130
|
||||
_0807EB44 0x0006
|
||||
_0807E930 0x0003
|
||||
SetAnimationState 0x0006
|
||||
SetAnimation 0x0003
|
||||
SetIntVariable 0x00000004
|
||||
Call sub_080681D8
|
||||
PlaySound SFX_TASK_COMPLETE
|
||||
@@ -40,6 +40,6 @@ script_0800D3B2:
|
||||
DoPostScriptAction 0x000a
|
||||
SetLocalFlag 0x007f
|
||||
script_0800D3E4:
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800D35E
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,35 +6,35 @@ SCRIPT_START script_MountainMinish5
|
||||
DoPostScriptAction 0x000a
|
||||
EndBlock
|
||||
script_0800D426:
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
SetIntVariable 0x00000004
|
||||
Call sub_0806AF60
|
||||
_0807EDD4 0x00a8, 0x01e8
|
||||
_0807EB44 0x0006
|
||||
SetAnimationState 0x0006
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetIntVariable 0x00000000
|
||||
Call sub_0806AF60
|
||||
Wait 0x0014
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
SetIntVariable 0x00000004
|
||||
Call sub_0806AF60
|
||||
_0807EDD4 0x0228, 0x01e8
|
||||
@@ -43,13 +43,13 @@ script_0800D426:
|
||||
BeginBlock
|
||||
DoPostScriptAction 0x000a
|
||||
Call sub_08062A48
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
script_0800D4E4:
|
||||
EndBlock
|
||||
Call sub_08062698
|
||||
Call sub_080626AC
|
||||
CallWithArg sub_0807F0EC, 0x00000009
|
||||
CallWithArg GetRandomInt, 0x00000009
|
||||
JumpTable script_0800D510, script_0800D51A, script_0800D524, script_0800D52E, script_0800D538, script_0800D542, script_0800D54C, script_0800D556, script_0800D560
|
||||
script_0800D510:
|
||||
_0807EE04 0x0038, 0x0068
|
||||
@@ -89,10 +89,10 @@ script_0800D566:
|
||||
Jump script_0800D4E4
|
||||
script_0800D584:
|
||||
EndBlock
|
||||
_0807E864
|
||||
_0807EB74
|
||||
SetPlayerIdle
|
||||
FacePlayer
|
||||
Call sub_0806265C
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000f
|
||||
_0807E878
|
||||
EnablePlayerControl
|
||||
Jump script_0800D4E4
|
||||
|
||||
@@ -13,7 +13,7 @@ SCRIPT_START script_Object6ABrokenSword
|
||||
SCRIPT_END
|
||||
script_0800D242:
|
||||
DoPostScriptAction 0x0007
|
||||
_0807E930 0x0003
|
||||
SetAnimation 0x0003
|
||||
SCRIPT_END
|
||||
script_0800D24C:
|
||||
DoPostScriptAction 0x0006
|
||||
|
||||
@@ -4,7 +4,7 @@ SCRIPT_START script_PlayerAtMelari
|
||||
SetEntitySpeed 0x0100
|
||||
EndBlock
|
||||
_0807EDD4 0x0170, 0x0140
|
||||
_0807EB44 0x0002
|
||||
SetAnimationState 0x0002
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000008
|
||||
Call sub_080791BC
|
||||
|
||||
@@ -3,10 +3,10 @@ SCRIPT_START script_PlayerAtMountainMinishExit
|
||||
BeginBlock
|
||||
SetEntitySpeed 0x0080
|
||||
EndBlock
|
||||
_0807EB44 0x0000
|
||||
SetAnimationState 0x0000
|
||||
DoPostScriptAction 0x0000
|
||||
DoPostScriptAction 0x000d
|
||||
_0807ECC4 0x0020
|
||||
WalkSouth 0x0020
|
||||
SetSyncFlag 0x00000001
|
||||
Call sub_080791BC
|
||||
SCRIPT_END
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@ Mines Player get white sword
|
||||
SCRIPT_START script_PlayerGetWhiteSword
|
||||
_0807F078 0x0002, 0x0001
|
||||
CallWithArg sub_0807F918, 0x00000002
|
||||
CallWithArg PutItemAnySlot, 0x00000002
|
||||
PlaySound SFX_109
|
||||
CallWithArg sub_0807F238, 0x000001e2
|
||||
Call sub_0807F304
|
||||
CallWithArg SetPlayerAnimation2, 0x000001e2
|
||||
Call WaitForPlayerFrameHiBit
|
||||
MessageNoOverlap 0x0502
|
||||
WaitUntilTextboxCloses
|
||||
SetSyncFlag 0x00000008
|
||||
|
||||
@@ -5,7 +5,7 @@ SCRIPT_START script_PlayerPlaceBrokenSword
|
||||
EndBlock
|
||||
_0807EDD4 0x0170, 0x0120
|
||||
_0807EDD4 0x01a8, 0x0120
|
||||
_0807EB44 0x0004
|
||||
SetAnimationState 0x0004
|
||||
DoPostScriptAction 0x0000
|
||||
SetSyncFlag 0x00000008
|
||||
Call sub_080791BC
|
||||
|
||||
Reference in New Issue
Block a user