summaryrefslogtreecommitdiff
path: root/data/maps/IndigoPlateau_PokemonCenter_1F/scripts.inc
blob: f3c9c7c3f180fd23335dd0e3cf8e2a62e1890713 (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
IndigoPlateau_PokemonCenter_1F_MapScripts:: @ 816EA5A
	map_script 3, IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65
	map_script 5, IndigoPlateau_PokemonCenter_1F_MapScript2_1BC05C
	.byte 0

IndigoPlateau_PokemonCenter_1F_MapScript1_16EA65:: @ 816EA65
	setrespawn SPAWN_INDIGO_PLATEAU
	specialvar VAR_RESULT, IsNationalPokedexEnabled
	compare_var_to_value VAR_RESULT, 1
	call_if eq, EventScript_16EA79
	end

EventScript_16EA79:: @ 816EA79
	checkflag FLAG_SYS_CAN_LINK_WITH_RS
	goto_if TRUE, EventScript_1A77A9
	setobjectxyperm 4, 4, 2
	return

IndigoPlateau_PokemonCenter_1F_EventScript_16EA8A:: @ 816EA8A
	lock
	faceplayer
	specialvar VAR_RESULT, IsNationalPokedexEnabled
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16EAA6
	msgbox gUnknown_819A8D8
	release
	end

EventScript_16EAA6:: @ 816EAA6
	checkflag FLAG_SYS_CAN_LINK_WITH_RS
	goto_if TRUE, EventScript_16EAB9
	msgbox gUnknown_819A943
	release
	end

EventScript_16EAB9:: @ 816EAB9
	msgbox gUnknown_819A8D8
	release
	end

IndigoPlateau_PokemonCenter_1F_EventScript_16EAC3:: @ 816EAC3
	msgbox gUnknown_819A837, 2
	end

IndigoPlateau_PokemonCenter_1F_EventScript_16EACC:: @ 816EACC
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if eq, EventScript_1A7AE0
	lock
	faceplayer
	message Text_1A6211
	waitmessage
	pokemart Items_16EAF4
	msgbox gUnknown_81A5190
	release
	end

	.align 2
Items_16EAF4:: @ 816EAF4
	.2byte ITEM_ULTRA_BALL
	.2byte ITEM_GREAT_BALL
	.2byte ITEM_FULL_RESTORE
	.2byte ITEM_MAX_POTION
	.2byte ITEM_REVIVE
	.2byte ITEM_FULL_HEAL
	.2byte ITEM_MAX_REPEL
	.2byte ITEM_NONE
	release
	end

IndigoPlateau_PokemonCenter_1F_EventScript_16EB06:: @ 816EB06
	lock
	faceplayer
	call EventScript_1A6578
	release
	end