summaryrefslogtreecommitdiff
path: root/data/maps/DesertRuins/scripts.inc
blob: cfd5d115abf081a92f4dcc333bc74173a131e52a (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
DesertRuins_MapScripts:: @ 815CAF3
	map_script MAP_SCRIPT_ON_RESUME, DesertRuins_MapScript1_15CB03
	map_script MAP_SCRIPT_ON_LOAD, DesertRuins_MapScript1_15CB11
	map_script MAP_SCRIPT_ON_TRANSITION, DesertRuins_MapScript1_15CB52
	.byte 0

DesertRuins_MapScript1_15CB03:: @ 815CB03
	call_if_set FLAG_SYS_CTRL_OBJ_DELETE, DesertRuins_EventScript_15CB0D
	end

DesertRuins_EventScript_15CB0D:: @ 815CB0D
	removeobject VAR_LAST_TALKED
	return

DesertRuins_MapScript1_15CB11:: @ 815CB11
	call_if_unset FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB1B
	end

DesertRuins_EventScript_15CB1B:: @ 815CB1B
	setmetatile 7, 19, METATILE_Cave_EntranceCover, 1
	setmetatile 8, 19, METATILE_Cave_EntranceCover, 1
	setmetatile 9, 19, METATILE_Cave_EntranceCover, 1
	setmetatile 7, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
	setmetatile 8, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
	setmetatile 9, 20, METATILE_Cave_SealedChamberBraille_Mid, 1
	return

DesertRuins_MapScript1_15CB52:: @ 815CB52
	setflag FLAG_LANDMARK_DESERT_RUINS
	end

DesertRuins_EventScript_15CB56:: @ 815CB56
	lockall
	goto_if_set FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB6D
	braillemessage DesertRuins_Braille_1C54C8
	waitbuttonpress
	erasebox 0, 0, 29, 19
	releaseall
	end

DesertRuins_EventScript_15CB6D:: @ 815CB6D
	msgbox DesertRuins_Text_1A13BE, MSGBOX_DEFAULT
	releaseall
	end

DesertRuins_EventScript_15CB77:: @ 815CB77
	lockall
	braillemessage DesertRuins_Braille_1C54C8
	waitbuttonpress
	erasebox 0, 0, 29, 19
	releaseall
	end

DesertRuins_EventScript_15CB85:: @ 815CB85
	lock
	faceplayer
	waitse
	playmoncry SPECIES_REGIROCK, 2
	delay 40
	waitmoncry
	setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE
	setflag FLAG_HIDE_REGIROCK
	setflag FLAG_SYS_CTRL_OBJ_DELETE
	special ScrSpecial_StartRegiBattle
	waitstate
	clearflag FLAG_SYS_CTRL_OBJ_DELETE
	release
	end