P3D-Legacy/P3D/Content/Data/Scripts/powerplant/leave.dat

17 lines
1.3 KiB
Plaintext

Version=2
:if:<register.registered(elmcallplant)>=False <and> <register.registered(powerplanton)>=True
@player.move(0)
@text.notification(Prof. Elm~Receiving call.......,250,5,5,phone,phone\events\elm_kanto_radio)
:endif
:if:<register.registered(battlezapdos)>=false <and> <register.registered(earthbadge_obtain)>=true <and> <player.position(x)><20
:if:<register.registered(shinyzapdos)>=false
@register.register(shinyzapdos,bool,false)
:if:<system.random(1,<math.floor(<pokemon.mastershinyrate>/2)>)>=1
@register.change(shinyzapdos,true)
:endif
:endif
:if:<register.value(shinyzapdos)>=true
@npc.wearskin(3,[POKEMON|S]145)
:endif
:endif
:end