Restore documentation to mystery_event_msg
This commit is contained in:
@@ -4329,8 +4329,8 @@ _080CC728: .4byte 0x00000808
|
|||||||
_080CC72C: .4byte 0x0000404d
|
_080CC72C: .4byte 0x0000404d
|
||||||
thumb_func_end sub_80CC59C
|
thumb_func_end sub_80CC59C
|
||||||
|
|
||||||
thumb_func_start sub_80CC730
|
thumb_func_start Special_BattleCardAction
|
||||||
sub_80CC730: @ 80CC730
|
Special_BattleCardAction: @ 80CC730
|
||||||
push {lr}
|
push {lr}
|
||||||
ldr r0, _080CC744 @ =gSpecialVar_Result
|
ldr r0, _080CC744 @ =gSpecialVar_Result
|
||||||
ldrh r0, [r0]
|
ldrh r0, [r0]
|
||||||
@@ -4371,6 +4371,7 @@ _080CC772:
|
|||||||
lsrs r0, 16
|
lsrs r0, 16
|
||||||
b _080CC78A
|
b _080CC78A
|
||||||
_080CC77C:
|
_080CC77C:
|
||||||
|
@ AGB_ASSERT_EX(0, "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c", 3873)
|
||||||
ldr r0, _080CC790 @ =gUnknown_83F5EF0 "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c"
|
ldr r0, _080CC790 @ =gUnknown_83F5EF0 "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scr_tool.c"
|
||||||
ldr r1, _080CC794 @ =0x00000f21
|
ldr r1, _080CC794 @ =0x00000f21
|
||||||
ldr r2, _080CC798 @ =gUnknown_83F5F24 "0"
|
ldr r2, _080CC798 @ =gUnknown_83F5F24 "0"
|
||||||
@@ -4384,7 +4385,7 @@ _080CC78A:
|
|||||||
_080CC790: .4byte gUnknown_83F5EF0
|
_080CC790: .4byte gUnknown_83F5EF0
|
||||||
_080CC794: .4byte 0x00000f21
|
_080CC794: .4byte 0x00000f21
|
||||||
_080CC798: .4byte gUnknown_83F5F24
|
_080CC798: .4byte gUnknown_83F5F24
|
||||||
thumb_func_end sub_80CC730
|
thumb_func_end Special_BattleCardAction
|
||||||
|
|
||||||
thumb_func_start set_unknown_box_id
|
thumb_func_start set_unknown_box_id
|
||||||
set_unknown_box_id: @ 80CC79C
|
set_unknown_box_id: @ 80CC79C
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ BirthIsland_Exterior_MapScript1_165217:: @ 8165217
|
|||||||
setworldmapflag FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR
|
setworldmapflag FLAG_WORLD_MAP_BIRTH_ISLAND_EXTERIOR
|
||||||
setvar VAR_0x4010, 150
|
setvar VAR_0x4010, 150
|
||||||
setvar VAR_SECRET_BASE_MAP, 0
|
setvar VAR_SECRET_BASE_MAP, 0
|
||||||
setvar VAR_ALTERING_CAVE_WILD_SET, 0
|
setvar VAR_0x403E, 0
|
||||||
checkflag FLAG_0x2E4
|
checkflag FLAG_0x2E4
|
||||||
call_if 1, EventScript_16523C
|
call_if 1, EventScript_16523C
|
||||||
checkflag FLAG_0x2E4
|
checkflag FLAG_0x2E4
|
||||||
|
|||||||
+100
-99
@@ -14,39 +14,40 @@
|
|||||||
MysteryEventScript_StampCard:: @ 8488E28
|
MysteryEventScript_StampCard:: @ 8488E28
|
||||||
setvaddress MysteryEventScript_StampCard
|
setvaddress MysteryEventScript_StampCard
|
||||||
setorcopyvar VAR_RESULT, 1
|
setorcopyvar VAR_RESULT, 1
|
||||||
specialvar VAR_0x8008, sub_80CC730
|
specialvar VAR_0x8008, Special_BattleCardAction
|
||||||
setorcopyvar VAR_RESULT, 0
|
setorcopyvar VAR_RESULT, 0
|
||||||
specialvar VAR_0x8009, sub_80CC730
|
specialvar VAR_0x8009, Special_BattleCardAction
|
||||||
subvar VAR_0x8008, VAR_0x8009
|
subvar VAR_0x8008, VAR_0x8009
|
||||||
getnumberstring 0, VAR_0x8008
|
getnumberstring 0, VAR_0x8008
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8488E55
|
vmessage sText_MysteryGiftStampCard
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_8488E55:: @ 8488E55
|
sText_MysteryGiftStampCard: @ 8488E55
|
||||||
.string "Thank you for using the STAMP CARD\n"
|
.string "Thank you for using the STAMP CARD\n"
|
||||||
.string "System.\p"
|
.string "System.\p"
|
||||||
.string "You have {STR_VAR_1} more to collect to\n"
|
.string "You have {STR_VAR_1} more to collect to\n"
|
||||||
.string "fill your STAMP CARD.$"
|
.string "fill your STAMP CARD.$"
|
||||||
|
|
||||||
gEventScript_8488EB5:: @ 8488EB5
|
MysteryEventScript_SurfPichu:: @ 8488EB5
|
||||||
setvaddress gEventScript_8488EB5
|
setvaddress MysteryEventScript_SurfPichu
|
||||||
checkflag FLAG_0x3D8
|
checkflag FLAG_MYSTERY_EVENT_DONE
|
||||||
vgoto_if 0, gEventScript_8488EC4
|
vgoto_if 0, SurfPichu_GiveIfPossible
|
||||||
gotoram
|
gotoram
|
||||||
gEventScript_8488EC4:: @ 8488EC4
|
|
||||||
specialvar VAR_0x40B5, CalculatePlayerPartyCount
|
SurfPichu_GiveIfPossible: @ 8488EC4
|
||||||
compare_var_to_value VAR_0x40B5, 6
|
specialvar VAR_EVENT_PICHU_SLOT, CalculatePlayerPartyCount
|
||||||
vgoto_if 1, gEventScript_8488EEB
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 6
|
||||||
setflag FLAG_0x3D8
|
vgoto_if 1, SurfPichu_FullParty
|
||||||
vcall gEventScript_8488EF6
|
setflag FLAG_MYSTERY_EVENT_DONE
|
||||||
|
vcall SurfPichu_GiveEgg
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8488F56
|
vmessage sText_MysteryGiftEgg
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
playfanfare MUS_FANFA4
|
playfanfare MUS_FANFA4
|
||||||
@@ -54,52 +55,52 @@ gEventScript_8488EC4:: @ 8488EC4
|
|||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_8488EEB:: @ 8488EEB
|
SurfPichu_FullParty: @ 8488EEB
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8488FE3
|
vmessage sText_FullParty
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_8488EF6:: @ 8488EF6
|
SurfPichu_GiveEgg: @ 8488EF6
|
||||||
giveegg SPECIES_PICHU
|
giveegg SPECIES_PICHU
|
||||||
setmonobedient VAR_0x40B5
|
setmonobedient VAR_EVENT_PICHU_SLOT
|
||||||
setmonmetlocation VAR_0x40B5, 0xff
|
setmonmetlocation VAR_EVENT_PICHU_SLOT, 0xff
|
||||||
compare_var_to_value VAR_0x40B5, 1
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 1
|
||||||
vgoto_if 1, gEventScript_8488F38
|
vgoto_if 1, SurfPichu_Slot1
|
||||||
compare_var_to_value VAR_0x40B5, 2
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 2
|
||||||
vgoto_if 1, gEventScript_8488F3E
|
vgoto_if 1, SurfPichu_Slot2
|
||||||
compare_var_to_value VAR_0x40B5, 3
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 3
|
||||||
vgoto_if 1, gEventScript_8488F44
|
vgoto_if 1, SurfPichu_Slot3
|
||||||
compare_var_to_value VAR_0x40B5, 4
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 4
|
||||||
vgoto_if 1, gEventScript_8488F4A
|
vgoto_if 1, SurfPichu_Slot4
|
||||||
compare_var_to_value VAR_0x40B5, 5
|
compare_var_to_value VAR_EVENT_PICHU_SLOT, 5
|
||||||
vgoto_if 1, gEventScript_8488F50
|
vgoto_if 1, SurfPichu_Slot5
|
||||||
return
|
return
|
||||||
|
|
||||||
gEventScript_8488F38:: @ 8488F38
|
SurfPichu_Slot1: @ 8488F38
|
||||||
setmonmove 1, 2, MOVE_SURF
|
setmonmove 1, 2, MOVE_SURF
|
||||||
return
|
return
|
||||||
|
|
||||||
gEventScript_8488F3E:: @ 8488F3E
|
SurfPichu_Slot2: @ 8488F3E
|
||||||
setmonmove 2, 2, MOVE_SURF
|
setmonmove 2, 2, MOVE_SURF
|
||||||
return
|
return
|
||||||
|
|
||||||
gEventScript_8488F44:: @ 8488F44
|
SurfPichu_Slot3: @ 8488F44
|
||||||
setmonmove 3, 2, MOVE_SURF
|
setmonmove 3, 2, MOVE_SURF
|
||||||
return
|
return
|
||||||
|
|
||||||
gEventScript_8488F4A:: @ 8488F4A
|
SurfPichu_Slot4: @ 8488F4A
|
||||||
setmonmove 4, 2, MOVE_SURF
|
setmonmove 4, 2, MOVE_SURF
|
||||||
return
|
return
|
||||||
|
|
||||||
gEventScript_8488F50:: @ 8488F50
|
SurfPichu_Slot5: @ 8488F50
|
||||||
setmonmove 5, 2, MOVE_SURF
|
setmonmove 5, 2, MOVE_SURF
|
||||||
return
|
return
|
||||||
|
|
||||||
gText_8488F56:: @ 8488F56
|
sText_MysteryGiftEgg: @ 8488F56
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "From the POKéMON CENTER we\n"
|
.string "From the POKéMON CENTER we\n"
|
||||||
@@ -107,34 +108,34 @@ gText_8488F56:: @ 8488F56
|
|||||||
.string "Please raise it with love and\n"
|
.string "Please raise it with love and\n"
|
||||||
.string "kindness.$"
|
.string "kindness.$"
|
||||||
|
|
||||||
gText_8488FE3:: @ 8488FE3
|
sText_FullParty: @ 8488FE3
|
||||||
.string "Oh, your party appears to be full.\p"
|
.string "Oh, your party appears to be full.\p"
|
||||||
.string "Please come see me after storing\n"
|
.string "Please come see me after storing\n"
|
||||||
.string "a POKéMON on a PC.$"
|
.string "a POKéMON on a PC.$"
|
||||||
|
|
||||||
gEventScript_848903A:: @ 848903A
|
MysteryEventScript_VisitingTrainer:: @ 848903A
|
||||||
setvaddress gEventScript_848903A
|
setvaddress MysteryEventScript_VisitingTrainer
|
||||||
special ValidateEReaderTrainer
|
special ValidateEReaderTrainer
|
||||||
compare_var_to_value VAR_RESULT, 0
|
compare_var_to_value VAR_RESULT, 0
|
||||||
vgoto_if 1, gEventScript_8489058
|
vgoto_if 1, MysteryEventScript_VisitingTrainerArrived
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8489063
|
vmessage sText_MysteryGiftVisitingTrainer
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_8489058:: @ 8489058
|
MysteryEventScript_VisitingTrainerArrived: @ 8489058
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_84891B0
|
vmessage sText_MysteryGiftVisitingTrainer_2
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_8489063:: @ 8489063
|
sText_MysteryGiftVisitingTrainer: @ 8489063
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "By holding this WONDER CARD, you\n"
|
.string "By holding this WONDER CARD, you\n"
|
||||||
@@ -150,7 +151,7 @@ gText_8489063:: @ 8489063
|
|||||||
.string "it to the WIRELESS\l"
|
.string "it to the WIRELESS\l"
|
||||||
.string "COMMUNICATION SYSTEM.$"
|
.string "COMMUNICATION SYSTEM.$"
|
||||||
|
|
||||||
gText_84891B0:: @ 84891B0
|
sText_MysteryGiftVisitingTrainer_2: @ 84891B0
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "A TRAINER has arrived in the SEVII\n"
|
.string "A TRAINER has arrived in the SEVII\n"
|
||||||
@@ -162,34 +163,34 @@ gText_84891B0:: @ 84891B0
|
|||||||
.string "Try looking for other passwords\n"
|
.string "Try looking for other passwords\n"
|
||||||
.string "that may work.$"
|
.string "that may work.$"
|
||||||
|
|
||||||
gEventScript_84892B9:: @ 84892B9
|
MysteryEventScript_BattleCard:: @ 84892B9
|
||||||
setvaddress gEventScript_84892B9
|
setvaddress MysteryEventScript_BattleCard
|
||||||
checkflag FLAG_0x3D8
|
checkflag FLAG_MYSTERY_EVENT_DONE
|
||||||
vgoto_if 1, gEventScript_84892F6
|
vgoto_if 1, MysteryEventScript_BattleCardInfo
|
||||||
setorcopyvar VAR_RESULT, 2
|
setorcopyvar VAR_RESULT, 2
|
||||||
specialvar VAR_0x8008, sub_80CC730
|
specialvar VAR_0x8008, Special_BattleCardAction
|
||||||
compare_var_to_value VAR_0x8008, 3
|
compare_var_to_value VAR_0x8008, 3
|
||||||
vgoto_if 0, gEventScript_84892F6
|
vgoto_if 0, MysteryEventScript_BattleCardInfo
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8489419
|
vmessage sText_MysteryGiftBattleCountCard_2
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
giveitem ITEM_POTION
|
giveitem ITEM_POTION
|
||||||
release
|
release
|
||||||
setflag FLAG_0x3D8
|
setflag FLAG_MYSTERY_EVENT_DONE
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_84892F6:: @ 84892F6
|
MysteryEventScript_BattleCardInfo: @ 84892F6
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8489301
|
vmessage sText_MysteryGiftBattleCountCard
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_8489301:: @ 8489301
|
sText_MysteryGiftBattleCountCard: @ 8489301
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "Your BATTLE COUNT CARD keeps\n"
|
.string "Your BATTLE COUNT CARD keeps\n"
|
||||||
@@ -201,7 +202,7 @@ gText_8489301:: @ 8489301
|
|||||||
.string "by reading the NEWS.\p"
|
.string "by reading the NEWS.\p"
|
||||||
.string "Please do give it a try!$"
|
.string "Please do give it a try!$"
|
||||||
|
|
||||||
gText_8489419:: @ 8489419
|
sText_MysteryGiftBattleCountCard_2: @ 8489419
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "Congratulations!\p"
|
.string "Congratulations!\p"
|
||||||
@@ -210,148 +211,148 @@ gText_8489419:: @ 8489419
|
|||||||
.string "We hope you will be inspired to\n"
|
.string "We hope you will be inspired to\n"
|
||||||
.string "battle some more.$"
|
.string "battle some more.$"
|
||||||
|
|
||||||
gEventScript_84894B9:: @ 84894B9
|
MysteryEventScript_AuroraTicket:: @ 84894B9
|
||||||
setvaddress gEventScript_84894B9
|
setvaddress MysteryEventScript_AuroraTicket
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
checkflag FLAG_0x2A7
|
checkflag FLAG_0x2A7
|
||||||
vgoto_if 1, gEventScript_848951D
|
vgoto_if 1, AuroraTicket_Obtained
|
||||||
checkflag FLAG_0x2E4
|
checkflag FLAG_0x2E4
|
||||||
vgoto_if 1, gEventScript_848951D
|
vgoto_if 1, AuroraTicket_Obtained
|
||||||
checkitem ITEM_AURORA_TICKET, 1
|
checkitem ITEM_AURORA_TICKET, 1
|
||||||
compare_var_to_value VAR_RESULT, 1
|
compare_var_to_value VAR_RESULT, 1
|
||||||
vgoto_if 1, gEventScript_848951D
|
vgoto_if 1, AuroraTicket_Obtained
|
||||||
vmessage gText_8489526
|
vmessage sText_AuroraTicket1
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
checkitemspace ITEM_AURORA_TICKET, 1
|
checkitemspace ITEM_AURORA_TICKET, 1
|
||||||
compare_var_to_value VAR_RESULT, 0
|
compare_var_to_value VAR_RESULT, 0
|
||||||
vgoto_if 1, gEventScript_8489514
|
vgoto_if 1, AuroraTicket_NoBagSpace
|
||||||
giveitem ITEM_AURORA_TICKET
|
giveitem ITEM_AURORA_TICKET
|
||||||
setflag FLAG_0x84B
|
setflag FLAG_0x84B
|
||||||
setflag FLAG_0x2A7
|
setflag FLAG_0x2A7
|
||||||
vmessage gText_8489583
|
vmessage sText_AuroraTicket2
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_8489514:: @ 8489514
|
AuroraTicket_NoBagSpace: @ 8489514
|
||||||
vmessage gText_8489615
|
vmessage sText_AuroraTicketNoPlace
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_848951D:: @ 848951D
|
AuroraTicket_Obtained: @ 848951D
|
||||||
vmessage gText_84895E8
|
vmessage sText_AuroraTicketGot
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_8489526:: @ 8489526
|
sText_AuroraTicket1: @ 8489526
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "You must be {PLAYER}.\n"
|
.string "You must be {PLAYER}.\n"
|
||||||
.string "There is a ticket here for you.$"
|
.string "There is a ticket here for you.$"
|
||||||
|
|
||||||
gText_8489583:: @ 8489583
|
sText_AuroraTicket2: @ 8489583
|
||||||
.string "It appears to be for use at the\n"
|
.string "It appears to be for use at the\n"
|
||||||
.string "VERMILION CITY port.\p"
|
.string "VERMILION CITY port.\p"
|
||||||
.string "Why not give it a try and see what\n"
|
.string "Why not give it a try and see what\n"
|
||||||
.string "it is about?$"
|
.string "it is about?$"
|
||||||
|
|
||||||
gText_84895E8:: @ 84895E8
|
sText_AuroraTicketGot: @ 84895E8
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.$"
|
.string "GIFT System.$"
|
||||||
|
|
||||||
gText_8489615:: @ 8489615
|
sText_AuroraTicketNoPlace: @ 8489615
|
||||||
.string "Oh, I'm sorry, {PLAYER}. Your BAG's\n"
|
.string "Oh, I'm sorry, {PLAYER}. Your BAG's\n"
|
||||||
.string "KEY ITEMS POCKET is full.\p"
|
.string "KEY ITEMS POCKET is full.\p"
|
||||||
.string "Please store something on your PC,\n"
|
.string "Please store something on your PC,\n"
|
||||||
.string "then come back for this.$"
|
.string "then come back for this.$"
|
||||||
|
|
||||||
gEventScript_8489689:: @ 8489689
|
MysteryEventScript_MysticTicket:: @ 8489689
|
||||||
setvaddress gEventScript_8489689
|
setvaddress MysteryEventScript_MysticTicket
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
checkflag FLAG_0x2A8
|
checkflag FLAG_0x2A8
|
||||||
vgoto_if 1, gEventScript_84896F6
|
vgoto_if 1, MysticTicket_Obtained
|
||||||
checkflag FLAG_0x2F2
|
checkflag FLAG_0x2F2
|
||||||
vgoto_if 1, gEventScript_84896F6
|
vgoto_if 1, MysticTicket_Obtained
|
||||||
checkflag FLAG_0x2F3
|
checkflag FLAG_0x2F3
|
||||||
vgoto_if 1, gEventScript_84896F6
|
vgoto_if 1, MysticTicket_Obtained
|
||||||
checkitem ITEM_MYSTIC_TICKET, 1
|
checkitem ITEM_MYSTIC_TICKET, 1
|
||||||
compare_var_to_value VAR_RESULT, 1
|
compare_var_to_value VAR_RESULT, 1
|
||||||
vgoto_if 1, gEventScript_84896F6
|
vgoto_if 1, MysticTicket_Obtained
|
||||||
vmessage gText_84896FF
|
vmessage sText_MysticTicket2
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
checkitemspace ITEM_MYSTIC_TICKET, 1
|
checkitemspace ITEM_MYSTIC_TICKET, 1
|
||||||
compare_var_to_value VAR_RESULT, 0
|
compare_var_to_value VAR_RESULT, 0
|
||||||
vgoto_if 1, gEventScript_84896ED
|
vgoto_if 1, MysticTicket_NoBagSpace
|
||||||
giveitem ITEM_MYSTIC_TICKET
|
giveitem ITEM_MYSTIC_TICKET
|
||||||
setflag FLAG_0x84A
|
setflag FLAG_0x84A
|
||||||
setflag FLAG_0x2A8
|
setflag FLAG_0x2A8
|
||||||
vmessage gText_848975C
|
vmessage sText_MysticTicket1
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_84896ED:: @ 84896ED
|
MysticTicket_NoBagSpace: @ 84896ED
|
||||||
vmessage gText_84897EE
|
vmessage sText_MysticTicketNoPlace
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gEventScript_84896F6:: @ 84896F6
|
MysticTicket_Obtained: @ 84896F6
|
||||||
vmessage gText_84897C1
|
vmessage sText_MysticTicketGot
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_84896FF:: @ 84896FF
|
sText_MysticTicket2: @ 84896FF
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "You must be {PLAYER}.\n"
|
.string "You must be {PLAYER}.\n"
|
||||||
.string "There is a ticket here for you.$"
|
.string "There is a ticket here for you.$"
|
||||||
|
|
||||||
gText_848975C:: @ 848975C
|
sText_MysticTicket1: @ 848975C
|
||||||
.string "It appears to be for use at the\n"
|
.string "It appears to be for use at the\n"
|
||||||
.string "VERMILION CITY port.\p"
|
.string "VERMILION CITY port.\p"
|
||||||
.string "Why not give it a try and see what\n"
|
.string "Why not give it a try and see what\n"
|
||||||
.string "it is about?$"
|
.string "it is about?$"
|
||||||
|
|
||||||
gText_84897C1:: @ 84897C1
|
sText_MysticTicketGot: @ 84897C1
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.$"
|
.string "GIFT System.$"
|
||||||
|
|
||||||
gText_84897EE:: @ 84897EE
|
sText_MysticTicketNoPlace: @ 84897EE
|
||||||
.string "Oh, I'm sorry, {PLAYER}. Your BAG's\n"
|
.string "Oh, I'm sorry, {PLAYER}. Your BAG's\n"
|
||||||
.string "KEY ITEMS POCKET is full.\p"
|
.string "KEY ITEMS POCKET is full.\p"
|
||||||
.string "Please store something on your PC,\n"
|
.string "Please store something on your PC,\n"
|
||||||
.string "then come back for this.$"
|
.string "then come back for this.$"
|
||||||
|
|
||||||
gEventScript_8489862:: @ 8489862
|
MysteryEventScript_AlteringCave:: @ 8489862
|
||||||
setvaddress gEventScript_8489862
|
setvaddress MysteryEventScript_AlteringCave
|
||||||
addvar VAR_0x4024, 1
|
addvar VAR_ALTERING_CAVE_WILD_SET, 1
|
||||||
compare_var_to_value VAR_0x4024, 10
|
compare_var_to_value VAR_ALTERING_CAVE_WILD_SET, 10
|
||||||
vgoto_if 0, gEventScript_848987C
|
vgoto_if 0, MysteryEventScript_AlteringCave_
|
||||||
setvar VAR_0x4024, 0
|
setvar VAR_ALTERING_CAVE_WILD_SET, 0
|
||||||
gEventScript_848987C:: @ 848987C
|
MysteryEventScript_AlteringCave_: @ 848987C
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
vmessage gText_8489887
|
vmessage sText_MysteryGiftAlteringCave
|
||||||
waitmessage
|
waitmessage
|
||||||
waitbuttonpress
|
waitbuttonpress
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
gText_8489887:: @ 8489887
|
sText_MysteryGiftAlteringCave: @ 8489887
|
||||||
.string "Thank you for using the MYSTERY\n"
|
.string "Thank you for using the MYSTERY\n"
|
||||||
.string "GIFT System.\p"
|
.string "GIFT System.\p"
|
||||||
.string "Recently, there have been rumors\n"
|
.string "Recently, there have been rumors\n"
|
||||||
|
|||||||
+1
-1
@@ -399,7 +399,7 @@ gSpecials:: @ 815FD60
|
|||||||
def_special sp182_move_string
|
def_special sp182_move_string
|
||||||
def_special sub_811390C
|
def_special sub_811390C
|
||||||
def_special sub_80CC4D4
|
def_special sub_80CC4D4
|
||||||
def_special sub_80CC730
|
def_special Special_BattleCardAction
|
||||||
def_special sub_8110AB4
|
def_special sub_8110AB4
|
||||||
def_special sub_8112364
|
def_special sub_8112364
|
||||||
def_special sub_8146CE8
|
def_special sub_8146CE8
|
||||||
|
|||||||
@@ -986,7 +986,7 @@
|
|||||||
#define FLAG_0x3D5 0x3D5
|
#define FLAG_0x3D5 0x3D5
|
||||||
#define FLAG_0x3D6 0x3D6
|
#define FLAG_0x3D6 0x3D6
|
||||||
#define FLAG_0x3D7 0x3D7
|
#define FLAG_0x3D7 0x3D7
|
||||||
#define FLAG_0x3D8 0x3D8
|
#define FLAG_MYSTERY_EVENT_DONE 0x3D8
|
||||||
#define FLAG_0x3D9 0x3D9
|
#define FLAG_0x3D9 0x3D9
|
||||||
#define FLAG_0x3DA 0x3DA
|
#define FLAG_0x3DA 0x3DA
|
||||||
#define FLAG_0x3DB 0x3DB
|
#define FLAG_0x3DB 0x3DB
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
#define VAR_0x4021 0x4021
|
#define VAR_0x4021 0x4021
|
||||||
#define VAR_ICE_STEP_COUNT 0x4022
|
#define VAR_ICE_STEP_COUNT 0x4022
|
||||||
#define VAR_0x4023 0x4023
|
#define VAR_0x4023 0x4023
|
||||||
#define VAR_0x4024 0x4024
|
#define VAR_ALTERING_CAVE_WILD_SET 0x4024
|
||||||
#define VAR_0x4025 0x4025
|
#define VAR_0x4025 0x4025
|
||||||
#define VAR_SECRET_BASE_MAP 0x4026
|
#define VAR_SECRET_BASE_MAP 0x4026
|
||||||
#define VAR_0x4027 0x4027
|
#define VAR_0x4027 0x4027
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
#define VAR_0x403B 0x403B
|
#define VAR_0x403B 0x403B
|
||||||
#define VAR_0x403C 0x403C
|
#define VAR_0x403C 0x403C
|
||||||
#define VAR_0x403D 0x403D
|
#define VAR_0x403D 0x403D
|
||||||
#define VAR_ALTERING_CAVE_WILD_SET 0x403E
|
#define VAR_0x403E 0x403E
|
||||||
#define VAR_0x403F 0x403F
|
#define VAR_0x403F 0x403F
|
||||||
#define VAR_DAYS 0x4040
|
#define VAR_DAYS 0x4040
|
||||||
#define VAR_0x4041 0x4041
|
#define VAR_0x4041 0x4041
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
#define VAR_0x40B2 0x40B2
|
#define VAR_0x40B2 0x40B2
|
||||||
#define VAR_0x40B3 0x40B3
|
#define VAR_0x40B3 0x40B3
|
||||||
#define VAR_PORTHOLE 0x40B4
|
#define VAR_PORTHOLE 0x40B4
|
||||||
#define VAR_0x40B5 0x40B5
|
#define VAR_EVENT_PICHU_SLOT 0x40B5
|
||||||
#define VAR_0x40B6 0x40B6
|
#define VAR_0x40B6 0x40B6
|
||||||
#define VAR_0x40B7 0x40B7
|
#define VAR_0x40B7 0x40B7
|
||||||
#define VAR_0x40B8 0x40B8
|
#define VAR_0x40B8 0x40B8
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ s32 BuildPokedexAreaSubspriteBuffer(u16 species, struct Subsprite * subsprites)
|
|||||||
|
|
||||||
seviiAreas = GetUnlockedSeviiAreas();
|
seviiAreas = GetUnlockedSeviiAreas();
|
||||||
alteringCaveCount = 0;
|
alteringCaveCount = 0;
|
||||||
alteringCaveNum = VarGet(VAR_0x4024);
|
alteringCaveNum = VarGet(VAR_ALTERING_CAVE_WILD_SET);
|
||||||
if (alteringCaveNum > 8)
|
if (alteringCaveNum > 8)
|
||||||
alteringCaveNum = 0;
|
alteringCaveNum = 0;
|
||||||
for (i = 0, areaCount = 0; gWildMonHeaders[i].mapGroup != 0xFF; i++)
|
for (i = 0, areaCount = 0; gWildMonHeaders[i].mapGroup != 0xFF; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user