summaryrefslogtreecommitdiff
path: root/scripts/OldCityPokecenterBattle.asm
blob: 75321fbf73b379235d2dcd2a536b046eb64667cb (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
INCLUDE "constants.asm"

SECTION "scripts/OldCityPokecenterBattle.asm", ROMX

OldCityPokecenterBattle_ScriptLoader:
	ld hl, OldCityPokecenterBattleScriptPointers
	call RunMapScript
	call WriteBackMapScriptNumber
	ret

OldCityPokecenterBattleScriptPointers:
	dw OldCityPokecenterBattleScript1
	dw OldCityPokecenterBattleNPCIds

OldCityPokecenterBattleScript1:
	ld hl, OldCityPokecenterBattleNPCIds
	ld de, OldCityPokecenterBattleSignPointers
	call CallMapTextSubroutine
	ret

OldCityPokecenterBattleNPCIds:
	db $00, $ff

OldCityPokecenterBattleSignPointers:
	dw MapDefaultText

OldCityPokecenterBattle_TextPointers:
	dw OldCityPokecenterBattleText1

OldCityPokecenterBattleText1:
	ld hl, wJoypadFlags
	set 5, [hl]
	ld hl, OldCityPokecenterBattleTextString1
	call OpenTextbox
	ld hl, wJoypadFlags
	res 5, [hl]
	callab Function28000
	ret

OldCityPokecenterBattleTextString1:
	text "ちょっとまってね!@"
	text_exit
	db "@"