summaryrefslogtreecommitdiff
path: root/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
blob: 19219a62602f283c616b3de9338e75759745d56a (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
EverGrandeCity_PhoebesRoom_MapScripts:: @ 815B5D9
	map_script 1, EverGrandeCity_PhoebesRoom_MapScript1_15B60F
	map_script 4, EverGrandeCity_PhoebesRoom_MapScript2_15B5E9
	map_script 2, EverGrandeCity_PhoebesRoom_MapScript2_15B5F8
	.byte 0

EverGrandeCity_PhoebesRoom_MapScript2_15B5E9:: @ 815B5E9
	map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_15B5F3
	.2byte 0

EverGrandeCity_PhoebesRoom_EventScript_15B5F3:: @ 815B5F3
	turnobject 255, 2
	end

EverGrandeCity_PhoebesRoom_MapScript2_15B5F8:: @ 815B5F8
	map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_15B602
	.2byte 0

EverGrandeCity_PhoebesRoom_EventScript_15B602:: @ 815B602
	lockall
	call EverGrandeCity_PhoebesRoom_EventScript_1A0710
	setvar VAR_ELITE_4_STATE, 2
	releaseall
	end

EverGrandeCity_PhoebesRoom_MapScript1_15B60F:: @ 815B60F
	checkflag FLAG_DEFEATED_ELITE_4_PHOEBE
	call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B624
	compare VAR_ELITE_4_STATE, 2
	call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B62A
	end

EverGrandeCity_PhoebesRoom_EventScript_15B624:: @ 815B624
	call EverGrandeCity_PhoebesRoom_EventScript_1A0757
	return

EverGrandeCity_PhoebesRoom_EventScript_15B62A:: @ 815B62A
	call EverGrandeCity_PhoebesRoom_EventScript_1A07FA
	return

EverGrandeCity_PhoebesRoom_EventScript_15B630:: @ 815B630
	lock
	faceplayer
	checkflag FLAG_DEFEATED_ELITE_4_PHOEBE
	goto_if_eq EverGrandeCity_PhoebesRoom_EventScript_15B657
	playbgm 450, 0
	msgbox EverGrandeCity_PhoebesRoom_Text_1908F5, 4
	trainerbattle 3, OPPONENT_PHOEBE, 0, EverGrandeCity_PhoebesRoom_Text_190A0C
	goto EverGrandeCity_PhoebesRoom_EventScript_15B661
	end

EverGrandeCity_PhoebesRoom_EventScript_15B657:: @ 815B657
	msgbox EverGrandeCity_PhoebesRoom_Text_190A2A, 4
	release
	end

EverGrandeCity_PhoebesRoom_EventScript_15B661:: @ 815B661
	setflag FLAG_DEFEATED_ELITE_4_PHOEBE
	call EverGrandeCity_PhoebesRoom_EventScript_1A0693
	msgbox EverGrandeCity_PhoebesRoom_Text_190A2A, 4
	release
	end