pokecrystal-board/maps/MahoganyTown.asm

272 lines
5.9 KiB
NASM
Raw Normal View History

DEF MAHOGANYTOWN_RAGECANDYBAR_PRICE EQU 300
object_const_def
2015-11-26 21:22:14 -08:00
const MAHOGANYTOWN_POKEFAN_M
const MAHOGANYTOWN_GRAMPS
const MAHOGANYTOWN_FISHER
const MAHOGANYTOWN_LASS
MahoganyTown_MapScripts:
def_scene_scripts
scene_script .DummyScene0, SCENE_MAHOGANYTOWN_TRY_RAGECANDYBAR
scene_script .DummyScene1, SCENE_MAHOGANYTOWN_NOOP
def_callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.DummyScene0:
end
.DummyScene1:
end
.FlyPoint:
2015-06-25 22:30:16 -07:00
setflag ENGINE_FLYPOINT_MAHOGANY
endcallback
2018-03-01 10:18:51 -08:00
MahoganyTownTryARageCandyBarScript:
2015-11-26 21:22:14 -08:00
showemote EMOTE_SHOCK, MAHOGANYTOWN_POKEFAN_M, 15
applymovement MAHOGANYTOWN_POKEFAN_M, MahoganyTownRageCandyBarMerchantBlocksYouMovement
2015-11-26 21:22:14 -08:00
follow PLAYER, MAHOGANYTOWN_POKEFAN_M
applymovement PLAYER, MahoganyTownPlayerStepLeftMovement
stopfollow
turnobject PLAYER, RIGHT
2018-03-01 10:18:51 -08:00
scall RageCandyBarMerchantScript
applymovement MAHOGANYTOWN_POKEFAN_M, MahoganyTownRageCandyBarMerchantReturnsMovement
end
2018-03-01 10:18:51 -08:00
MahoganyTownPokefanMScript:
faceplayer
2018-03-01 10:18:51 -08:00
RageCandyBarMerchantScript:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
2018-03-01 10:18:51 -08:00
iftrue .ClearedRocketHideout
scall .SellRageCandyBars
end
2018-03-01 10:18:51 -08:00
.ClearedRocketHideout:
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantSoldOutText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
.SellRageCandyBars:
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantTryOneText
special PlaceMoneyTopRight
yesorno
2018-03-01 10:18:51 -08:00
iffalse .Refused
checkmoney YOUR_MONEY, MAHOGANYTOWN_RAGECANDYBAR_PRICE
2018-03-01 10:18:51 -08:00
ifequal HAVE_LESS, .NotEnoughMoney
2015-11-04 17:20:14 -08:00
giveitem RAGECANDYBAR
2018-03-01 10:18:51 -08:00
iffalse .NoRoom
2015-11-25 07:16:29 -08:00
waitsfx
playsound SFX_TRANSACTION
takemoney YOUR_MONEY, MAHOGANYTOWN_RAGECANDYBAR_PRICE
special PlaceMoneyTopRight
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantSavorItText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
.NotEnoughMoney:
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantNotEnoughMoneyText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
.Refused:
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantRefusedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
.NoRoom:
2018-08-19 10:56:41 -07:00
writetext RageCandyBarMerchantNoRoomText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
MahoganyTownGrampsScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
2018-03-01 10:18:51 -08:00
iftrue .ClearedRocketHideout
writetext MahoganyTownGrampsText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 10:18:51 -08:00
.ClearedRocketHideout:
writetext MahoganyTownGrampsText_ClearedRocketHideout
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2017-12-17 16:48:04 -08:00
MahoganyTownFisherScript:
jumptextfaceplayer MahoganyTownFisherText
2017-12-17 16:48:04 -08:00
MahoganyTownLassScript:
jumptextfaceplayer MahoganyTownLassText
2015-06-25 21:01:08 -07:00
MahoganyTownSign:
jumptext MahoganyTownSignText
2015-06-25 21:01:08 -07:00
MahoganyTownRagecandybarSign:
jumptext MahoganyTownRagecandybarSignText
2015-06-25 21:01:08 -07:00
MahoganyGymSign:
jumptext MahoganyGymSignText
MahoganyTownPokecenterSign:
jumpstd PokecenterSignScript
MahoganyTownCollideDownFaceLeftMovement: ; unreferenced
2016-05-14 10:46:14 -07:00
step DOWN
big_step UP
turn_head DOWN
MahoganyTownPlayerStepLeftMovement:
2016-05-14 10:46:14 -07:00
step LEFT
step_end
MahoganyTownRageCandyBarMerchantBlocksYouMovement:
2016-05-14 10:46:14 -07:00
step RIGHT
step DOWN
turn_head LEFT
step_end
MahoganyTownRageCandyBarMerchantReturnsMovement:
2016-05-14 10:46:14 -07:00
step UP
turn_head DOWN
step_end
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantTryOneText:
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
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantSavorItText:
text "Good! Savor it!"
done
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantNotEnoughMoneyText:
text "You don't have"
line "enough money."
done
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantRefusedText:
text "Oh, fine then…"
done
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantNoRoomText:
text "You don't have"
line "room for this."
done
2018-08-19 10:56:41 -07:00
RageCandyBarMerchantSoldOutText:
text "RAGECANDYBAR's"
line "sold out."
para "I'm packing up."
line "Don't bother me,"
cont "kiddo."
done
2018-03-01 10:18:51 -08:00
MahoganyTownGrampsText:
text "Are you off to see"
line "the GYARADOS ram-"
cont "page at the LAKE?"
done
2018-03-01 10:18:51 -08:00
MahoganyTownGrampsText_ClearedRocketHideout:
text "MAGIKARP have"
line "returned to LAKE"
cont "OF RAGE."
para "That should be"
line "good news for the"
cont "anglers there."
done
2017-12-17 16:48:04 -08:00
MahoganyTownFisherText:
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
2017-12-17 16:48:04 -08:00
MahoganyTownLassText:
text "Visit Grandma's"
line "shop. She sells"
para "stuff that nobody"
line "else has."
done
2015-06-25 21:01:08 -07:00
MahoganyTownSignText:
text "MAHOGANY TOWN"
para "Welcome to the"
line "Home of the Ninja"
done
2015-06-25 21:01:08 -07:00
MahoganyTownRagecandybarSignText:
text "While visiting"
line "MAHOGANY TOWN, try"
cont "a RAGECANDYBAR!"
done
2015-06-25 21:01:08 -07:00
MahoganyGymSignText:
text "MAHOGANY TOWN"
line "#MON GYM"
cont "LEADER: PRYCE"
para "The Teacher of"
line "Winter's Harshness"
done
MahoganyTown_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08: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-01 18:54:00 -08:00
warp_event 15, 13, MAHOGANY_POKECENTER_1F, 1
2018-02-01 19:22:07 -08:00
warp_event 9, 1, ROUTE_43_MAHOGANY_GATE, 3
def_coord_events
coord_event 19, 8, SCENE_MAHOGANYTOWN_TRY_RAGECANDYBAR, MahoganyTownTryARageCandyBarScript
coord_event 19, 9, SCENE_MAHOGANYTOWN_TRY_RAGECANDYBAR, MahoganyTownTryARageCandyBarScript
def_bg_events
2018-02-01 19:22:07 -08:00
bg_event 1, 5, BGEVENT_READ, MahoganyTownSign
bg_event 9, 7, BGEVENT_READ, MahoganyTownRagecandybarSign
bg_event 3, 13, BGEVENT_READ, MahoganyGymSign
bg_event 16, 13, BGEVENT_READ, MahoganyTownPokecenterSign
def_object_events
2018-03-01 10:18:51 -08: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-01 19:22:07 -08: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