summaryrefslogtreecommitdiff
path: root/scripts/victoryroad1.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-05-20 19:40:33 -0500
committerdannye <33dannye@gmail.com>2020-05-20 20:02:53 -0500
commit10f9559eab8c93b94abb8ae8d1083704ad4e169a (patch)
tree7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /scripts/victoryroad1.asm
parentb8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff)
Sync with pokered
Diffstat (limited to 'scripts/victoryroad1.asm')
-rwxr-xr-xscripts/victoryroad1.asm107
1 files changed, 0 insertions, 107 deletions
diff --git a/scripts/victoryroad1.asm b/scripts/victoryroad1.asm
deleted file mode 100755
index 0f4de43e..00000000
--- a/scripts/victoryroad1.asm
+++ /dev/null
@@ -1,107 +0,0 @@
-VictoryRoad1Script:
- ld hl, wCurrentMapScriptFlags
- bit 5, [hl]
- res 5, [hl]
- call nz, .next
- call EnableAutoTextBoxDrawing
- ld hl, VictoryRoad1TrainerHeaders
- ld de, VictoryRoad1ScriptPointers
- ld a, [wVictoryRoad1CurScript]
- call ExecuteCurMapScriptInTable
- ld [wVictoryRoad1CurScript], a
- ret
-.next
- CheckEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
- ret z
- ld a, $1d
- ld [wNewTileBlockID], a
- lb bc, 6, 4
- predef_jump ReplaceTileBlock
-
-VictoryRoad1ScriptPointers:
- dw VictoryRoad1Script0
- dw DisplayEnemyTrainerTextAndStartBattle
- dw EndTrainerBattle
-
-VictoryRoad1Script0:
- CheckEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
- jp nz, CheckFightingMapTrainers
- ld hl, CoordsData_5da5c
- call CheckBoulderCoords
- jp nc, CheckFightingMapTrainers
- ld a, [H_SPRITEINDEX]
- cp $f
- jp z, CheckFightingMapTrainers
- ld hl, wCurrentMapScriptFlags
- set 5, [hl]
- SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
- ret
-
-CoordsData_5da5c:
- db $0D,$11,$FF
-
-VictoryRoad1TextPointers:
- dw VictoryRoad1Text1
- dw VictoryRoad1Text2
- dw PickUpItemText
- dw PickUpItemText
- dw BoulderText
- dw BoulderText
- dw BoulderText
-
-VictoryRoad1TrainerHeaders:
-VictoryRoad1TrainerHeader0:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_1_TRAINER_0
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_1_TRAINER_0
- dw VictoryRoad1BattleText1 ; TextBeforeBattle
- dw VictoryRoad1AfterBattleText1 ; TextAfterBattle
- dw VictoryRoad1EndBattleText1 ; TextEndBattle
- dw VictoryRoad1EndBattleText1 ; TextEndBattle
-
-VictoryRoad1TrainerHeader1:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_1_TRAINER_1
- db ($2 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_1_TRAINER_1
- dw VictoryRoad1BattleText2 ; TextBeforeBattle
- dw VictoryRoad1AfterBattleText2 ; TextAfterBattle
- dw VictoryRoad1EndBattleText2 ; TextEndBattle
- dw VictoryRoad1EndBattleText2 ; TextEndBattle
-
- db $ff
-
-VictoryRoad1Text1:
- TX_ASM
- ld hl, VictoryRoad1TrainerHeader0
- call TalkToTrainer
- jp TextScriptEnd
-
-VictoryRoad1Text2:
- TX_ASM
- ld hl, VictoryRoad1TrainerHeader1
- call TalkToTrainer
- jp TextScriptEnd
-
-VictoryRoad1BattleText1:
- TX_FAR _VictoryRoad1BattleText1
- db "@"
-
-VictoryRoad1EndBattleText1:
- TX_FAR _VictoryRoad1EndBattleText1
- db "@"
-
-VictoryRoad1AfterBattleText1:
- TX_FAR _VictoryRoad1AfterBattleText1
- db "@"
-
-VictoryRoad1BattleText2:
- TX_FAR _VictoryRoad1BattleText2
- db "@"
-
-VictoryRoad1EndBattleText2:
- TX_FAR _VictoryRoad1EndBattleText2
- db "@"
-
-VictoryRoad1AfterBattleText2:
- TX_FAR _VictoryRoad1AfterBattleText2
- db "@"