summaryrefslogtreecommitdiff
path: root/data/scripts/mevent_mystic_ticket.inc
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2020-01-13 20:26:20 -0600
committerMarcus Huderle <huderlem@gmail.com>2020-01-13 20:26:20 -0600
commit5a2d676e71b720e752ca8a624a5795b3b1d7eb6c (patch)
tree6ef755064008dfae8ce2942dc2762670cdabe815 /data/scripts/mevent_mystic_ticket.inc
parent5007d279fea5326b41b877703c74fcaa56223364 (diff)
parent22931846d680de2bc585093678db3f5721aab891 (diff)
Merge remote-tracking branch 'upstream' into tustin2121-patch-5
Diffstat (limited to 'data/scripts/mevent_mystic_ticket.inc')
-rw-r--r--data/scripts/mevent_mystic_ticket.inc60
1 files changed, 60 insertions, 0 deletions
diff --git a/data/scripts/mevent_mystic_ticket.inc b/data/scripts/mevent_mystic_ticket.inc
new file mode 100644
index 000000000..8f938dc33
--- /dev/null
+++ b/data/scripts/mevent_mystic_ticket.inc
@@ -0,0 +1,60 @@
+MysteryEventScript_MysticTicket:: @ 867550B
+ setvaddress MysteryEventScript_MysticTicket
+ lock
+ faceplayer
+ vgoto_if_set FLAG_RECEIVED_MYSTIC_TICKET, MysticTicket_Obtained
+ vgoto_if_set FLAG_CAUGHT_LUGIA, MysticTicket_Obtained
+ vgoto_if_set FLAG_CAUGHT_HO_OH, MysticTicket_Obtained
+ checkitem ITEM_MYSTIC_TICKET, 1
+ compare VAR_RESULT, TRUE
+ vgoto_if_eq MysticTicket_Obtained
+ vmessage sText_MysticTicketForYou
+ waitmessage
+ waitbuttonpress
+ checkitemspace ITEM_MYSTIC_TICKET, 1
+ compare VAR_RESULT, FALSE
+ vgoto_if_eq MysticTicket_NoBagSpace
+ giveitem ITEM_MYSTIC_TICKET
+ setflag FLAG_ENABLE_SHIP_NAVEL_ROCK
+ setflag FLAG_RECEIVED_MYSTIC_TICKET
+ vmessage sText_MysticTicketUseAtPort
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+MysticTicket_NoBagSpace: @ 867556F
+ vmessage sText_MysticTicketBagFull
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+MysticTicket_Obtained: @ 8675578
+ vmessage sText_MysticTicketThankYou
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+sText_MysticTicketForYou:
+ .string "Thank you for using the MYSTERY\n"
+ .string "GIFT System.\p"
+ .string "You must be {PLAYER}.\n"
+ .string "There is a ticket here for you.$"
+
+sText_MysticTicketUseAtPort:
+ .string "It appears to be for use at the\n"
+ .string "LILYCOVE CITY port.\p"
+ .string "Why not give it a try and see what\n"
+ .string "it is about?$"
+
+sText_MysticTicketThankYou:
+ .string "Thank you for using the MYSTERY\n"
+ .string "GIFT System.$"
+
+sText_MysticTicketBagFull:
+ .string "Oh, I'm sorry, {PLAYER}.\n"
+ .string "Your BAG's KEY ITEMS POCKET is full.\p"
+ .string "Please store something on your PC,\n"
+ .string "then come back for this.$"