P3D-Legacy/P3D/Content/Data/Scripts/radiotower/lotto.dat

48 lines
3.6 KiB
Plaintext

version=2
:if:<register.registered(lucky_number_show)>=true
:then
@text.show(Please come back~next week for the next~Lucky Number.)
:endscript
:else
@register.registertime(lucky_number_show,1,week)
@storage.set(integer,lOT,<pokemon.randomot>)
@text.show(Hi, are you here for~the Lucky Number Show?*Want me to check the~ID numbers of your Pokémon?*If you get lucky,~you win a prize.~This week's ID number~is <storage.get(integer,lOT)>.*Let's see if you have~a match.)
:if:<pokemon.otmatch(<storage.get(integer,lOT)>,has)>=true
:then
@storage.set(integer,matches,<pokemon.otmatch(<storage.get(integer,lOT)>,maxhits)>)
@storage.set(string,p_name,<pokemon.otmatch(<storage.get(integer,lOT)>,name)>)
@text.show(Congratulations!~We have a match with*the ID number of~<storage.get(string,p_name)>.)
:select:<storage.get(integer,matches)>
:when:1
@text.show(Ooh, you've matched~the last number.*You've won fifth prize,~a Moomoo Milk.)
@item.give(72,1)
@item.messagegive(72,1)
:when:2
@text.show(Ooh, you've matched~the last two numbers.*You've won fourth prize,~a PP Up.)
@item.give(62,1)
@item.messagegive(62,1)
:when:3
@text.show(Ooh, you've matched~the last three numbers.*You've won third prize,~a Exp. Share.)
@item.give(57,1)
@item.messagegive(57,1)
:when:4
@text.show(Ooh, you've matched~the last four numbers.*You've won second prize,~a Max Revive.)
@item.give(40,1)
@item.messagegive(40,1)
:when:5
@text.show(Wow!~You have a perfect match*of all five numbers!~We have a grand prize winner!*You have won a Master Ball!)
@item.give(1,1)
@item.messagegive(1,1)
:endwhen
:else
@text.show(Nope, none of your~ID numbers match.)
:endif
@text.show(Please come back~next week for the next~Lucky Number.)
:endif
:end