summaryrefslogtreecommitdiff
path: root/data/scripts/cutscene/outro/script_PlayerGetGreenCap.inc
blob: a12491002b69bb8258765c54fb4cf12d72459fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@ Outro Player got the green cap
SCRIPT_START script_PlayerGetGreenCap
	BeginBlock
	Call sub_08094BE0
	CallWithArg SetPlayerAnimation2, ANIM_GET_ITEM_BIG_NOCAP
	PlaySound SFX_ITEM_GET
	EndBlock
	Call WaitForPlayerAnim
	Wait 0x005a
	SetSyncFlag 0x00000008
	BeginBlock
	CallWithArg ResetPlayerFlag, PL_NO_CAP
	CallWithArg SetPlayerAnimation2, ANIM_GET_NEWCAP
	EndBlock
	Call WaitForPlayerAnim
	SetAnimationState 0x0004
	DoPostScriptAction 0x0000
	Wait 0x003c
	SetAnimationState 0x0002
	DoPostScriptAction 0x0000
	Wait 0x0004
	SetAnimationState 0x0000
	DoPostScriptAction 0x0000
	SetSyncFlag 0x00000001
	Call SetPlayerActionNormal
	.2byte 0x0000