summaryrefslogtreecommitdiff
path: root/data/maps/UndergroundPath_NorthEntrance/scripts.inc
blob: 4d5a806e25de46f5f31f01608999ab4bac04a43d (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
UndergroundPath_NorthEntrance_MapScripts:: @ 8160E38
	.byte 0

UndergroundPath_NorthEntrance_EventScript_160E39:: @ 8160E39
	lock
	faceplayer
	setvar VAR_0x8008, 2
	call EventScript_1A8CAD
	checkflag FLAG_DID_MS_NIDO_TRADE
	goto_if TRUE, EventScript_160EAB
	msgbox gUnknown_81A5AD6, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_160E93
	call EventScript_1A8CBD
	compare_var_to_value VAR_0x8004, 6
	goto_if ge, EventScript_160E93
	call EventScript_1A8CC9
	compare_var_to_var VAR_RESULT, VAR_0x8009
	goto_if ne, EventScript_160E9D
	call EventScript_1A8CD9
	msgbox gUnknown_81A5B4A
	setflag FLAG_DID_MS_NIDO_TRADE
	release
	end

EventScript_160E93:: @ 8160E93
	msgbox gUnknown_81A5B08
	release
	end

EventScript_160E9D:: @ 8160E9D
	getspeciesname 0, VAR_0x8009
	msgbox gUnknown_81A5B18
	release
	end

EventScript_160EAB:: @ 8160EAB
	msgbox gUnknown_81A5B60
	release
	end