summaryrefslogtreecommitdiff
path: root/maps/AzaleaGym.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-07-21 02:04:38 -0400
committeryenatch <yenatch@gmail.com>2015-07-21 02:04:38 -0400
commit0b5471f385d3cc66bb4ae7aa4191ce3af9f50cac (patch)
tree61cb1021673d8a9b7b1cdddc64d90053a8476e8b /maps/AzaleaGym.asm
parent006fc875971c92f2249f47b5fd120c5df76c6883 (diff)
parentd5ddd9e54ec2422d6f1cd7c561c1750512d0a81d (diff)
Merge pull request #302 from PikalaxALT/more_enum
More enum
Diffstat (limited to 'maps/AzaleaGym.asm')
-rw-r--r--maps/AzaleaGym.asm120
1 files changed, 20 insertions, 100 deletions
diff --git a/maps/AzaleaGym.asm b/maps/AzaleaGym.asm
index df0034df8..263995d6d 100644
--- a/maps/AzaleaGym.asm
+++ b/maps/AzaleaGym.asm
@@ -1,8 +1,8 @@
AzaleaGym_MapScriptHeader:
- ; trigger count
+.MapTriggers:
db 0
- ; callback count
+.MapCallbacks:
db 0
BugsyScript_0x18ec1e:
@@ -61,23 +61,7 @@ AzaleaGymTriggerRockets:
jumpstd radiotowerrockets
TrainerTwinsAmyandmay1:
- ; bit/flag number
- dw EVENT_BEAT_TWINS_AMY_AND_MAY
-
- ; trainer group && trainer id
- db TWINS, AMYANDMAY1
-
- ; text when seen
- dw TwinsAmyandmay1SeenText
-
- ; text when trainer beaten
- dw TwinsAmyandmay1BeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw TwinsAmyandmay1Script
+ trainer EVENT_BEAT_TWINS_AMY_AND_MAY, TWINS, AMYANDMAY1, TwinsAmyandmay1SeenText, TwinsAmyandmay1BeatenText, $0000, TwinsAmyandmay1Script
TwinsAmyandmay1Script:
talkaftercancel
@@ -88,23 +72,7 @@ TwinsAmyandmay1Script:
end
TrainerTwinsAmyandmay2:
- ; bit/flag number
- dw EVENT_BEAT_TWINS_AMY_AND_MAY
-
- ; trainer group && trainer id
- db TWINS, AMYANDMAY2
-
- ; text when seen
- dw TwinsAmyandmay2SeenText
-
- ; text when trainer beaten
- dw TwinsAmyandmay2BeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw TwinsAmyandmay2Script
+ trainer EVENT_BEAT_TWINS_AMY_AND_MAY, TWINS, AMYANDMAY2, TwinsAmyandmay2SeenText, TwinsAmyandmay2BeatenText, $0000, TwinsAmyandmay2Script
TwinsAmyandmay2Script:
talkaftercancel
@@ -115,23 +83,7 @@ TwinsAmyandmay2Script:
end
TrainerBug_catcherBug_catcher_benny:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_BENNY
-
- ; trainer group && trainer id
- db BUG_CATCHER, BUG_CATCHER_BENNY
-
- ; text when seen
- dw Bug_catcherBug_catcher_bennySeenText
-
- ; text when trainer beaten
- dw Bug_catcherBug_catcher_bennyBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherBug_catcher_bennyScript
+ trainer EVENT_BEAT_BUG_CATCHER_BENNY, BUG_CATCHER, BUG_CATCHER_BENNY, Bug_catcherBug_catcher_bennySeenText, Bug_catcherBug_catcher_bennyBeatenText, $0000, Bug_catcherBug_catcher_bennyScript
Bug_catcherBug_catcher_bennyScript:
talkaftercancel
@@ -142,23 +94,7 @@ Bug_catcherBug_catcher_bennyScript:
end
TrainerBug_catcherAl:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_AL
-
- ; trainer group && trainer id
- db BUG_CATCHER, AL
-
- ; text when seen
- dw Bug_catcherAlSeenText
-
- ; text when trainer beaten
- dw Bug_catcherAlBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherAlScript
+ trainer EVENT_BEAT_BUG_CATCHER_AL, BUG_CATCHER, AL, Bug_catcherAlSeenText, Bug_catcherAlBeatenText, $0000, Bug_catcherAlScript
Bug_catcherAlScript:
talkaftercancel
@@ -169,23 +105,7 @@ Bug_catcherAlScript:
end
TrainerBug_catcherJosh:
- ; bit/flag number
- dw EVENT_BEAT_BUG_CATCHER_JOSH
-
- ; trainer group && trainer id
- db BUG_CATCHER, JOSH
-
- ; text when seen
- dw Bug_catcherJoshSeenText
-
- ; text when trainer beaten
- dw Bug_catcherJoshBeatenText
-
- ; script when lost
- dw $0000
-
- ; script when talk again
- dw Bug_catcherJoshScript
+ trainer EVENT_BEAT_BUG_CATCHER_JOSH, BUG_CATCHER, JOSH, Bug_catcherJoshSeenText, Bug_catcherJoshBeatenText, $0000, Bug_catcherJoshScript
Bug_catcherJoshScript:
talkaftercancel
@@ -436,25 +356,25 @@ AzaleaGym_MapEventHeader:
; filler
db 0, 0
- ; warps
+.Warps:
db 2
warp_def $f, $4, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
warp_def $f, $5, 5, GROUP_AZALEA_TOWN, MAP_AZALEA_TOWN
- ; xy triggers
+.XYTriggers:
db 0
- ; signposts
+.Signposts:
db 2
- signpost 13, 3, $0, AzaleaGymStatue
- signpost 13, 6, $0, AzaleaGymStatue
+ signpost 13, 3, SIGNPOST_READ, AzaleaGymStatue
+ signpost 13, 6, SIGNPOST_READ, AzaleaGymStatue
- ; people-events
+.PersonEvents:
db 7
- person_event SPRITE_BUGSY, 11, 9, $3, $0, 255, 255, $a0, 0, BugsyScript_0x18ec1e, -1
- person_event SPRITE_BUG_CATCHER, 7, 9, $a, $0, 255, 255, $b2, 2, TrainerBug_catcherBug_catcher_benny, -1
- person_event SPRITE_BUG_CATCHER, 12, 12, $6, $0, 255, 255, $b2, 3, TrainerBug_catcherAl, -1
- person_event SPRITE_BUG_CATCHER, 6, 4, $6, $0, 255, 255, $b2, 3, TrainerBug_catcherJosh, -1
- person_event SPRITE_TWIN, 14, 8, $6, $0, 255, 255, $82, 1, TrainerTwinsAmyandmay1, -1
- person_event SPRITE_TWIN, 14, 9, $6, $0, 255, 255, $82, 1, TrainerTwinsAmyandmay2, -1
- person_event SPRITE_GYM_GUY, 17, 11, $6, $0, 255, 255, $80, 0, AzaleaGymGuyScript, -1
+ person_event SPRITE_BUGSY, 11, 9, OW_DOWN | $3, $0, -1, -1, (PAL_OW_GREEN << 4) | $80, 0, BugsyScript_0x18ec1e, -1
+ person_event SPRITE_BUG_CATCHER, 7, 9, OW_LEFT | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 2, TrainerBug_catcherBug_catcher_benny, -1
+ person_event SPRITE_BUG_CATCHER, 12, 12, OW_UP | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 3, TrainerBug_catcherAl, -1
+ person_event SPRITE_BUG_CATCHER, 6, 4, OW_UP | $2, $0, -1, -1, (PAL_OW_BROWN << 4) | $82, 3, TrainerBug_catcherJosh, -1
+ person_event SPRITE_TWIN, 14, 8, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerTwinsAmyandmay1, -1
+ person_event SPRITE_TWIN, 14, 9, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $82, 1, TrainerTwinsAmyandmay2, -1
+ person_event SPRITE_GYM_GUY, 17, 11, OW_UP | $2, $0, -1, -1, (PAL_OW_RED << 4) | $80, 0, AzaleaGymGuyScript, -1