P3D-Legacy/P3D/Content/Data/Scripts/center_script.dat

118 lines
6.0 KiB
Plaintext

version=2
:if:<register.registered(bill_encounter)>=true <and> <register.registered(pokegear_card_GTS)>=false
:then
@text.show(Oh, hello there,~<player.name>.*The new GTS Card for~your Pokégear just arrived.*Here you go.)
@sound.play(success_small,1)
@text.show(<player.name> received~the GTS Card!)
@text.show(With the GTS Card,~you can trade with~people all around the world.)
@register.register(pokegear_card_GTS)
:endif
:select:<environment.daytimeid>
:when:0
@text.show(Hello, and welcome to~the Pokémon Center.*We restore your tired~Pokémon to full health.*Would you like to rest~your Pokémon?)
:when:1
@text.show(Good morning! Welcome~to the Pokémon Center.*We restore your tired~Pokémon to full health.*Would you like to rest~your Pokémon?)
:when:2
@text.show(Hello, and welcome to~the Pokémon Center.*We restore your tired~Pokémon to full health.*Would you like to rest~your Pokémon?)
:when:3
@text.show(Good evening! Welcome~to the Pokémon Center.*We restore your tired~Pokémon to full health.*Would you like to rest~your Pokémon?)
:endwhen
@options.setcancelindex(1)
@options.show(Yes,No)
:when:No
@npc.wearskin(0,0_bow)
@level.wait(45)
@npc.wearskin(0,0)
@text.show(We hope to see you~again!)
:end
:when:Yes
@text.show(OK, I'll take your~Pokémon for a few~seconds.)
@pokemon.hide
@music.stop
@level.update
@npc.turn(0,1)
:if:<pokemon.count>>0
:then
@npc.warp(10,5.8,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
:if:<pokemon.count>>1
:then
@npc.warp(11,6,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
:if:<pokemon.count>>2
:then
@npc.warp(12,6.2,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
:if:<pokemon.count>>3
:then
@npc.warp(13,5.8,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
:if:<pokemon.count>>4
:then
@npc.warp(14,6,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
:if:<pokemon.count>>5
:then
@npc.warp(15,6.2,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
@level.wait(36)
:endif
@level.wait(18)
@pokemon.heal
@sound.play(healing,false)
@level.wait(180)
@npc.warp(10,5.8,-1.3,1.05)
@npc.warp(11,6,-1.3,1.05)
@npc.warp(12,6.2,-1.3,1.05)
@npc.warp(13,5.8,-1.3,1.25)
@npc.warp(14,6,-1.3,1.25)
@npc.warp(15,6.2,-1.3,1.25)
@level.update
@level.wait(30)
@music.forceplay(<level.musicloop>)
@npc.turn(0,2)
@text.show(Thank you for waiting.*We've restored your~Pokémon to full health.)
@npc.wearskin(0,0_bow)
@level.wait(45)
@npc.wearskin(0,0)
@text.show(We hope to see you~again!)
@level.wait(5)
@player.turnto(2)
:end
:endwhen
:end