summaryrefslogtreecommitdiff
path: root/scripts/AgathasRoom.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/AgathasRoom.asm')
-rwxr-xr-xscripts/AgathasRoom.asm47
1 files changed, 20 insertions, 27 deletions
diff --git a/scripts/AgathasRoom.asm b/scripts/AgathasRoom.asm
index 20245166..9aa957f5 100755
--- a/scripts/AgathasRoom.asm
+++ b/scripts/AgathasRoom.asm
@@ -64,8 +64,8 @@ AgathaScript0:
call ArePlayerCoordsInArray
jp nc, CheckFightingMapTrainers
xor a
- ld [hJoyPressed], a
- ld [hJoyHeld], a
+ ldh [hJoyPressed], a
+ ldh [hJoyHeld], a
ld [wSimulatedJoypadStatesEnd], a
ld [wSimulatedJoypadStatesIndex], a
ld a, [wCoordIndex]
@@ -75,7 +75,7 @@ AgathaScript0:
jr z, AgathaScriptWalkIntoRoom
.stopPlayerFromLeaving
ld a, $2
- ld [hSpriteIndexOrTextID], a
+ ldh [hSpriteIndexOrTextID], a
call DisplayTextID ; "Don't run away!"
ld a, D_UP
ld [wSimulatedJoypadStatesEnd], a
@@ -88,11 +88,11 @@ AgathaScript0:
ret
AgathaEntranceCoords:
- db $0A,$04
- db $0A,$05
- db $0B,$04
- db $0B,$05
- db $FF
+ dbmapcoord 4, 10
+ dbmapcoord 5, 10
+ dbmapcoord 4, 11
+ dbmapcoord 5, 11
+ db -1 ; end
AgathaScript3:
ld a, [wSimulatedJoypadStatesIndex]
@@ -111,7 +111,7 @@ AgathaScript2:
cp $ff
jp z, ResetAgathaScript
ld a, $1
- ld [hSpriteIndexOrTextID], a
+ ldh [hSpriteIndexOrTextID], a
call DisplayTextID
ld a, $1
ld [wChampionsRoomCurScript], a
@@ -122,34 +122,27 @@ AgathasRoom_TextPointers:
dw AgathaDontRunAwayText
AgathaTrainerHeader0:
- dbEventFlagBit EVENT_BEAT_AGATHAS_ROOM_TRAINER_0
- db ($0 << 4) ; trainer's view range
- dwEventFlagAddress EVENT_BEAT_AGATHAS_ROOM_TRAINER_0
- dw AgathaBeforeBattleText ; TextBeforeBattle
- dw AgathaAfterBattleText ; TextAfterBattle
- dw AgathaEndBattleText ; TextEndBattle
- dw AgathaEndBattleText ; TextEndBattle
-
- db $ff
+ trainer EVENT_BEAT_AGATHAS_ROOM_TRAINER_0, 0, AgathaBeforeBattleText, AgathaEndBattleText, AgathaAfterBattleText
+ db -1 ; end
AgathaText1:
- TX_ASM
+ text_asm
ld hl, AgathaTrainerHeader0
call TalkToTrainer
jp TextScriptEnd
AgathaBeforeBattleText:
- TX_FAR _AgathaBeforeBattleText
- db "@"
+ text_far _AgathaBeforeBattleText
+ text_end
AgathaEndBattleText:
- TX_FAR _AgathaEndBattleText
- db "@"
+ text_far _AgathaEndBattleText
+ text_end
AgathaAfterBattleText:
- TX_FAR _AgathaAfterBattleText
- db "@"
+ text_far _AgathaAfterBattleText
+ text_end
AgathaDontRunAwayText:
- TX_FAR _AgathaDontRunAwayText
- db "@"
+ text_far _AgathaDontRunAwayText
+ text_end