pokecrystal/maps/MahoganyTown.asm

270 lines
5.6 KiB
NASM
Raw Normal View History

2018-01-31 16:38:45 +00:00
const_def 2 ; object constants
2015-11-27 05:22:14 +00:00
const MAHOGANYTOWN_POKEFAN_M
const MAHOGANYTOWN_GRAMPS
const MAHOGANYTOWN_FISHER
const MAHOGANYTOWN_LASS
MahoganyTown_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_DEFAULT
scene_script .DummyScene1 ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.DummyScene0:
end
.DummyScene1:
end
.FlyPoint:
2015-06-26 05:30:16 +00:00
setflag ENGINE_FLYPOINT_MAHOGANY
return
2018-03-01 18:18:51 +00:00
MahoganyTownTryARageCandyBarScript:
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, MAHOGANYTOWN_POKEFAN_M, 15
applymovement MAHOGANYTOWN_POKEFAN_M, MovementData_0x1900a9
follow PLAYER, MAHOGANYTOWN_POKEFAN_M
applymovement PLAYER, MovementData_0x1900a7
stopfollow
turnobject PLAYER, RIGHT
2018-03-01 18:18:51 +00:00
scall RageCandyBarMerchantScript
2015-11-27 05:22:14 +00:00
applymovement MAHOGANYTOWN_POKEFAN_M, MovementData_0x1900ad
end
2018-03-01 18:18:51 +00:00
MahoganyTownPokefanMScript:
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
end
2018-03-01 18:18:51 +00:00
.ClearedRocketHideout:
2015-12-09 23:25:44 +00:00
opentext
2018-03-01 18:18:51 +00:00
writetext RageCandyBarMerchantText_SoldOut
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 18:18:51 +00:00
.SellRageCandyBars:
2015-12-09 23:25:44 +00:00
opentext
2018-03-01 18:18:51 +00:00
writetext RageCandyBarMerchantText_TryOne
special PlaceMoneyTopRight
yesorno
2018-03-01 18:18:51 +00:00
iffalse .Refused
2018-01-12 06:40:20 +00:00
checkmoney YOUR_MONEY, 300
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
playsound SFX_TRANSACTION
2018-01-12 06:40:20 +00:00
takemoney YOUR_MONEY, 300
special PlaceMoneyTopRight
2018-03-01 18:18:51 +00:00
writetext RageCandyBarMerchantText_SavorIt
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 18:18:51 +00:00
.NotEnoughMoney:
writetext RageCandyBarMerchantText_NotEnoughMoney
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 18:18:51 +00:00
.Refused:
writetext RageCandyBarMerchantText_Refused
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 18:18:51 +00:00
.NoRoom:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x190188
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 18:18:51 +00:00
MahoganyTownGrampsScript:
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
closetext
end
2018-03-01 18:18:51 +00:00
.ClearedRocketHideout:
writetext MahoganyTownGrampsText_ClearedRocketHideout
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-18 00:48:04 +00:00
MahoganyTownFisherScript:
jumptextfaceplayer MahoganyTownFisherText
2017-12-18 00:48:04 +00:00
MahoganyTownLassScript:
jumptextfaceplayer MahoganyTownLassText
2015-06-26 04:01:08 +00:00
MahoganyTownSign:
jumptext MahoganyTownSignText
2015-06-26 04:01:08 +00:00
MahoganyTownRagecandybarSign:
jumptext MahoganyTownRagecandybarSignText
2015-06-26 04:01:08 +00:00
MahoganyGymSign:
jumptext MahoganyGymSignText
MahoganyTownPokecenterSign:
2015-06-23 21:02:58 +00:00
jumpstd pokecentersign
2015-06-26 04:01:08 +00:00
MovementData_0x1900a4:
2016-05-14 17:46:14 +00:00
step DOWN
big_step UP
turn_head DOWN
2015-06-26 04:01:08 +00:00
MovementData_0x1900a7:
2016-05-14 17:46:14 +00:00
step LEFT
step_end
2015-06-26 04:01:08 +00:00
MovementData_0x1900a9:
2016-05-14 17:46:14 +00:00
step RIGHT
step DOWN
turn_head LEFT
step_end
2015-06-26 04:01:08 +00:00
MovementData_0x1900ad:
2016-05-14 17:46:14 +00:00
step UP
turn_head DOWN
step_end
2018-03-01 18:18:51 +00:00
RageCandyBarMerchantText_TryOne:
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-03-01 18:18:51 +00:00
RageCandyBarMerchantText_SavorIt:
text "Good! Savor it!"
done
2018-03-01 18:18:51 +00:00
RageCandyBarMerchantText_NotEnoughMoney:
text "You don't have"
line "enough money."
done
2018-03-01 18:18:51 +00:00
RageCandyBarMerchantText_Refused:
text "Oh, fine then…"
done
2015-06-26 04:01:08 +00:00
UnknownText_0x190188:
text "You don't have"
line "room for this."
done
2018-03-01 18:18:51 +00:00
RageCandyBarMerchantText_SoldOut:
text "RAGECANDYBAR's"
line "sold out."
para "I'm packing up."
line "Don't bother me,"
cont "kiddo."
done
2018-03-01 18:18:51 +00:00
MahoganyTownGrampsText:
text "Are you off to see"
line "the GYARADOS ram-"
cont "page at the LAKE?"
done
2018-03-01 18:18:51 +00: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-18 00:48:04 +00: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-18 00:48:04 +00:00
MahoganyTownLassText:
text "Visit Grandma's"
line "shop. She sells"
para "stuff that nobody"
line "else has."
done
2015-06-26 04:01:08 +00:00
MahoganyTownSignText:
text "MAHOGANY TOWN"
para "Welcome to the"
line "Home of the Ninja"
done
2015-06-26 04:01:08 +00:00
MahoganyTownRagecandybarSignText:
text "While visiting"
line "MAHOGANY TOWN, try"
cont "a RAGECANDYBAR!"
done
2015-06-26 04:01:08 +00: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
db 5 ; 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
db 2 ; coord events
2018-03-01 18:18:51 +00:00
coord_event 19, 8, SCENE_DEFAULT, MahoganyTownTryARageCandyBarScript
coord_event 19, 9, SCENE_DEFAULT, MahoganyTownTryARageCandyBarScript
db 4 ; 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
bg_event 16, 13, BGEVENT_READ, MahoganyTownPokecenterSign
db 4 ; 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