This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pokemontower3.asm
101 lines (84 loc) · 2.5 KB
/
pokemontower3.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
PokemonTower3Script:
call EnableAutoTextBoxDrawing
ld hl, PokemonTower3TrainerHeader0
ld de, PokemonTower3ScriptPointers
ld a, [wPokemonTower3CurScript]
call ExecuteCurMapScriptInTable
ld [wPokemonTower3CurScript], a
ret
PokemonTower3ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
PokemonTower3TextPointers:
dw PokemonTower3Text1
dw PokemonTower3Text2
dw PokemonTower3Text3
dw PickUpItemText
PokemonTower3TrainerHeader0:
dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_0
db ($2 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_0
dw PokemonTower3BattleText1 ; TextBeforeBattle
dw PokemonTower3AfterBattleText1 ; TextAfterBattle
dw PokemonTower3EndBattleText1 ; TextEndBattle
dw PokemonTower3EndBattleText1 ; TextEndBattle
PokemonTower3TrainerHeader1:
dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_1
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_1
dw PokemonTower3BattleText2 ; TextBeforeBattle
dw PokemonTower3AfterBattleText2 ; TextAfterBattle
dw PokemonTower3EndBattleText2 ; TextEndBattle
dw PokemonTower3EndBattleText2 ; TextEndBattle
PokemonTower3TrainerHeader2:
dbEventFlagBit EVENT_BEAT_POKEMONTOWER_3_TRAINER_2
db ($2 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_POKEMONTOWER_3_TRAINER_2
dw PokemonTower3BattleText3 ; TextBeforeBattle
dw PokemonTower3AfterBattleText3 ; TextAfterBattle
dw PokemonTower3EndBattleText3 ; TextEndBattle
dw PokemonTower3EndBattleText3 ; TextEndBattle
db $ff
PokemonTower3Text1:
TX_ASM
ld hl, PokemonTower3TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
PokemonTower3Text2:
TX_ASM
ld hl, PokemonTower3TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
PokemonTower3Text3:
TX_ASM
ld hl, PokemonTower3TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
PokemonTower3BattleText1:
TX_FAR _PokemonTower3BattleText1
db "@"
PokemonTower3EndBattleText1:
TX_FAR _PokemonTower3EndBattleText1
db "@"
PokemonTower3AfterBattleText1:
TX_FAR _PokemonTower3AfterBattleText1
db "@"
PokemonTower3BattleText2:
TX_FAR _PokemonTower3BattleText2
db "@"
PokemonTower3EndBattleText2:
TX_FAR _PokemonTower3EndBattleText2
db "@"
PokemonTower3AfterBattleText2:
TX_FAR _PokemonTower3AfterBattleText2
db "@"
PokemonTower3BattleText3:
TX_FAR _PokemonTower3BattleText3
db "@"
PokemonTower3EndBattleText3:
TX_FAR _PokemonTower3EndBattleText3
db "@"
PokemonTower3AfterBattleText3:
TX_FAR _PokemonTower3AfterBattleText3
db "@"