2015-07-10 01:45:35 -07:00
|
|
|
CeladonGameCornerPrizeRoom_MapScriptHeader:
|
2015-07-20 21:02:21 -07:00
|
|
|
.MapTriggers:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.MapCallbacks:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
GentlemanScript_0x726e9:
|
2013-02-16 22:54:07 -08:00
|
|
|
jumptextfaceplayer UnknownText_0x728b8
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
PharmacistScript_0x726ec:
|
2013-02-16 22:54:07 -08:00
|
|
|
jumptextfaceplayer UnknownText_0x728e9
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MapCeladonGameCornerPrizeRoomSignpost0Script:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
|
|
|
loadfont
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x7293e
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
checkitem COIN_CASE
|
2015-10-16 10:35:43 -07:00
|
|
|
iffalse CeladonPrizeRoom_NoCoinCase
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x72974
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_tmcounterloop:
|
|
|
|
special Special_DisplayCoinCaseBalance
|
2013-04-30 23:53:33 -07:00
|
|
|
loadmenudata MenuDataHeader_0x72790
|
2013-02-16 22:54:07 -08:00
|
|
|
interpretmenu2
|
|
|
|
writebackup
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $1, .doubleteam
|
|
|
|
if_equal $2, .psychic
|
|
|
|
if_equal $3, .hyperbeam
|
|
|
|
jump CeladonPrizeRoom_cancel
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.doubleteam:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 1500
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-06-29 19:24:45 -07:00
|
|
|
itemtotext TM_DOUBLE_TEAM, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
|
|
|
giveitem TM_DOUBLE_TEAM, 1
|
|
|
|
iffalse CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 1500
|
2015-10-16 10:35:43 -07:00
|
|
|
jump CeladonPrizeRoom_purchased
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.psychic:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 3500
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-06-29 19:24:45 -07:00
|
|
|
itemtotext TM_PSYCHIC, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
|
|
|
giveitem TM_PSYCHIC, 1
|
|
|
|
iffalse CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 3500
|
2015-10-16 10:35:43 -07:00
|
|
|
jump CeladonPrizeRoom_purchased
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.hyperbeam:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 7500
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-06-29 19:24:45 -07:00
|
|
|
itemtotext TM_HYPER_BEAM, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
|
|
|
giveitem TM_HYPER_BEAM, 1
|
|
|
|
iffalse CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 7500
|
2015-10-16 10:35:43 -07:00
|
|
|
jump CeladonPrizeRoom_purchased
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_askbuy:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x72991
|
2013-02-16 22:54:07 -08:00
|
|
|
yesorno
|
|
|
|
end
|
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_purchased:
|
2013-02-16 22:54:07 -08:00
|
|
|
waitbutton
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_TRANSACTION
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729ad
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-10-16 10:35:43 -07:00
|
|
|
jump CeladonPrizeRoom_tmcounterloop
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_notenoughcoins:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729bb
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_notenoughroom:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729d8
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_cancel:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729f2
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
CeladonPrizeRoom_NoCoinCase:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x72a14
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2013-04-30 23:53:33 -07:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MenuDataHeader_0x72790:
|
2013-04-30 23:53:33 -07:00
|
|
|
db $40 ; flags
|
|
|
|
db 02, 00 ; start coords
|
|
|
|
db 11, 15 ; end coords
|
|
|
|
dw MenuData2_0x72798
|
|
|
|
db 1 ; default option
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MenuData2_0x72798:
|
2013-04-30 23:53:33 -07:00
|
|
|
db $80 ; flags
|
|
|
|
db 4 ; items
|
|
|
|
db "TM32 1500@"
|
|
|
|
db "TM29 3500@"
|
|
|
|
db "TM15 7500@"
|
|
|
|
db "CANCEL@"
|
|
|
|
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MapCeladonGameCornerPrizeRoomSignpost1Script:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
|
|
|
loadfont
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x7293e
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
checkitem COIN_CASE
|
2015-10-16 10:35:43 -07:00
|
|
|
iffalse CeladonPrizeRoom_NoCoinCase
|
|
|
|
.loop:
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x72974
|
2015-10-16 10:35:43 -07:00
|
|
|
special Special_DisplayCoinCaseBalance
|
2013-04-30 23:53:33 -07:00
|
|
|
loadmenudata MenuDataHeader_0x72877
|
2013-02-16 22:54:07 -08:00
|
|
|
interpretmenu2
|
|
|
|
writebackup
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $1, .pikachu
|
|
|
|
if_equal $2, .porygon
|
|
|
|
if_equal $3, .larvitar
|
|
|
|
jump CeladonPrizeRoom_cancel
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.pikachu:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 2222
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-07-09 19:08:03 -07:00
|
|
|
checkcode VAR_PARTYCOUNT
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $6, CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
pokenamemem PIKACHU, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
2013-02-16 22:54:07 -08:00
|
|
|
waitbutton
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_TRANSACTION
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729ad
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
writebyte PIKACHU
|
2015-07-20 15:59:26 -07:00
|
|
|
special Special_GameCornerPrizeMonCheckDex
|
2015-10-04 11:14:51 -07:00
|
|
|
givepoke PIKACHU, 25
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 2222
|
2015-10-16 10:35:43 -07:00
|
|
|
jump .loop
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.porygon:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 5555
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-07-09 19:08:03 -07:00
|
|
|
checkcode VAR_PARTYCOUNT
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $6, CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
pokenamemem PORYGON, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
2013-02-16 22:54:07 -08:00
|
|
|
waitbutton
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_TRANSACTION
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729ad
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
writebyte PORYGON
|
2015-07-20 15:59:26 -07:00
|
|
|
special Special_GameCornerPrizeMonCheckDex
|
2015-10-04 11:14:51 -07:00
|
|
|
givepoke PORYGON, 15
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 5555
|
2015-10-16 10:35:43 -07:00
|
|
|
jump .loop
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-10-16 10:35:43 -07:00
|
|
|
.larvitar:
|
2013-02-16 22:54:07 -08:00
|
|
|
checkcoins 8888
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $2, CeladonPrizeRoom_notenoughcoins
|
2015-07-09 19:08:03 -07:00
|
|
|
checkcode VAR_PARTYCOUNT
|
2015-10-16 10:35:43 -07:00
|
|
|
if_equal $6, CeladonPrizeRoom_notenoughroom
|
2013-02-16 22:54:07 -08:00
|
|
|
pokenamemem LARVITAR, $0
|
2015-10-16 10:35:43 -07:00
|
|
|
scall CeladonPrizeRoom_askbuy
|
|
|
|
iffalse CeladonPrizeRoom_cancel
|
2013-02-16 22:54:07 -08:00
|
|
|
waitbutton
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_TRANSACTION
|
2015-01-20 00:01:23 -08:00
|
|
|
writetext UnknownText_0x729ad
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
writebyte LARVITAR
|
2015-07-20 15:59:26 -07:00
|
|
|
special Special_GameCornerPrizeMonCheckDex
|
2015-10-04 11:14:51 -07:00
|
|
|
givepoke LARVITAR, 40
|
2013-02-16 22:54:07 -08:00
|
|
|
takecoins 8888
|
2015-10-16 10:35:43 -07:00
|
|
|
jump .loop
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2013-04-30 23:53:33 -07:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MenuDataHeader_0x72877:
|
2013-04-30 23:53:33 -07:00
|
|
|
db $40 ; flags
|
|
|
|
db 02, 00 ; start coords
|
|
|
|
db 11, 17 ; end coords
|
|
|
|
dw MenuData2_0x7287f
|
|
|
|
db 1 ; default option
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
MenuData2_0x7287f:
|
2013-04-30 23:53:33 -07:00
|
|
|
db $80 ; flags
|
|
|
|
db 4 ; items
|
|
|
|
db "PIKACHU 2222@"
|
|
|
|
db "PORYGON 5555@"
|
|
|
|
db "LARVITAR 8888@"
|
|
|
|
db "CANCEL@"
|
|
|
|
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x728b8:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "I wanted PORYGON,"
|
|
|
|
line "but I was short by"
|
|
|
|
cont "100 coins…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x728e9:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Whew…"
|
|
|
|
|
|
|
|
para "I've got to stay"
|
|
|
|
line "calm and cool…"
|
|
|
|
|
|
|
|
para "I can't lose my"
|
|
|
|
line "cool, or I'll lose"
|
|
|
|
cont "all my money…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x7293e:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Welcome!"
|
|
|
|
|
|
|
|
para "We exchange your"
|
|
|
|
line "coins for fabulous"
|
|
|
|
cont "prizes!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x72974:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Which prize would"
|
|
|
|
line "you like?"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x72991:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "OK, so you wanted"
|
|
|
|
line "a @"
|
2015-02-10 15:37:24 -08:00
|
|
|
text_from_ram StringBuffer3
|
2014-03-05 21:29:44 -08:00
|
|
|
text "?"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x729ad:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Here you go!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x729bb:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "You don't have"
|
|
|
|
line "enough coins."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x729d8:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "You have no room"
|
|
|
|
line "for it."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x729f2:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Oh. Please come"
|
|
|
|
line "back with coins!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
UnknownText_0x72a14:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Oh? You don't have"
|
|
|
|
line "a COIN CASE."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
CeladonGameCornerPrizeRoom_MapEventHeader:
|
2013-02-16 22:54:07 -08:00
|
|
|
; filler
|
|
|
|
db 0, 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.Warps:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 2
|
2015-07-23 09:59:19 -07:00
|
|
|
warp_def $5, $2, 7, CELADON_CITY
|
|
|
|
warp_def $5, $3, 7, CELADON_CITY
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.XYTriggers:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 0
|
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.Signposts:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 2
|
2015-07-16 15:10:10 -07:00
|
|
|
signpost 1, 2, SIGNPOST_READ, MapCeladonGameCornerPrizeRoomSignpost0Script
|
|
|
|
signpost 1, 4, SIGNPOST_READ, MapCeladonGameCornerPrizeRoomSignpost1Script
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-20 21:02:21 -07:00
|
|
|
.PersonEvents:
|
2013-02-16 22:54:07 -08:00
|
|
|
db 2
|
2015-10-29 20:32:11 -07:00
|
|
|
person_event SPRITE_GENTLEMAN, 2, 0, SPRITEMOVEFN_06, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, 0, 0, GentlemanScript_0x726e9, -1
|
|
|
|
person_event SPRITE_PHARMACIST, 4, 4, SPRITEMOVEFN_04, 1, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, 0, 0, PharmacistScript_0x726ec, -1
|