summaryrefslogtreecommitdiff
path: root/data/scripts/magma_chimney.inc
blob: a2f4f67b7fe199c64ecb1261b08d2b8d51d995e6 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
MtChimney_EventScript_1B2C95:: @ 81B2C95
	lock
	faceplayer
	checkflag 219
	callif 0, MtChimney_EventScript_1B2CB9
	checkflag 219
	callif 1, MtChimney_EventScript_1B2CC2
	closebutton
	move 1, MtChimney_Movement_1A083D
	waitmove 0
	setflag 219
	release
	end

MtChimney_EventScript_1B2CB9:: @ 81B2CB9
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B350B, 4
	.else
	msgbox MtChimney_Text_1B3EC1, 4
	.endif
	return

MtChimney_EventScript_1B2CC2:: @ 81B2CC2
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B3598, 4
	.else
	msgbox MtChimney_Text_1B3F8C, 4
	.endif
	return

MtChimney_EventScript_1B2CCB:: @ 81B2CCB
	lockall
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B2DEE, 4
	.else
	msgbox MtChimney_Text_1B37BB, 4
	.endif
	move 2, MtChimney_Movement_1A0839
	waitmove 0
	playsfx 21
	move 2, MtChimney_Movement_1A0833
	waitmove 0
	move 2, MtChimney_Movement_1A0835
	waitmove 0
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B2ED9, 4
	.else
	msgbox MtChimney_Text_1B38B3, 4
	.endif
	.ifdef SAPPHIRE
	trainerbattle 3, OPPONENT_MT_CHIMNEY_GRUNT_3, 0, MtChimney_Text_1B3099
	.else
	trainerbattle 3, OPPONENT_MT_CHIMNEY_GRUNT_3, 0, MtChimney_Text_1B3A68
	.endif
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B30C2, 4
	.else
	msgbox MtChimney_Text_1B3A90, 4
	.endif
	closebutton
	pause 30
	fadescreen 1
	disappear 2
	disappear 3
	disappear 22
	setflag 926
	fadescreen 0
	movespriteperm 1, 10, 12
	reappear 1
	compare FACING, 4
	callif 1, MtChimney_EventScript_1B2D7D
	compare FACING, 2
	callif 1, MtChimney_EventScript_1B2D88
	move 255, MtChimney_Movement_1A083F
	waitmove 0
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B3608, 4
	.else
	msgbox MtChimney_Text_1B3FFE, 4
	.endif
	closebutton
	compare FACING, 4
	callif 1, MtChimney_EventScript_1B2D93
	compare FACING, 2
	callif 1, MtChimney_EventScript_1B2D9E
	disappear 1
	setflag 927
	setflag 139
	clearflag 928
	setflag 942
	releaseall
	end

MtChimney_EventScript_1B2D7D:: @ 81B2D7D
	move 1, MtChimney_Movement_15D025
	waitmove 0
	return

MtChimney_EventScript_1B2D88:: @ 81B2D88
	move 1, MtChimney_Movement_15D036
	waitmove 0
	return

MtChimney_EventScript_1B2D93:: @ 81B2D93
	move 1, MtChimney_Movement_15D02D
	waitmove 0
	return

MtChimney_EventScript_1B2D9E:: @ 81B2D9E
	move 1, MtChimney_Movement_15D03E
	waitmove 0
	return