summaryrefslogtreecommitdiff
path: root/data/scripts/maps/AncientTomb.inc
blob: b849f41baeed5b5c6e4e33cdf64d4e98694a3261 (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
AncientTomb_MapScripts:: @ 815EFBE
	map_script 5, AncientTomb_MapScript1_15EFCE
	map_script 1, AncientTomb_MapScript1_15EFE0
	map_script 3, AncientTomb_MapScript1_15EFDC
	.byte 0

AncientTomb_MapScript1_15EFCE:: @ 815EFCE
	checkflag FLAG_SYS_CTRL_OBJ_DELETE
	call_if 1, AncientTomb_EventScript_15EFD8
	end

AncientTomb_EventScript_15EFD8:: @ 815EFD8
	removeobject LAST_TALKED
	return

AncientTomb_MapScript1_15EFDC:: @ 815EFDC
	setflag FLAG_LANDMARK_ANCIENT_TOMB
	end

AncientTomb_MapScript1_15EFE0:: @ 815EFE0
	checkflag FLAG_SYS_BRAILLE_FLY
	call_if 0, AncientTomb_EventScript_15EFEA
	end

AncientTomb_EventScript_15EFEA:: @ 815EFEA
	setmetatile 7, 19, 553, 1
	setmetatile 8, 19, 553, 1
	setmetatile 9, 19, 553, 1
	setmetatile 7, 20, 565, 1
	setmetatile 8, 20, 565, 1
	setmetatile 9, 20, 565, 1
	return

AncientTomb_EventScript_15F021:: @ 815F021
	lockall
	checkflag FLAG_SYS_BRAILLE_FLY
	goto_if_eq AncientTomb_EventScript_15F038
	braillemessage AncientTomb_Braille_1C552E
	waitbuttonpress
	erasebox 0, 0, 29, 19
	releaseall
	end

AncientTomb_EventScript_15F038:: @ 815F038
	msgbox AncientTomb_Text_1A13BE, 4
	releaseall
	end

AncientTomb_EventScript_15F042:: @ 815F042
	lockall
	braillemessage AncientTomb_Braille_1C552E
	waitbuttonpress
	erasebox 0, 0, 29, 19
	releaseall
	end

AncientTomb_EventScript_15F050:: @ 815F050
	lock
	faceplayer
	waitse
	playmoncry SPECIES_REGISTEEL, 2
	delay 40
	waitmoncry
	setwildbattle SPECIES_REGISTEEL, 40, ITEM_NONE
	setflag FLAG_HIDE_REGISTEEL
	setflag FLAG_SYS_CTRL_OBJ_DELETE
	special ScrSpecial_StartRegiBattle
	waitstate
	clearflag FLAG_SYS_CTRL_OBJ_DELETE
	release
	end