summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route110_TrickHousePuzzle1.inc
blob: df0484baf95b050eb38dc0f9515478b707d5f914 (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
Route110_TrickHousePuzzle1_MapScripts:: @ 8161CF8
	map_script 1, Route110_TrickHousePuzzle1_MapScript1_161CFE
	.byte 0

Route110_TrickHousePuzzle1_MapScript1_161CFE:: @ 8161CFE
	compare VAR_TRICK_HOUSE_PUZZLE_1_STATE, 2
	goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D0A
	end

Route110_TrickHousePuzzle1_EventScript_161D0A:: @ 8161D0A
	setmetatile 13, 1, 523, 0
	end

Route110_TrickHousePuzzle1_EventScript_161D14:: @ 8161D14
	lockall
	compare VAR_TRICK_HOUSE_PUZZLE_1_STATE, 0
	goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D26
	goto Route110_TrickHousePuzzle1_EventScript_161892
	end

Route110_TrickHousePuzzle1_EventScript_161D26:: @ 8161D26
	setvar VAR_TRICK_HOUSE_PUZZLE_1_STATE, 1
	goto Route110_TrickHousePuzzle1_EventScript_16189C
	end

Route110_TrickHousePuzzle1_EventScript_161D31:: @ 8161D31
	trainerbattle 0, OPPONENT_SALLY, 0, Route110_TrickHousePuzzle1_Text_19CB4F, Route110_TrickHousePuzzle1_Text_19CB93
	msgbox Route110_TrickHousePuzzle1_Text_19CBAB, 6
	end

Route110_TrickHousePuzzle1_EventScript_161D48:: @ 8161D48
	trainerbattle 0, OPPONENT_EDDIE, 0, Route110_TrickHousePuzzle1_Text_19CBD6, Route110_TrickHousePuzzle1_Text_19CC06
	msgbox Route110_TrickHousePuzzle1_Text_19CC1B, 6
	end

Route110_TrickHousePuzzle1_EventScript_161D5F:: @ 8161D5F
	trainerbattle 0, OPPONENT_ROBIN, 0, Route110_TrickHousePuzzle1_Text_19CC68, Route110_TrickHousePuzzle1_Text_19CC86
	msgbox Route110_TrickHousePuzzle1_Text_19CCAA, 6
	end