Identify player functions and update asm.h

This commit is contained in:
theo3
2021-12-28 12:08:30 -08:00
parent 9456e38606
commit 0f65f8fd50
442 changed files with 697 additions and 1092 deletions
@@ -74,7 +74,7 @@ script_08012824:
SetPlayerIdle
_0807E9DC
CallWithArg sub_0807F5B0, 0x0000003c
Call sub_080791D0
Call ResetPlayerAnimationAndAction
EndBlock
SetSyncFlag 0x00000008
WaitForSyncFlagAndClear 0x00000004
@@ -18,7 +18,7 @@ script_0801248A:
_0807E80C 0x00000000
WaitForFadeFinish
_0807E858 0x0000
Call sub_080791BC
Call SetPlayerActionNormal
LoadRoomEntityList gUnk_080F4D70
Call DeleteAllEnemies
SetEntityPositionRelative 0x0388, 0x0168
@@ -8,5 +8,5 @@ SCRIPT_START script_PlayerDefeatedOctoroks
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -8,6 +8,6 @@ SCRIPT_START script_PlayerEzloBeingBullied
DoPostScriptAction 0x0004
Wait 0x003c
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -1,5 +1,5 @@
@ Get Ezlo cap Player
SCRIPT_START script_PlayerGetEzloCap
DoPostScriptAction 0x0015
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -20,5 +20,5 @@ SCRIPT_START script_PlayerIntro
Call sub_08053250
EnablePlayerControl
Call sub_0807DF50
Call sub_080791D0
Call ResetPlayerAnimationAndAction
SCRIPT_END
@@ -34,7 +34,7 @@ SCRIPT_START script_ZeldaTalkToSmith
BeginBlock
SetGlobalFlag 0x0013
Call sub_0807DF50
Call sub_080791D0
Call ResetPlayerAnimationAndAction
EnablePlayerControl
EndBlock
SCRIPT_END
@@ -15,6 +15,6 @@ SCRIPT_START script_PlayerEnters
DoPostScriptAction 0x0000
Wait 0x000f
SetSyncFlag 0x00000020
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -8,6 +8,6 @@ SCRIPT_START script_PlayerGetSword
MessageFromTargetPos 0x0501, 0x000e
WaitUntilTextboxCloses
SetSyncFlag 0x00000020
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -29,5 +29,5 @@ script_08009EA4:
Call sub_08053250
EnablePlayerControl
Call sub_0807DF50
Call sub_080791D0
Call ResetPlayerAnimationAndAction
SCRIPT_END
@@ -6,6 +6,6 @@ SCRIPT_START script_PlayerAtIntroBusinessScrub4
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000004
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -5,5 +5,5 @@ SCRIPT_START script_PlayerIntroBusinessScrub1
SetAnimationState 0x0002
DoPostScriptAction 0x0000
SetSyncFlag 0x00000010
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -5,5 +5,5 @@ SCRIPT_START script_PlayerIntroBusinessScrub2
SetAnimationState 0x0002
DoPostScriptAction 0x0000
SetSyncFlag 0x00000010
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -5,5 +5,5 @@ SCRIPT_START script_PlayerIntroBusinessScrub3
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000010
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -28,7 +28,7 @@ SCRIPT_START script_Npc4EMonsters
CallWithArg DeleteManager36, 0x00000002
_0807F0C8 0x0000, 0x0000
Call sub_0806DC3C
Call sub_080791BC
Call SetPlayerActionNormal
CallWithArg EquipItem, 0x0000000d
CallWithArg sub_0807F29C, gUnk_080049F6
_0807F0B4 0x0001
@@ -8,7 +8,7 @@ SCRIPT_START script_Npc4EVaatiAttacking
MessageFromTargetPos 0x1047, 0x0000
WaitUntilTextboxCloses
Call sub_0806DC3C
Call sub_080791BC
Call SetPlayerActionNormal
CallWithArg EquipItem, 0x0000000d
CallWithArg sub_0807F29C, gUnk_080049F6
Wait 0x001e
@@ -6,5 +6,5 @@ SCRIPT_START script_PlayerAtIntroCeremony
SetSyncFlag 0x00000400
ClearSyncFlag 0x00000002
EndBlock
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -13,5 +13,5 @@ SCRIPT_START script_PlayerFainting
EndBlock
Call WaitForFrameHiBit
WaitForSyncFlag 0x80000000
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerIntroCastle
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -9,5 +9,5 @@ SCRIPT_START script_PlayerProtectingZelda
SetAnimationState 0x0004
DoPostScriptAction 0x0000
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -160,7 +160,7 @@ SCRIPT_START script_Npc4EIntroTown
GivePlayerItem 0x000d
WaitPlayerGetItem
Call sub_0806DC3C
Call sub_080791BC
Call SetPlayerActionNormal
CallWithArg EquipItem, 0x0000000d
SetIntVariable 0x000000ff
Call sub_0807F5B0
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerIntro1
SetAnimationState 0x0006
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerIntro2
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerIntro3
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerIntro4
SetAnimationState 0x0002
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -14,5 +14,5 @@ script_0800FB10:
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -5,6 +5,6 @@ SCRIPT_START script_PlayerIntroTown
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000008
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -12,5 +12,5 @@ SCRIPT_START script_PlayerAtFirstKinstone
SetAnimationState 0x0006
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -3,6 +3,6 @@ SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone1
SetEntitySpeed 0x0100
WalkEast 0x0008
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -3,6 +3,6 @@ SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone2
SetEntitySpeed 0x0100
WalkWest 0x0008
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -3,6 +3,6 @@ SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone3
SetEntitySpeed 0x0100
WalkSouth 0x0008
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -3,6 +3,6 @@ SCRIPT_START script_PlayerAtHurdyGurdyManFirstKinstone4
SetEntitySpeed 0x0100
WalkNorth 0x0008
SetSyncFlag 0x00000400
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -9,6 +9,6 @@ SCRIPT_START script_PlayerAtVillageIntro
_0807EDD4 0x0208, 0x0340
DoPostScriptAction 0x0000
SetSyncFlag 0x00000002
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -8,5 +8,5 @@ SCRIPT_START script_PlayerAtVaatisAppearance
SetAnimationState 0x0004
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -8,5 +8,5 @@ SCRIPT_START script_PlayerDefeatedMoblins
SetAnimationState 0x0004
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -1,5 +1,5 @@
@ Player Outside Castle after Ezlo explanation after ezlo cutscene
SCRIPT_START script_PlayerReceivedExposition
DoPostScriptAction 0x0015
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerSeenOriginStory
SetAnimationState 0x0006
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -10,6 +10,6 @@ SCRIPT_START script_PlayerStoneWallsAppear
Wait 0x000a
SetAnimationState 0x0004
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -8,5 +8,5 @@ SCRIPT_START script_PlayerTryToFollowVaati
SetAnimationState 0x0004
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -7,5 +7,5 @@ SCRIPT_START script_PlayerAtEzlo
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
.2byte 0x0000
@@ -10,5 +10,5 @@ SCRIPT_START script_PlayerAtOutro
SetAnimationState 0x0006
Wait 0x000a
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
.2byte 0x0000
@@ -22,5 +22,5 @@ SCRIPT_START script_PlayerGetGreenCap
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
.2byte 0x0000
@@ -7,4 +7,4 @@ SCRIPT_START script_PlayerSayGoodbye
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000001
Call sub_080791BC
Call SetPlayerActionNormal
@@ -8,5 +8,5 @@ SCRIPT_START script_PlayerAtPicture
SetAnimationState 0x0000
DoPostScriptAction 0x0000
SetSyncFlag 0x00000002
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
@@ -9,6 +9,6 @@ SCRIPT_START script_PlayerDistanceFromVaati
DoPostScriptAction 0x0000
DoPostScriptAction 0x000c
SetSyncFlag 0x00000002
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -12,6 +12,6 @@ SCRIPT_START script_PlayerFaintAgain
_0807EF3C 0x0200, 0x0020
DoPostScriptAction 0x0000
SetSyncFlag 0x00000002
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -7,6 +7,6 @@ SCRIPT_START script_PlayerMoveToPicture
WalkNorth 0x0020
DoPostScriptAction 0x0000
SetSyncFlag 0x00000002
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END
.2byte 0x0000
@@ -16,5 +16,5 @@ SCRIPT_START script_PlayerAtTakeover
SetAnimationState 0x0004
DoPostScriptAction 0x0000
SetSyncFlag 0x00000100
Call sub_080791BC
Call SetPlayerActionNormal
SCRIPT_END