tmc/data/scripts/cutscene/introTown/script_Object69IntroTown.inc

57 lines
1.2 KiB
PHP

@ Intro Hyrule Town OBJECT_69 ?
SCRIPT_START script_Object69IntroTown
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800FD50
WaitForSyncFlagAndClear 0x00000010
script_0800FD1A:
@ Prevent Link from leaving
CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
JumpIfNot script_0800FD1A
.ifdef JP
CheckLocalFlag 0x00ca
.else
.ifdef EU
CheckLocalFlag 0x00ca
.else
.ifdef DEMO_JP
CheckLocalFlag 0x00ca @ TODO deduplicate
.else
CheckLocalFlag 0x00cd
.endif
.endif
.endif
JumpIf script_0800FD5C
SetPlayerIdle
Call WaitForPlayerNormal
MessageFromTargetPos 0x2506, 0x0000
WaitUntilTextboxCloses
StartPlayerScript script_PlayerIntroTown
WaitForSyncFlagAndClear 0x00000008
EnablePlayerControl
Jump script_0800FD1A
script_0800FD50:
CheckPlayerInRegion 0x00c8, 0x03c0, 0x1040
JumpIfNot script_0800FD50
script_0800FD5C:
SetPlayerIdle
Call WaitForPlayerNormal
MessageFromTargetPos 0x106c, 0x0000
WaitUntilTextboxCloses
StartPlayerScript script_PlayerIntroTown
WaitForSyncFlagAndClear 0x00000008
EnablePlayerControl
Jump script_0800FD50
.2byte 0x0000