summaryrefslogtreecommitdiff
path: root/scripts/VictoryRoad3F.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /scripts/VictoryRoad3F.asm
parent53fcd05aa24693093d8af1dc8ec4fedd3957decc (diff)
Sync with pokered
Diffstat (limited to 'scripts/VictoryRoad3F.asm')
-rwxr-xr-xscripts/VictoryRoad3F.asm102
1 files changed, 37 insertions, 65 deletions
diff --git a/scripts/VictoryRoad3F.asm b/scripts/VictoryRoad3F.asm
index dc7a2aac..f63a71e5 100755
--- a/scripts/VictoryRoad3F.asm
+++ b/scripts/VictoryRoad3F.asm
@@ -36,7 +36,7 @@ VictoryRoad3Script0:
ld a, [wCoordIndex]
cp $1
jr nz, .asm_449dc
- ld a, [hSpriteIndexOrTextID]
+ ldh a, [hSpriteIndexOrTextID]
cp $f ; Pikachu
jp z, .asm_449fe
ld hl, wCurrentMapScriptFlags
@@ -54,9 +54,9 @@ VictoryRoad3Script0:
predef_jump ShowObject
.coordsData_449f9:
- db $05,$03
- db $0F,$17
- db $FF
+ dbmapcoord 3, 5
+ dbmapcoord 23, 15
+ db -1 ; end
.asm_449fe
ld a, VICTORY_ROAD_2F
@@ -90,111 +90,83 @@ VictoryRoad3F_TextPointers:
dw BoulderText
VictoryRoad3TrainerHeader0:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_3_TRAINER_0
- db ($1 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_3_TRAINER_0
- dw VictoryRoad3BattleText2 ; TextBeforeBattle
- dw VictoryRoad3AfterBattleText2 ; TextAfterBattle
- dw VictoryRoad3EndBattleText2 ; TextEndBattle
- dw VictoryRoad3EndBattleText2 ; TextEndBattle
-
+ trainer EVENT_BEAT_VICTORY_ROAD_3_TRAINER_0, 1, VictoryRoad3BattleText2, VictoryRoad3EndBattleText2, VictoryRoad3AfterBattleText2
VictoryRoad3TrainerHeader1:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_3_TRAINER_1
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_3_TRAINER_1
- dw VictoryRoad3BattleText3 ; TextBeforeBattle
- dw VictoryRoad3AfterBattleText3 ; TextAfterBattle
- dw VictoryRoad3EndBattleText3 ; TextEndBattle
- dw VictoryRoad3EndBattleText3 ; TextEndBattle
-
+ trainer EVENT_BEAT_VICTORY_ROAD_3_TRAINER_1, 4, VictoryRoad3BattleText3, VictoryRoad3EndBattleText3, VictoryRoad3AfterBattleText3
VictoryRoad3TrainerHeader2:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_3_TRAINER_2
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_3_TRAINER_2
- dw VictoryRoad3BattleText4 ; TextBeforeBattle
- dw VictoryRoad3AfterBattleText4 ; TextAfterBattle
- dw VictoryRoad3EndBattleText4 ; TextEndBattle
- dw VictoryRoad3EndBattleText4 ; TextEndBattle
-
+ trainer EVENT_BEAT_VICTORY_ROAD_3_TRAINER_2, 4, VictoryRoad3BattleText4, VictoryRoad3EndBattleText4, VictoryRoad3AfterBattleText4
VictoryRoad3TrainerHeader3:
- dbEventFlagBit EVENT_BEAT_VICTORY_ROAD_3_TRAINER_3
- db ($4 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_VICTORY_ROAD_3_TRAINER_3
- dw VictoryRoad3BattleText5 ; TextBeforeBattle
- dw VictoryRoad3AfterBattleText5 ; TextAfterBattle
- dw VictoryRoad3EndBattleText5 ; TextEndBattle
- dw VictoryRoad3EndBattleText5 ; TextEndBattle
-
- db $ff
+ trainer EVENT_BEAT_VICTORY_ROAD_3_TRAINER_3, 4, VictoryRoad3BattleText5, VictoryRoad3EndBattleText5, VictoryRoad3AfterBattleText5
+ db -1 ; end
VictoryRoad3Text1:
- TX_ASM
+ text_asm
ld hl, VictoryRoad3TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
VictoryRoad3Text2:
- TX_ASM
+ text_asm
ld hl, VictoryRoad3TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
VictoryRoad3Text3:
- TX_ASM
+ text_asm
ld hl, VictoryRoad3TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
VictoryRoad3Text4:
- TX_ASM
+ text_asm
ld hl, VictoryRoad3TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
VictoryRoad3BattleText2:
- TX_FAR _VictoryRoad3BattleText2
- db "@"
+ text_far _VictoryRoad3BattleText2
+ text_end
VictoryRoad3EndBattleText2:
- TX_FAR _VictoryRoad3EndBattleText2
- db "@"
+ text_far _VictoryRoad3EndBattleText2
+ text_end
VictoryRoad3AfterBattleText2:
- TX_FAR _VictoryRoad3AfterBattleText2
- db "@"
+ text_far _VictoryRoad3AfterBattleText2
+ text_end
VictoryRoad3BattleText3:
- TX_FAR _VictoryRoad3BattleText3
- db "@"
+ text_far _VictoryRoad3BattleText3
+ text_end
VictoryRoad3EndBattleText3:
- TX_FAR _VictoryRoad3EndBattleText3
- db "@"
+ text_far _VictoryRoad3EndBattleText3
+ text_end
VictoryRoad3AfterBattleText3:
- TX_FAR _VictoryRoad3AfterBattleText3
- db "@"
+ text_far _VictoryRoad3AfterBattleText3
+ text_end
VictoryRoad3BattleText4:
- TX_FAR _VictoryRoad3BattleText4
- db "@"
+ text_far _VictoryRoad3BattleText4
+ text_end
VictoryRoad3EndBattleText4:
- TX_FAR _VictoryRoad3EndBattleText4
- db "@"
+ text_far _VictoryRoad3EndBattleText4
+ text_end
VictoryRoad3AfterBattleText4:
- TX_FAR _VictoryRoad3AfterBattleText4
- db "@"
+ text_far _VictoryRoad3AfterBattleText4
+ text_end
VictoryRoad3BattleText5:
- TX_FAR _VictoryRoad3BattleText5
- db "@"
+ text_far _VictoryRoad3BattleText5
+ text_end
VictoryRoad3EndBattleText5:
- TX_FAR _VictoryRoad3EndBattleText5
- db "@"
+ text_far _VictoryRoad3EndBattleText5
+ text_end
VictoryRoad3AfterBattleText5:
- TX_FAR _VictoryRoad3AfterBattleText5
- db "@"
+ text_far _VictoryRoad3AfterBattleText5
+ text_end