summaryrefslogtreecommitdiff
path: root/maps/MobileBattleRoom.asm
blob: 06dd75a0abcb5450ee28698e0e5326b9cc5e3903 (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
77
78
79
80
81
82
83
84
85
86
87
88
MobileBattleRoom_MapScriptHeader:
.MapTriggers:
	db 2

	; triggers
	dw .Trigger1, $0000
	dw .Trigger2, $0000

.MapCallbacks:
	db 0

.Trigger1:
	priorityjump MobileBattleRoom_Initialize
	end

.Trigger2:
	end

MobileBattleRoom_Initialize:
	dotrigger $1
	domaptrigger POKECENTER_2F, $5
	end

MapMobileBattleRoomSignpost0Script:
	refreshscreen $0
	special Function1037c2
	if_equal $1, .one
	special Function1037eb
	iffalse .false
	if_equal $1, .one_
	if_equal $2, .two_
	jump .false

.one_:
	writetext MobileBattleRoom_HealText
	pause 20
	loadmovesprites
	special FadeBlackBGMap
	playmusic MUSIC_HEAL
	special LoadMapPalettes
	pause 60
	special FadeInBGMap
	special RestartMapMusic
	refreshscreen $0
.two_:
	special Mobile_HealParty
	special HealParty
	special Function10383c
	iftrue .false
.one:
	special Function10387b
	writetext MobileBattleRoom_EstablishingCommsText
	closetext
	reloadmappart
	special Function101225
.false:
	loadmovesprites
	end

MobileBattleRoom_EstablishingCommsText:
	text "Establishing"
	line "communications…"
	done

MobileBattleRoom_HealText:
	text "Your #MON will"
	line "be fully healed"
	cont "before battle."
	done

MobileBattleRoom_MapEventHeader:
	; filler
	db 0, 0

.Warps:
	db 2
	warp_def $7, $4, 6, POKECENTER_2F
	warp_def $7, $5, 6, POKECENTER_2F

.XYTriggers:
	db 0

.Signposts:
	db 1
	signpost 2, 4, SIGNPOST_UP, MapMobileBattleRoomSignpost0Script

.PersonEvents:
	db 0