summaryrefslogtreecommitdiff
path: root/data/scripts/magma_chimney.inc
blob: 70e91f09bed6d00c283815dc02eabe12b81798fe (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
MtChimney_EventScript_1B2C95:: @ 81B2C95
	lock
	faceplayer
	call_if_unset FLAG_EVIL_LEADER_PLEASE_STOP, MtChimney_EventScript_1B2CB9
	call_if_set FLAG_EVIL_LEADER_PLEASE_STOP, MtChimney_EventScript_1B2CC2
	closemessage
	applymovement 1, Common_Movement_FaceOriginalDirection
	waitmovement 0
	setflag FLAG_EVIL_LEADER_PLEASE_STOP
	release
	end

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

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

MtChimney_EventScript_1B2CCB:: @ 81B2CCB
	lockall
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B2DEE, MSGBOX_DEFAULT
	.else
	msgbox MtChimney_Text_1B37BB, MSGBOX_DEFAULT
	.endif
	applymovement 2, Common_Movement_FacePlayer
	waitmovement 0
	playse SE_PIN
	applymovement 2, Common_Movement_ExclamationMark
	waitmovement 0
	applymovement 2, Common_Movement_Delay48
	waitmovement 0
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B2ED9, MSGBOX_DEFAULT
	.else
	msgbox MtChimney_Text_1B38B3, MSGBOX_DEFAULT
	.endif
	.ifdef SAPPHIRE
	trainerbattle_no_intro TRAINER_MT_CHIMNEY_GRUNT_3, MtChimney_Text_1B3099
	.else
	trainerbattle_no_intro TRAINER_MT_CHIMNEY_GRUNT_3, MtChimney_Text_1B3A68
	.endif
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B30C2, MSGBOX_DEFAULT
	.else
	msgbox MtChimney_Text_1B3A90, MSGBOX_DEFAULT
	.endif
	closemessage
	delay 30
	fadescreen FADE_TO_BLACK
	removeobject 2
	removeobject 3
	removeobject 22
	setflag FLAG_HIDE_EVIL_TEAM_MT_CHIMNEY
	fadescreen FADE_FROM_BLACK
	setobjectxyperm 1, 10, 12
	addobject 1
	compare VAR_FACING, 4
	call_if_eq MtChimney_EventScript_1B2D7D
	compare VAR_FACING, 2
	call_if_eq MtChimney_EventScript_1B2D88
	applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
	waitmovement 0
	.ifdef SAPPHIRE
	msgbox MtChimney_Text_1B3608, MSGBOX_DEFAULT
	.else
	msgbox MtChimney_Text_1B3FFE, MSGBOX_DEFAULT
	.endif
	closemessage
	compare VAR_FACING, 4
	call_if_eq MtChimney_EventScript_1B2D93
	compare VAR_FACING, 2
	call_if_eq MtChimney_EventScript_1B2D9E
	removeobject 1
	setflag FLAG_HIDE_OTHER_TEAM_MT_CHIMNEY
	setflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
	clearflag FLAG_HIDE_PROF_COSMO_FALLARBOR
	setflag FLAG_HIDE_PROF_COSMO_METEOR_FALLS
	releaseall
	end

MtChimney_EventScript_1B2D7D:: @ 81B2D7D
	applymovement 1, MtChimney_Movement_15D025
	waitmovement 0
	return

MtChimney_EventScript_1B2D88:: @ 81B2D88
	applymovement 1, MtChimney_Movement_15D036
	waitmovement 0
	return

MtChimney_EventScript_1B2D93:: @ 81B2D93
	applymovement 1, MtChimney_Movement_15D02D
	waitmovement 0
	return

MtChimney_EventScript_1B2D9E:: @ 81B2D9E
	applymovement 1, MtChimney_Movement_15D03E
	waitmovement 0
	return