diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-01-01 15:06:23 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-01-01 23:33:10 -0500 |
commit | c7796024590fec48ac79756793c1a6e3b54daf8f (patch) | |
tree | 0d61caa7ebe429995a61e800d1d78c3a82aec886 /scripts/Route4.asm | |
parent | 90430e6dee9e207dc0b618d07566f83617343f60 (diff) |
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/Route4.asm')
-rwxr-xr-x | scripts/Route4.asm | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/Route4.asm b/scripts/Route4.asm new file mode 100755 index 00000000..9b04a47a --- /dev/null +++ b/scripts/Route4.asm @@ -0,0 +1,62 @@ +Route4_Script: + call EnableAutoTextBoxDrawing + ld hl, Route4TrainerHeader0 + ld de, Route4_ScriptPointers + ld a, [wRoute4CurScript] + call ExecuteCurMapScriptInTable + ld [wRoute4CurScript], a + ret + +Route4_ScriptPointers: + dw CheckFightingMapTrainers + dw DisplayEnemyTrainerTextAndStartBattle + dw EndTrainerBattle + +Route4_TextPointers: + dw Route4Text1 + dw Route4Text2 + dw PickUpItemText + dw PokeCenterSignText + dw Route4Text5 + dw Route4Text6 + +Route4TrainerHeader0: + dbEventFlagBit EVENT_BEAT_ROUTE_4_TRAINER_0 + db ($3 << 4) ; trainer's view range + dwEventFlagAddress EVENT_BEAT_ROUTE_4_TRAINER_0 + dw Route4BattleText1 ; TextBeforeBattle + dw Route4AfterBattleText1 ; TextAfterBattle + dw Route4EndBattleText1 ; TextEndBattle + dw Route4EndBattleText1 ; TextEndBattle + + db $ff + +Route4Text1: + TX_FAR _Route4Text1 + db "@" + +Route4Text2: + TX_ASM + ld hl, Route4TrainerHeader0 + call TalkToTrainer + jp TextScriptEnd + +Route4BattleText1: + TX_FAR _Route4BattleText1 + db "@" + +Route4EndBattleText1: + TX_FAR _Route4EndBattleText1 + db "@" + +Route4AfterBattleText1: + TX_FAR _Route4AfterBattleText1 + db "@" + +Route4Text5: + TX_FAR _Route4Text5 + db "@" + +Route4Text6: + TX_FAR _Route4Text6 + db "@" |