summaryrefslogtreecommitdiff
path: root/scripts/PlayerHouse1F.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2020-09-21 11:58:10 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2020-09-21 12:15:06 -0400
commit9f2ef498fb319ab6a0b343f8165af49ad33b5c78 (patch)
tree35eee5afd82436a5b5969e1c22c1f49f87926189 /scripts/PlayerHouse1F.asm
parentf2118b1715e8ef29d6967e0a9ab24cb8cd1a8aa4 (diff)
Copy pokered map organization (maps/*.blk, scripts/*.asm, data/maps/objects/*.asm)
Diffstat (limited to 'scripts/PlayerHouse1F.asm')
-rw-r--r--scripts/PlayerHouse1F.asm59
1 files changed, 59 insertions, 0 deletions
diff --git a/scripts/PlayerHouse1F.asm b/scripts/PlayerHouse1F.asm
new file mode 100644
index 0000000..b7134b3
--- /dev/null
+++ b/scripts/PlayerHouse1F.asm
@@ -0,0 +1,59 @@
+include "constants.asm"
+
+SECTION "scripts/PlayerHouse1F.asm", ROMX
+
+PlayerHouse1FScriptLoader::
+ ld hl, PlayerHouse1FScriptPointers
+ call RunMapScript
+ call WriteBackMapScriptNumber
+ ret
+
+PlayerHouse1FScriptPointers:
+ dw PlayerHouse1FScript1
+ dw PlayerHouse1FNPCIDs1
+ dw PlayerHouse1FScript2
+ dw PlayerHouse1FNPCIDs2
+
+PlayerHouse1FNPCIDs1:
+ db $FF
+
+PlayerHouse1FNPCIDs2:
+ db 0
+ db $FF
+
+PlayerHouse1FScript1:
+ ld hl, PlayerHouse1FNPCIDs1
+ ld de, PlayerHouse1FSignPointers
+ call CallMapTextSubroutine
+ ret
+
+PlayerHouse1FScript2:
+ ld hl, PlayerHouse1FNPCIDs2
+ ld de, PlayerHouse1FSignPointers
+ call CallMapTextSubroutine
+ ret
+
+PlayerHouse1FSignPointers:
+ dw Function38ab
+ dw Function38b4
+ dw Function38a2
+ dw Function38bd
+ dw Function3899
+PlayerHouse1FTextPointers::
+ dw PlayerHouse1FNPCText1
+
+PlayerHouse1FNPCText1:
+ ld hl, PlayerHouse1FTextString1
+ call OpenTextbox
+ ret
+
+PlayerHouse1FTextString1:
+ text "おかあさん『えっ あなた"
+ line "オーキドはかせに"
+ cont "ポケモンずかんを つくってくれって"
+ cont "たのまれたの?"
+
+ para "すごいじゃない!"
+ line "わたしも ポケモン きらいって"
+ cont "わけじゃないし がんばるのよ!"
+ done