summaryrefslogtreecommitdiff
path: root/data/scripts/maps/FortreeCity_House1.inc
blob: 0ae6e3fbd0b76d142763b776e52f7802e4e05dcf (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
FortreeCity_House1_MapScripts:: @ 8157E12
	.byte 0

FortreeCity_House1_EventScript_157E13:: @ 8157E13
	lock
	faceplayer
	checkflag 155
	jumpeq FortreeCity_House1_EventScript_157EAD
	setvar 0x8008, 1
	copyvar 0x8004, 0x8008
	specialval RESULT, 252
	copyvar 0x8009, RESULT
	msgbox FortreeCity_House1_Text_18568C, 5
	compare RESULT, 0
	jumpeq FortreeCity_House1_EventScript_157E95
	special 159
	waitstate
	copyvar 0x800a, 0x8004
	compare 0x8004, 255
	jumpeq FortreeCity_House1_EventScript_157E95
	copyvar 0x8005, 0x800a
	specialval RESULT, 255
	copyvar 0x800b, RESULT
	comparevars RESULT, 0x8009
	jumpif 5, FortreeCity_House1_EventScript_157E9F
	copyvar 0x8004, 0x8008
	copyvar 0x8005, 0x800a
	special 253
	special 254
	waitstate
	bufferpoke 0, 0x8009
	msgbox FortreeCity_House1_Text_1856F7, 4
	setflag 155
	release
	end

FortreeCity_House1_EventScript_157E95:: @ 8157E95
	msgbox FortreeCity_House1_Text_18577F, 4
	release
	end

FortreeCity_House1_EventScript_157E9F:: @ 8157E9F
	bufferpoke 0, 0x8009
	msgbox FortreeCity_House1_Text_185737, 4
	release
	end

FortreeCity_House1_EventScript_157EAD:: @ 8157EAD
	msgbox FortreeCity_House1_Text_1857C7, 4
	release
	end

FortreeCity_House1_EventScript_157EB7:: @ 8157EB7
	msgbox FortreeCity_House1_Text_18582A, 2
	end

FortreeCity_House1_EventScript_157EC0:: @ 8157EC0
	lock
	faceplayer
	checksound
	pokecry SPECIES_ZIGZAGOON, 0
	msgbox FortreeCity_House1_Text_185888, 4
	waitpokecry
	release
	end