P3D-Legacy/P3D/Content/Data/Scripts/route34/daycare/main.dat

76 lines
4.1 KiB
Plaintext

version=2
@daycare.clean(0)
:if:<register.registered(oddegg_got)>=false
:then
@script.start(route34\daycare\odd_egg)
:else
:if:<daycare.hasegg(0)>=true
:then
@script.start(route34\daycare\take_egg)
@daycare.clean(0)
:end
:endif
:if:<register.registered(daycare_callid_0)>=false
:then
@text.show(I'm the Day-Care Man.*We can raise Pokémon~for you.~What do you want to~do today?*Oh, I can give you my~phone number, so I can call*you if I need to talk to~you about your Pokémon.)
@options.show(Yes,No)
:when:Yes
@text.show(Alright, here you go!)
@register.register(daycare_callid_0,str,012)
@register.register(phone_contact_012)
@text.show(<player.name> registered~the Day-Care Man's number.)
@text.show(We can raise Pokémon~for you.~What do you want to~do today?)
:when:No
@text.show(Very well.~Please come again.)
:end
:endwhen
:else
@text.show(I'm the Day-Care Man.*We can raise Pokémon~for you.~What do you want to~do today?)
:endif
:select:<daycare.countpokemon(0)>
:when:0
@options.show(Leave Pokémon,Cancel)
:when:Leave Pokémon
@script.start(route34\daycare\leave_pokemon)
@daycare.clean(0)
:when:Cancel
@text.show(Very well.~Please come again.)
:endwhen
:end
:when:1
@options.show(Leave Pokémon,Take back,Cancel)
:when:Leave Pokémon
@script.start(route34\daycare\leave_pokemon)
@daycare.clean(0)
:when:Take back
@text.show(You have energetic Pokémon!~Would you like your~Pokémon back?)
@script.start(route34\daycare\take_back)
@daycare.clean(0)
:when:Cancel
@text.show(Very well.~Please come again.)
:endwhen
:end
:when:2
@options.show(Take back,Cancel)
:when:Take back
@text.show(You have energetic Pokémon!~Would you like your~Pokémon back?)
@script.start(route34\daycare\take_back)
@daycare.clean(0)
:when:Cancel
@text.show(Very well.~Please come again.)
:endwhen
:end
:endwhen
:endif
:end