mirror of
https://github.com/zeldaret/tmc
synced 2026-07-11 23:30:06 -04:00
Merge playerUtils
Merge all player utils files, split asm into functions and decompile a bunch of functions.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@ Intro Assembly Player gets Sword
|
||||
SCRIPT_START script_PlayerGetSword
|
||||
_0807F078 0x0001, 0x0001
|
||||
SetInventoryValue 0x0001, 0x0001
|
||||
CallWithArg PutItemAnySlot, 0x00000001
|
||||
PlaySound SFX_109
|
||||
CallWithArg SetPlayerAnimation2, 0x0000045f
|
||||
|
||||
@@ -27,7 +27,7 @@ SCRIPT_START script_Npc4EMonsters
|
||||
WaitForFadeFinish
|
||||
CallWithArg DeleteManager36, 0x00000002
|
||||
_0807F0C8 0x0000, 0x0000
|
||||
Call sub_0806DC3C
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call SetPlayerActionNormal
|
||||
CallWithArg EquipItem, 0x0000000d
|
||||
CallWithArg sub_0807F29C, gUnk_080049F6
|
||||
@@ -42,7 +42,7 @@ SCRIPT_START script_Npc4EMonsters
|
||||
SetSyncFlag 0x20000000
|
||||
Wait 0x0078
|
||||
CallWithArg sub_0807F29C, 0x00000000
|
||||
Call sub_0806DC58
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
SetSyncFlag 0x40000000
|
||||
SetSyncFlag 0x00000010
|
||||
SetSyncFlag 0x00000100
|
||||
|
||||
@@ -7,7 +7,7 @@ SCRIPT_START script_Npc4EVaatiAttacking
|
||||
WaitForSyncFlagAndClear 0x00000400
|
||||
MessageFromTargetPos 0x1047, 0x0000
|
||||
WaitUntilTextboxCloses
|
||||
Call sub_0806DC3C
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call SetPlayerActionNormal
|
||||
CallWithArg EquipItem, 0x0000000d
|
||||
CallWithArg sub_0807F29C, gUnk_080049F6
|
||||
@@ -15,7 +15,7 @@ SCRIPT_START script_Npc4EVaatiAttacking
|
||||
SetSyncFlag 0x00000100
|
||||
WaitForSyncFlagAndClear 0x00000200
|
||||
CallWithArg sub_0807F29C, 0x00000000
|
||||
Call sub_0806DC58
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
Wait 0x003c
|
||||
SetSyncFlag 0x08000000
|
||||
PlaySound SFX_125
|
||||
|
||||
@@ -5,7 +5,7 @@ SCRIPT_START script_Npc4EIntroCastle
|
||||
Call sub_0807DF28
|
||||
StartPlayerScript script_PlayerIntroCastle
|
||||
WaitForSyncFlagAndClear 0x00000400
|
||||
_0807F078 0x0034, 0x0002
|
||||
SetInventoryValue 0x0034, 0x0002
|
||||
MessageFromTargetPos 0x1036, 0x000c
|
||||
WaitUntilTextboxCloses
|
||||
SetSyncFlag 0x00000010
|
||||
|
||||
@@ -159,7 +159,7 @@ SCRIPT_START script_Npc4EIntroTown
|
||||
@ Give the shield to the player
|
||||
GivePlayerItem 0x000d
|
||||
WaitPlayerGetItem
|
||||
Call sub_0806DC3C
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call SetPlayerActionNormal
|
||||
CallWithArg EquipItem, 0x0000000d
|
||||
SetIntVariable 0x000000ff
|
||||
@@ -172,7 +172,7 @@ SCRIPT_START script_Npc4EIntroTown
|
||||
WaitUntilTextboxCloses
|
||||
@ Give control back to the player
|
||||
CallWithArg sub_0807F29C, 0x00000000
|
||||
Call sub_0806DC58
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
_0807F0B4 0x0004
|
||||
CameraTargetPlayer
|
||||
Wait 0x000a
|
||||
|
||||
@@ -13,7 +13,7 @@ SCRIPT_START script_DampeInside
|
||||
MessageFromTarget 0x053c
|
||||
WaitPlayerGetItem
|
||||
WaitUntilTextboxCloses
|
||||
_0807F078 0x003c, 0x0001
|
||||
SetInventoryValue 0x003c, 0x0001
|
||||
script_08009622:
|
||||
EnablePlayerControl
|
||||
DoPostScriptAction 0x0000
|
||||
|
||||
@@ -28,7 +28,7 @@ script_08009660:
|
||||
JumpIfNot script_0800968E
|
||||
PlaySound SFX_111
|
||||
PlaySound SFX_SECRET
|
||||
_0807F078 0x003c, 0x0002
|
||||
SetInventoryValue 0x003c, 0x0002
|
||||
Call sub_0806BEFC
|
||||
script_0800968E:
|
||||
EnablePlayerControl
|
||||
|
||||
@@ -17,7 +17,7 @@ SCRIPT_START script_Object69CrowStealingKey
|
||||
WaitForSyncFlagAndClear 0x00000010
|
||||
SetSyncFlag 0x00000020
|
||||
WaitForSyncFlagAndClear 0x00000040
|
||||
_0807F078 0x003c, 0x0000
|
||||
SetInventoryValue 0x003c, 0x0000
|
||||
SetGlobalFlag 0x0020
|
||||
_0807E8E4_3
|
||||
Wait 0x001e
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@ Mines Player get white sword
|
||||
SCRIPT_START script_PlayerGetWhiteSword
|
||||
_0807F078 0x0002, 0x0001
|
||||
SetInventoryValue 0x0002, 0x0001
|
||||
CallWithArg PutItemAnySlot, 0x00000002
|
||||
PlaySound SFX_109
|
||||
CallWithArg SetPlayerAnimation2, 0x000001e2
|
||||
|
||||
@@ -52,9 +52,9 @@ script_080134F8:
|
||||
Wait 0x003c
|
||||
StartPlayerScript script_PlayerPickUpSword
|
||||
SetSyncFlag 0x00000080
|
||||
_0807F078 0x0003, 0x0001
|
||||
Call sub_0806DC3C
|
||||
Call sub_0806DC58
|
||||
SetInventoryValue 0x0003, 0x0001
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
Call WaitForPlayerFrameHiBit
|
||||
Wait 0x003c
|
||||
SetFadeTime 0x0004
|
||||
|
||||
@@ -55,9 +55,9 @@ script_0801373C:
|
||||
Wait 0x003c
|
||||
StartPlayerScript script_PlayerPickUpSword
|
||||
SetSyncFlag 0x00000080
|
||||
_0807F078 0x0004, 0x0001
|
||||
Call sub_0806DC3C
|
||||
Call sub_0806DC58
|
||||
SetInventoryValue 0x0004, 0x0001
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
Call WaitForPlayerFrameHiBit
|
||||
Wait 0x003c
|
||||
SetFadeTime 0x0004
|
||||
|
||||
@@ -59,10 +59,10 @@ script_080138D0:
|
||||
Wait 0x003c
|
||||
StartPlayerScript script_PlayerPickUpFinalSword
|
||||
SetSyncFlag 0x00000080
|
||||
_0807F078 0x0006, 0x0001
|
||||
SetInventoryValue 0x0006, 0x0001
|
||||
Call UpdatePlayerSkills
|
||||
Call sub_0806DC3C
|
||||
Call sub_0806DC58
|
||||
Call NPC4E_SaveEquippedItems
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
Call WaitForPlayerFrameHiBit
|
||||
Wait 0x003c
|
||||
SetFadeTime 0x0004
|
||||
@@ -83,12 +83,12 @@ script_080138D0:
|
||||
SetEntityPositionRelative 0x00e8, 0x00d8
|
||||
CameraTargetEntity
|
||||
.endif
|
||||
Call sub_0806DC3C
|
||||
Call NPC4E_SaveEquippedItems
|
||||
CallWithArg EquipItem, 0x00010001
|
||||
CallWithArg sub_0807F29C, gUnk_080049FE
|
||||
Wait 0x00c8
|
||||
CallWithArg sub_0807F29C, 0x00000000
|
||||
Call sub_0806DC58
|
||||
Call NPC4E_RestoreEquippedItems
|
||||
script_08013A8E:
|
||||
.ifndef EU
|
||||
CheckRoomFlag 0x0004
|
||||
|
||||
@@ -71,7 +71,7 @@ SCRIPT_START script_08016482
|
||||
GiveKinstone 0x0001
|
||||
GivePlayerItem 0x0001
|
||||
GetInventoryValue 0x0001
|
||||
_0807F078 0x0001, 0x0002
|
||||
SetInventoryValue 0x0001, 0x0002
|
||||
_0807F088 0x0001
|
||||
CameraTargetEntity
|
||||
CameraTargetPlayer
|
||||
|
||||
@@ -21,8 +21,8 @@ SCRIPT_START script_BigGoronMirrorShield
|
||||
.endif
|
||||
Call sub_0806D620
|
||||
Wait 0x003c
|
||||
WaitPlayerGetItem
|
||||
FaceAwayFromPlayer
|
||||
WaitPlayerGetItem
|
||||
FaceAwayFromPlayer
|
||||
MessageNoOverlap 0x1d0c
|
||||
WaitUntilTextboxCloses
|
||||
Wait 0x000a
|
||||
|
||||
Reference in New Issue
Block a user