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

108 lines
5.5 KiB
Plaintext
Raw Normal View History

2016-09-07 18:50:38 +02:00
<EFBFBD><EFBFBD>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<00>gear just arrived.*Here you go.)
@sound.play(success_small)
@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<00>mon Center.*We restore your tired~Pok<00>mon to full health.*Would you like to rest~your Pok<00>mon?)
:when:1
@text.show(Good morning! Welcome~to the Pok<00>mon Center.*We restore your tired~Pok<00>mon to full health.*Would you like to rest~your Pok<00>mon?)
:when:2
@text.show(Hello, and welcome to~the Pok<00>mon Center.*We restore your tired~Pok<00>mon to full health.*Would you like to rest~your Pok<00>mon?)
:when:3
@text.show(Good evening! Welcome~to the Pok<00>mon Center.*We restore your tired~Pok<00>mon to full health.*Would you like to rest~your Pok<00>mon?)
:endwhen
@options.setcancelindex(1)
@options.show(Yes,No)
:when:No
@text.show(We hope to see you~again!)
:end
:when:Yes
@text.show(OK, I'll take your~Pok<00>mon for a few~seconds.)
@pokemon.hide
@music.stop
2016-09-07 18:50:38 +02:00
@level.update
@npc.turn(0,1)
2016-09-07 18:50:38 +02:00
:if:<pokemon.count>>0
:then
@npc.warp(10,5.8,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
:if:<pokemon.count>>1
:then
@npc.warp(11,6,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
:if:<pokemon.count>>2
:then
@npc.warp(12,6.2,-0.05,1.05)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
:if:<pokemon.count>>3
:then
@npc.warp(13,5.8,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
:if:<pokemon.count>>4
:then
@npc.warp(14,6,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
:if:<pokemon.count>>5
:then
@npc.warp(15,6.2,-0.05,1.25)
@level.update
@sound.play(pokeball_set,false)
2016-09-07 18:50:38 +02:00
@level.wait(16)
:endif
@pokemon.heal
@sound.play(healing,false)
2016-09-07 18:50:38 +02:00
@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(26)
@music.forceplay(<level.musicloop>)
2016-09-07 18:50:38 +02:00
@npc.turn(0,2)
@text.show(Thank you for waiting.*We've restored your~Pok<00>mon to full health.*We hope to see you~again!)
:end
:endwhen
:end