summaryrefslogtreecommitdiff
path: root/data/maps/SixIsland_WaterPath_House1/scripts.inc
blob: f9df4239630ea37495dd784bed3d6f107ed9b789 (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
SixIsland_WaterPath_House1_MapScripts:: @ 817206C
	.byte 0

SixIsland_WaterPath_House1_EventScript_17206D:: @ 817206D
	lock
	faceplayer
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if_eq EventScript_1A7AE0
	special sub_8112364
	setvar VAR_0x8004, SPECIES_HERACROSS
	specialvar VAR_RESULT, sub_80CC48C
	compare_var_to_value VAR_RESULT, 0
	goto_if_eq EventScript_1720E5
	special sub_80A0918
	msgbox gUnknown_81A4A3F
	special sub_80BF8FC
	waitstate
	copyvar VAR_RESULT, VAR_0x8004
	compare_var_to_value VAR_RESULT, 6
	goto_if 4, EventScript_1720EF
	special sub_80A0930
	compare_var_to_value VAR_RESULT, 1
	goto_if_eq EventScript_1720F1
	compare_var_to_value VAR_RESULT, 2
	goto_if_eq EventScript_1720FB
	compare_var_to_value VAR_RESULT, 3
	goto_if_eq EventScript_172121
	compare_var_to_value VAR_RESULT, 4
	goto_if_eq EventScript_17210E
	release
	end

EventScript_1720E5:: @ 81720E5
	msgbox gUnknown_81A49E9
	release
	end

EventScript_1720EF:: @ 81720EF
	release
	end

EventScript_1720F1:: @ 81720F1
	msgbox gUnknown_81A4BEF
	release
	end

EventScript_1720FB:: @ 81720FB
	checkflag FLAG_0x2D9
	goto_if 0, EventScript_172121
	msgbox gUnknown_81A4B7A
	release
	end

EventScript_17210E:: @ 817210E
	checkflag FLAG_0x2D9
	goto_if 0, EventScript_172121
	msgbox gUnknown_81A4B39
	release
	end

EventScript_172121:: @ 8172121
	setflag FLAG_0x2D9
	msgbox gUnknown_81A4A88
	giveitem ITEM_NEST_BALL
	compare_var_to_value VAR_RESULT, 0
	goto_if_eq EventScript_17214D
	msgbox gUnknown_81A4AD9
	release
	end

EventScript_17214D:: @ 817214D
	msgbox gUnknown_81A4C47
	release
	end

SixIsland_WaterPath_House1_EventScript_172157:: @ 8172157
	lockall
	checkflag FLAG_0x2D9
	goto_if_eq EventScript_17216B
	msgbox gUnknown_81A4CB9
	releaseall
	end

EventScript_17216B:: @ 817216B
	special sub_80A0918
	msgbox gUnknown_81A4C6E
	releaseall
	end