summaryrefslogtreecommitdiff
path: root/scripts/OldCityPokecenterBattle.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/OldCityPokecenterBattle.asm')
-rw-r--r--scripts/OldCityPokecenterBattle.asm43
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/OldCityPokecenterBattle.asm b/scripts/OldCityPokecenterBattle.asm
new file mode 100644
index 0000000..0b8bdc7
--- /dev/null
+++ b/scripts/OldCityPokecenterBattle.asm
@@ -0,0 +1,43 @@
+INCLUDE "constants.asm"
+
+SECTION "scripts/OldCityPokecenterBattle.asm", ROMX
+
+OldCityPokecenterBattleScriptLoader:
+ 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
+
+OldCityPokecenterBattleTextPointers:
+ 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 "@"