summaryrefslogtreecommitdiff
path: root/data/maps/RustboroCity_Gym
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/RustboroCity_Gym')
-rw-r--r--data/maps/RustboroCity_Gym/border.binbin8 -> 0 bytes
-rw-r--r--data/maps/RustboroCity_Gym/events.inc16
-rw-r--r--data/maps/RustboroCity_Gym/header.inc4
-rw-r--r--data/maps/RustboroCity_Gym/map.bin2
-rw-r--r--data/maps/RustboroCity_Gym/scripts.inc79
-rw-r--r--data/maps/RustboroCity_Gym/text.inc111
6 files changed, 208 insertions, 4 deletions
diff --git a/data/maps/RustboroCity_Gym/border.bin b/data/maps/RustboroCity_Gym/border.bin
deleted file mode 100644
index f496f458e..000000000
--- a/data/maps/RustboroCity_Gym/border.bin
+++ /dev/null
Binary files differ
diff --git a/data/maps/RustboroCity_Gym/events.inc b/data/maps/RustboroCity_Gym/events.inc
new file mode 100644
index 000000000..97b5a6627
--- /dev/null
+++ b/data/maps/RustboroCity_Gym/events.inc
@@ -0,0 +1,16 @@
+RustboroCity_Gym_EventObjects:: @ 8388998
+ object_event 1, EVENT_OBJ_GFX_ROXANNE, 0, 5, 2, 3, 8, 0, 0, 0, 0, RustboroCity_Gym_EventScript_1578D9, 0
+ object_event 2, EVENT_OBJ_GFX_YOUNGSTER, 0, 7, 12, 3, 9, 0, 0, 1, 3, RustboroCity_Gym_EventScript_157960, 0
+ object_event 3, EVENT_OBJ_GFX_YOUNGSTER, 0, 3, 7, 3, 10, 0, 0, 1, 3, RustboroCity_Gym_EventScript_157977, 0
+ object_event 4, EVENT_OBJ_GFX_MAN_2, 0, 3, 17, 3, 8, 0, 0, 0, 0, RustboroCity_Gym_EventScript_15798E, 0
+
+RustboroCity_Gym_MapWarps:: @ 83889F8
+ warp_def 5, 18, 0, 0, MAP_RUSTBORO_CITY
+ warp_def 6, 18, 0, 0, MAP_RUSTBORO_CITY
+
+RustboroCity_Gym_MapBGEvents:: @ 8388A08
+ bg_event 2, 17, 0, 1, 0, RustboroCity_Gym_EventScript_1579AD
+ bg_event 8, 17, 0, 1, 0, RustboroCity_Gym_EventScript_1579BD
+
+RustboroCity_Gym_MapEvents:: @ 8388A20
+ map_events RustboroCity_Gym_EventObjects, RustboroCity_Gym_MapWarps, 0x0, RustboroCity_Gym_MapBGEvents
diff --git a/data/maps/RustboroCity_Gym/header.inc b/data/maps/RustboroCity_Gym/header.inc
index 5d18e933b..d98b04da8 100644
--- a/data/maps/RustboroCity_Gym/header.inc
+++ b/data/maps/RustboroCity_Gym/header.inc
@@ -1,9 +1,9 @@
RustboroCity_Gym:: @ 8306280
- .4byte RustboroCity_Gym_MapAttributes
+ .4byte RustboroCity_Gym_Layout
.4byte RustboroCity_Gym_MapEvents
.4byte RustboroCity_Gym_MapScripts
.4byte 0x0
- .2byte BGM_GIM
+ .2byte MUS_GIM
.2byte 94
.byte 10
.byte 0
diff --git a/data/maps/RustboroCity_Gym/map.bin b/data/maps/RustboroCity_Gym/map.bin
deleted file mode 100644
index bc69d8879..000000000
--- a/data/maps/RustboroCity_Gym/map.bin
+++ /dev/null
@@ -1,2 +0,0 @@
-         
-%262222262  2726$222$622 22222222222"2&2&2!2222 2!22-2)(.222)*/21)*%22222)*/21)062!2222)*/215.222./211%2"2#2222"2'26241/2)*/222+*1/2)*/22222)*1/2)*/222 2&23*,/2./222. 2722272222222 22222222222 222222222 222222222 \ No newline at end of file
diff --git a/data/maps/RustboroCity_Gym/scripts.inc b/data/maps/RustboroCity_Gym/scripts.inc
new file mode 100644
index 000000000..307617e50
--- /dev/null
+++ b/data/maps/RustboroCity_Gym/scripts.inc
@@ -0,0 +1,79 @@
+RustboroCity_Gym_MapScripts:: @ 81578D8
+ .byte 0
+
+RustboroCity_Gym_EventScript_1578D9:: @ 81578D9
+ trainerbattle 1, OPPONENT_ROXANNE, 0, RustboroCity_Gym_Text_183EE5, RustboroCity_Gym_Text_183FC4, RustboroCity_Gym_EventScript_1578FE
+ goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_15793C
+ msgbox RustboroCity_Gym_Text_184252, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1578FE:: @ 81578FE
+ message RustboroCity_Gym_Text_1840AB
+ waitmessage
+ call RustboroCity_Gym_EventScript_1A02C5
+ msgbox RustboroCity_Gym_Text_1840D5, 4
+ setflag FLAG_DEFEATED_RUSTBORO_GYM
+ setflag FLAG_BADGE01_GET
+ setvar VAR_RUSTBORO_STATE, 1
+ addvar VAR_PETALBURG_GYM_STATE, 1
+ setvar VAR_SPECIAL_8, 1
+ call RustboroCity_Gym_EventScript_1A01C0
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_eq RustboroCity_Gym_EventScript_1A00FB
+ goto RustboroCity_Gym_EventScript_15793C
+ end
+
+RustboroCity_Gym_EventScript_15793C:: @ 815793C
+ giveitem_std ITEM_TM39_ROCK_TOMB
+ compare RESULT, 0
+ goto_if_eq RustboroCity_Gym_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM39
+ msgbox RustboroCity_Gym_Text_184170, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_157960:: @ 8157960
+ trainerbattle 0, OPPONENT_JOSH, 0, RustboroCity_Gym_Text_183D99, RustboroCity_Gym_Text_183DDD
+ msgbox RustboroCity_Gym_Text_183DF9, 6
+ end
+
+RustboroCity_Gym_EventScript_157977:: @ 8157977
+ trainerbattle 0, OPPONENT_TOMMY, 0, RustboroCity_Gym_Text_183E38, RustboroCity_Gym_Text_183E78
+ msgbox RustboroCity_Gym_Text_183E98, 6
+ end
+
+RustboroCity_Gym_EventScript_15798E:: @ 815798E
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_1579A3
+ msgbox RustboroCity_Gym_Text_183A4B, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1579A3:: @ 81579A3
+ msgbox RustboroCity_Gym_Text_183C90, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1579AD:: @ 81579AD
+ lockall
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_1579CD
+ goto RustboroCity_Gym_EventScript_1579D7
+ end
+
+RustboroCity_Gym_EventScript_1579BD:: @ 81579BD
+ lockall
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_1579CD
+ goto RustboroCity_Gym_EventScript_1579D7
+ end
+
+RustboroCity_Gym_EventScript_1579CD:: @ 81579CD
+ msgbox RustboroCity_Gym_Text_1842E6, 4
+ releaseall
+ end
+
+RustboroCity_Gym_EventScript_1579D7:: @ 81579D7
+ msgbox RustboroCity_Gym_Text_1842CC, 4
+ releaseall
+ end
diff --git a/data/maps/RustboroCity_Gym/text.inc b/data/maps/RustboroCity_Gym/text.inc
new file mode 100644
index 000000000..7bb737097
--- /dev/null
+++ b/data/maps/RustboroCity_Gym/text.inc
@@ -0,0 +1,111 @@
+RustboroCity_Gym_Text_183A4B:: @ 8183A4B
+ .string "Yo, how’s it going?\p"
+ .string "Listen, my friend!\n"
+ .string "Would you like to become the CHAMPION?\p"
+ .string "I’m no TRAINER, not me, but I can\n"
+ .string "sure give you winning advice.\p"
+ .string "That’s settled, then! We’ll aim for the\n"
+ .string "POKéMON CHAMPIONSHIP together!\p"
+ .string "It’s your job as a TRAINER to collect\n"
+ .string "GYM BADGES, am I right?\p"
+ .string "But GYM LEADERS aren’t pushovers!\p"
+ .string "And that’s where I come in!\n"
+ .string "I’m here to provide expert advice!\p"
+ .string "ROXANNE, the GYM LEADER, is a user\n"
+ .string "of ROCK-type POKéMON.\p"
+ .string "The ROCK type is very durable, but\n"
+ .string "it can’t stand WATER-type and\l"
+ .string "GRASS-type moves.\p"
+ .string "Come see me afterwards, if you beat\n"
+ .string "the GYM LEADER.\p"
+ .string "Well, go for it!$"
+
+RustboroCity_Gym_Text_183C90:: @ 8183C90
+ .string "Whoa! What a breathtaking victory!\n"
+ .string "My cheering must’ve worked!\p"
+ .string "Great!\n"
+ .string "Check your TRAINER CARD.\p"
+ .string "The STONE BADGE you got should be\n"
+ .string "properly recorded on it.\p"
+ .string "In other words...\p"
+ .string "You’ve climbed the first step on\n"
+ .string "the stairs to the CHAMPIONSHIP!\p"
+ .string "That’s got to feel awesome!$"
+
+RustboroCity_Gym_Text_183D99:: @ 8183D99
+ .string "Don’t take us GYM TRAINERS lightly!\n"
+ .string "I’ll show you why we’re better!$"
+
+RustboroCity_Gym_Text_183DDD:: @ 8183DDD
+ .string "You were too good for me...$"
+
+RustboroCity_Gym_Text_183DF9:: @ 8183DF9
+ .string "You haven’t seen anything of the ROCK\n"
+ .string "type’s terrifying power!$"
+
+RustboroCity_Gym_Text_183E38:: @ 8183E38
+ .string "If you can’t beat me, you won’t stand\n"
+ .string "a chance against ROXANNE!$"
+
+RustboroCity_Gym_Text_183E78:: @ 8183E78
+ .string "Wow! You’ve got some potential!$"
+
+RustboroCity_Gym_Text_183E98:: @ 8183E98
+ .string "ROXANNE is stronger than me by\n"
+ .string "several times.\p"
+ .string "You’d better be on your guard!$"
+
+RustboroCity_Gym_Text_183EE5:: @ 8183EE5
+ .string "Hello, I am ROXANNE, the RUSTBORO\n"
+ .string "POKéMON GYM LEADER.\p"
+ .string "I became a GYM LEADER so that I may\n"
+ .string "apply what I learned at the POKéMON\l"
+ .string "TRAINER’S SCHOOL in battle.\p"
+ .string "Would you kindly demonstrate how you\n"
+ .string "battle, and with which POKéMON?$"
+
+RustboroCity_Gym_Text_183FC4:: @ 8183FC4
+ .string "So...\n"
+ .string "I lost...\p"
+ .string "It seems that I still have much more\n"
+ .string "to learn...\p"
+ .string "I understand.\p"
+ .string "The POKéMON LEAGUE’s rules state\n"
+ .string "that TRAINERS are to be given this\l"
+ .string "if they defeat a GYM LEADER.\p"
+ .string "Please accept the official POKéMON\n"
+ .string "LEAGUE STONE BADGE.$"
+
+RustboroCity_Gym_Text_1840AB:: @ 81840AB
+ .string "{PLAYER} received the STONE BADGE\n"
+ .string "from ROXANNE.$"
+
+RustboroCity_Gym_Text_1840D5:: @ 81840D5
+ .string "The STONE BADGE heightens the ATTACK\n"
+ .string "power of your POKéMON.\p"
+ .string "It also enables them to use the HM move\n"
+ .string "CUT outside of battle.\p"
+ .string "Please take this with you, too.$"
+
+RustboroCity_Gym_Text_184170:: @ 8184170
+ .string "That TM39 contains ROCK TOMB.\p"
+ .string "It not only inflicts damage by dropping\n"
+ .string "rocks, it also lowers SPEED.\p"
+ .string "If you use a TM, it instantly teaches\n"
+ .string "the move to a POKéMON.\p"
+ .string "Remember, a TM can be used only once,\n"
+ .string "so think before you use it.$"
+
+RustboroCity_Gym_Text_184252:: @ 8184252
+ .string "Since you are so strong, you should\n"
+ .string "challenge other GYM LEADERS.\p"
+ .string "By battling many TRAINERS, you should\n"
+ .string "learn many things.$"
+
+RustboroCity_Gym_Text_1842CC:: @ 81842CC
+ .string "RUSTBORO CITY POKéMON GYM$"
+
+RustboroCity_Gym_Text_1842E6:: @ 81842E6
+ .string "RUSTBORO CITY POKéMON GYM\p"
+ .string "ROXANNE’S CERTIFIED TRAINERS:\n"
+ .string "{PLAYER}$"