2019-02-16 18:19:39 +00:00
|
|
|
MAHOGANYTOWN_RAGECANDYBAR_PRICE EQU 300
|
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
object_const_def
|
2015-11-27 05:22:14 +00:00
|
|
|
const MAHOGANYTOWN_POKEFAN_M
|
|
|
|
const MAHOGANYTOWN_GRAMPS
|
|
|
|
const MAHOGANYTOWN_FISHER
|
|
|
|
const MAHOGANYTOWN_LASS
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
MahoganyTown_MapScripts:
|
2020-07-24 13:49:26 +00:00
|
|
|
def_scene_scripts
|
2018-02-01 17:40:58 +00:00
|
|
|
scene_script .DummyScene0 ; SCENE_DEFAULT
|
2018-02-01 20:06:06 +00:00
|
|
|
scene_script .DummyScene1 ; SCENE_FINISHED
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_callbacks
|
2018-01-13 05:47:38 +00:00
|
|
|
callback MAPCALLBACK_NEWMAP, .FlyPoint
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.DummyScene0:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
.DummyScene1:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.FlyPoint:
|
2015-06-26 05:30:16 +00:00
|
|
|
setflag ENGINE_FLYPOINT_MAHOGANY
|
2020-07-17 12:37:03 +00:00
|
|
|
endcallback
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
MahoganyTownTryARageCandyBarScript:
|
2015-11-27 05:22:14 +00:00
|
|
|
showemote EMOTE_SHOCK, MAHOGANYTOWN_POKEFAN_M, 15
|
2020-10-04 22:15:38 +00:00
|
|
|
applymovement MAHOGANYTOWN_POKEFAN_M, MahoganyTownRageCandyBarMerchantBlocksYouMovement
|
2015-11-27 05:22:14 +00:00
|
|
|
follow PLAYER, MAHOGANYTOWN_POKEFAN_M
|
2020-10-04 22:15:38 +00:00
|
|
|
applymovement PLAYER, MahoganyTownPlayerStepLeftMovement
|
2013-02-17 06:54:07 +00:00
|
|
|
stopfollow
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject PLAYER, RIGHT
|
2018-03-01 18:18:51 +00:00
|
|
|
scall RageCandyBarMerchantScript
|
2020-10-04 22:15:38 +00:00
|
|
|
applymovement MAHOGANYTOWN_POKEFAN_M, MahoganyTownRageCandyBarMerchantReturnsMovement
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
MahoganyTownPokefanMScript:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2018-03-01 18:18:51 +00:00
|
|
|
RageCandyBarMerchantScript:
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
|
2018-03-01 18:18:51 +00:00
|
|
|
iftrue .ClearedRocketHideout
|
|
|
|
scall .SellRageCandyBars
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.ClearedRocketHideout:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantSoldOutText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.SellRageCandyBars:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantTryOneText
|
2018-01-24 16:17:05 +00:00
|
|
|
special PlaceMoneyTopRight
|
2013-02-17 06:54:07 +00:00
|
|
|
yesorno
|
2018-03-01 18:18:51 +00:00
|
|
|
iffalse .Refused
|
2019-02-16 18:19:39 +00:00
|
|
|
checkmoney YOUR_MONEY, MAHOGANYTOWN_RAGECANDYBAR_PRICE
|
2018-03-01 18:18:51 +00:00
|
|
|
ifequal HAVE_LESS, .NotEnoughMoney
|
2015-11-05 01:20:14 +00:00
|
|
|
giveitem RAGECANDYBAR
|
2018-03-01 18:18:51 +00:00
|
|
|
iffalse .NoRoom
|
2015-11-25 15:16:29 +00:00
|
|
|
waitsfx
|
2014-04-30 10:04:35 +00:00
|
|
|
playsound SFX_TRANSACTION
|
2019-02-16 18:19:39 +00:00
|
|
|
takemoney YOUR_MONEY, MAHOGANYTOWN_RAGECANDYBAR_PRICE
|
2018-01-24 16:17:05 +00:00
|
|
|
special PlaceMoneyTopRight
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantSavorItText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.NotEnoughMoney:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantNotEnoughMoneyText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.Refused:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantRefusedText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.NoRoom:
|
2018-08-19 17:56:41 +00:00
|
|
|
writetext RageCandyBarMerchantNoRoomText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
MahoganyTownGrampsScript:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
|
2018-03-01 18:18:51 +00:00
|
|
|
iftrue .ClearedRocketHideout
|
|
|
|
writetext MahoganyTownGrampsText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
.ClearedRocketHideout:
|
|
|
|
writetext MahoganyTownGrampsText_ClearedRocketHideout
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2017-12-18 00:48:04 +00:00
|
|
|
MahoganyTownFisherScript:
|
|
|
|
jumptextfaceplayer MahoganyTownFisherText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 00:48:04 +00:00
|
|
|
MahoganyTownLassScript:
|
|
|
|
jumptextfaceplayer MahoganyTownLassText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyTownSign:
|
|
|
|
jumptext MahoganyTownSignText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyTownRagecandybarSign:
|
|
|
|
jumptext MahoganyTownRagecandybarSignText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyGymSign:
|
|
|
|
jumptext MahoganyGymSignText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-11 03:34:42 +00:00
|
|
|
MahoganyTownPokecenterSign:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd PokecenterSignScript
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-10-04 22:15:38 +00:00
|
|
|
MahoganyTownCollideDownFaceLeftMovement: ; unreferenced
|
2016-05-14 17:46:14 +00:00
|
|
|
step DOWN
|
|
|
|
big_step UP
|
|
|
|
turn_head DOWN
|
2020-10-04 22:15:38 +00:00
|
|
|
MahoganyTownPlayerStepLeftMovement:
|
2016-05-14 17:46:14 +00:00
|
|
|
step LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
step_end
|
|
|
|
|
2020-10-04 22:15:38 +00:00
|
|
|
MahoganyTownRageCandyBarMerchantBlocksYouMovement:
|
2016-05-14 17:46:14 +00:00
|
|
|
step RIGHT
|
|
|
|
step DOWN
|
|
|
|
turn_head LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
step_end
|
|
|
|
|
2020-10-04 22:15:38 +00:00
|
|
|
MahoganyTownRageCandyBarMerchantReturnsMovement:
|
2016-05-14 17:46:14 +00:00
|
|
|
step UP
|
|
|
|
turn_head DOWN
|
2013-02-17 06:54:07 +00:00
|
|
|
step_end
|
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantTryOneText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Hiya, kid!"
|
|
|
|
|
|
|
|
para "I see you're new"
|
|
|
|
line "in MAHOGANY TOWN."
|
|
|
|
|
|
|
|
para "Since you're new,"
|
|
|
|
line "you should try a"
|
|
|
|
|
|
|
|
para "yummy RAGECANDY-"
|
|
|
|
line "BAR!"
|
|
|
|
|
|
|
|
para "Right now, it can"
|
|
|
|
line "be yours for just"
|
|
|
|
cont "¥300! Want one?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantSavorItText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Good! Savor it!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantNotEnoughMoneyText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "You don't have"
|
|
|
|
line "enough money."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantRefusedText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Oh, fine then…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantNoRoomText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "You don't have"
|
|
|
|
line "room for this."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-08-19 17:56:41 +00:00
|
|
|
RageCandyBarMerchantSoldOutText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "RAGECANDYBAR's"
|
|
|
|
line "sold out."
|
|
|
|
|
|
|
|
para "I'm packing up."
|
|
|
|
line "Don't bother me,"
|
|
|
|
cont "kiddo."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
MahoganyTownGrampsText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Are you off to see"
|
|
|
|
line "the GYARADOS ram-"
|
|
|
|
cont "page at the LAKE?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-03-01 18:18:51 +00:00
|
|
|
MahoganyTownGrampsText_ClearedRocketHideout:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MAGIKARP have"
|
|
|
|
line "returned to LAKE"
|
|
|
|
cont "OF RAGE."
|
|
|
|
|
|
|
|
para "That should be"
|
|
|
|
line "good news for the"
|
|
|
|
cont "anglers there."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 00:48:04 +00:00
|
|
|
MahoganyTownFisherText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Since you came"
|
|
|
|
line "this far, take the"
|
|
|
|
|
|
|
|
para "time to do some"
|
|
|
|
line "sightseeing."
|
|
|
|
|
|
|
|
para "You should head"
|
|
|
|
line "north and check"
|
|
|
|
|
|
|
|
para "out LAKE OF RAGE"
|
|
|
|
line "right now."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 00:48:04 +00:00
|
|
|
MahoganyTownLassText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Visit Grandma's"
|
|
|
|
line "shop. She sells"
|
|
|
|
|
|
|
|
para "stuff that nobody"
|
|
|
|
line "else has."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyTownSignText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MAHOGANY TOWN"
|
|
|
|
|
|
|
|
para "Welcome to the"
|
|
|
|
line "Home of the Ninja"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyTownRagecandybarSignText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "While visiting"
|
|
|
|
line "MAHOGANY TOWN, try"
|
|
|
|
cont "a RAGECANDYBAR!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
MahoganyGymSignText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "MAHOGANY TOWN"
|
|
|
|
line "#MON GYM"
|
|
|
|
cont "LEADER: PRYCE"
|
|
|
|
|
|
|
|
para "The Teacher of"
|
|
|
|
line "Winter's Harshness"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
MahoganyTown_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_warp_events
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 11, 7, MAHOGANY_MART_1F, 1
|
|
|
|
warp_event 17, 7, MAHOGANY_RED_GYARADOS_SPEECH_HOUSE, 1
|
|
|
|
warp_event 6, 13, MAHOGANY_GYM, 1
|
2018-02-02 02:54:00 +00:00
|
|
|
warp_event 15, 13, MAHOGANY_POKECENTER_1F, 1
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 9, 1, ROUTE_43_MAHOGANY_GATE, 3
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_coord_events
|
2018-03-01 18:18:51 +00:00
|
|
|
coord_event 19, 8, SCENE_DEFAULT, MahoganyTownTryARageCandyBarScript
|
|
|
|
coord_event 19, 9, SCENE_DEFAULT, MahoganyTownTryARageCandyBarScript
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_bg_events
|
2018-02-02 03:22:07 +00:00
|
|
|
bg_event 1, 5, BGEVENT_READ, MahoganyTownSign
|
|
|
|
bg_event 9, 7, BGEVENT_READ, MahoganyTownRagecandybarSign
|
|
|
|
bg_event 3, 13, BGEVENT_READ, MahoganyGymSign
|
2017-12-28 19:31:25 +00:00
|
|
|
bg_event 16, 13, BGEVENT_READ, MahoganyTownPokecenterSign
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_object_events
|
2018-03-01 18:18:51 +00:00
|
|
|
object_event 19, 8, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MahoganyTownPokefanMScript, EVENT_MAHOGANY_TOWN_POKEFAN_M_BLOCKS_EAST
|
|
|
|
object_event 6, 9, SPRITE_GRAMPS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MahoganyTownGrampsScript, -1
|
2018-02-02 03:22:07 +00:00
|
|
|
object_event 6, 14, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, MahoganyTownFisherScript, EVENT_MAHOGANY_TOWN_POKEFAN_M_BLOCKS_GYM
|
|
|
|
object_event 12, 8, SPRITE_LASS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MahoganyTownLassScript, EVENT_MAHOGANY_MART_OWNERS
|