P3D-Legacy/P3D/Content/Data/Scripts/tintower/ho_oh_appear.dat

66 lines
2.8 KiB
Plaintext
Raw Normal View History

2016-09-07 18:50:38 +02:00
<EFBFBD><EFBFBD>version=2
2021-10-09 07:23:22 +02:00
:if:<register.registered(battle_hooh_tintower)>=false
:if:<register.registered(shinyhooh)>=false
@register.register(shinyhooh,bool,false)
:if:<system.random(1,<math.floor(<pokemon.mastershinyrate>/2)>)>=1
2022-08-25 08:12:33 +02:00
@register.change(shinyhooh,true)
2021-10-09 07:23:22 +02:00
:endif
:endif
@level.update
@player.move(0)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@storage.set(string,playerskin,<player.skin>)
@storage.set(boolean,thirdperson,<player.thirdperson>)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@pokemon.cry(250)
2022-08-25 08:12:33 +02:00
@player.wearskin([POKEMON|N]250)
2021-10-09 07:23:22 +02:00
:if:<register.value(shinyhooh)>=true
@npc.wearskin(0,[POKEMON|S]250)
:endif
@player.warp(4,10,-20)
@camera.activatethirdperson
@player.turnto(2)
@camera.settoplayerfacing
@player.move(24)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@player.setmovement(0,-1,0)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@player.move(10)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@player.setmovement(0,0,0)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@pokemon.cry(250)
@level.wait(50)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
:if:<storage.get(boolean,thirdperson)>=false
2016-09-07 18:50:38 +02:00
@camera.deactivethirdperson
2021-10-09 07:23:22 +02:00
:endif
@camera.reset
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@player.wearskin(<storage.get(string,playerskin)>)
@player.warp(4,0.1,9)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@npc.warp(0,4,0.45,4)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@player.turnto(0)
@camera.settoplayerfacing
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@pokemon.cry(250)
2016-09-07 18:50:38 +02:00
2021-10-09 07:23:22 +02:00
@npc.register(ecruteak\tintower10f.dat|0|position|4,0.45,4)
@register.register(battle_hooh_tintower)
:else
@player.achieveemblem(heart gold)
:if:<npc.exists(0)>=true
:if:<register.value(shinyhooh)>=true
@npc.wearskin(0,[POKEMON|S]250)
:endif
:if:<npc.position(0)>=4,1,4
@npc.warp(0,4,0.45,4)
2016-09-07 18:50:38 +02:00
:endif
:endif
2021-10-09 07:23:22 +02:00
:endif
2016-09-07 18:50:38 +02:00
:end