tmc/data/scripts/cutscene/introAssembly/script_Npc4EIntroAssembly.inc

78 lines
1.9 KiB
PHP

@ Intro Assembly NPC4E
SCRIPT_START script_Npc4EIntroAssembly
BeginBlock
SetEntityPositionRelative 0x0088, 0x0078
EndBlock
script_08008E12:
CheckPlayerInRegion 0x00d8, 0x0098, 0x4020
JumpIfNot script_08008E12
SetPlayerIdle
Call WaitForPlayerNormal
Call sub_0807DF28
_0807F0B4 0x0001
CameraTargetEntity
WaitForPlayerEnterRoom
Wait 0x003c
StartPlayerScript script_PlayerEnters
WaitForSyncFlagAndClear 0x00000020
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
Wait 0x003c
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
Wait 0x000f
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000004
WaitForSyncFlagAndClear 0x00000008
MessageFromTargetPos 0x1053, 0x000e
WaitUntilTextboxCloses
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000004
WaitForSyncFlagAndClear 0x00000008
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000040
WaitForSyncFlagAndClear 0x00000020
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
GivePlayerItem 0x0035
WaitPlayerGetItem
StartPlayerScript script_PlayerGetSword
WaitForSyncFlagAndClear 0x00000020
_0807E8E4_0
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
SetSyncFlag 0x00000010
Wait 0x0078
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
_0807E8E4_1
SetSyncFlag 0x00000001
WaitForSyncFlagAndClear 0x00000002
GivePlayerItem 0x0047
WaitPlayerGetItem
SetIntVariable 0x00000003
Call LoadMenu
_0807E8E4_0
SetSyncFlag 0x00000080
WaitForSyncFlagAndClear 0x00000100
_0807F0B4 0x0004
CameraTargetPlayer
SetGlobalFlag 0x0015
Call sub_0806DCC0
Call sub_0807DF50
EnablePlayerControl
DoPostScriptAction 0x0006
SCRIPT_END
.2byte 0x0000