P3D-Legacy/P3D/Content/Data/Scripts/phone/030.dat

42 lines
2.8 KiB
Plaintext

version=2
:if:<system.scripttrigger>=phonereceiving
@text.notification(Fisherman Wilton*Receiving call.......,500,5,5,phone,phone\018)
:end
:endif
@storage.set(int,message,0)
:if:<register.registered(phone_reg_030)>=true
@storage.set(int,message,1)
:if:<register.registered(phone_reg_030_2)>=true
@storage.set(int,message,2)
:endif
:else
:if:<register.registered(phone_reg_030_time)>=false
:if:<system.random(0,2)>=0
@storage.set(int,message,2)
@Register.register(phone_reg_030)
@Register.register(phone_reg_030_2)
:else
:if:<environment.dayinformation>=thursday,morning
@storage.set(int,message,1)
@Register.register(phone_reg_030)
:else
:if:<phone.callflag>=calling <or> <system.random(0,2)>>0
@storage.set(int,message,1)
@Register.register(phone_reg_030)
:endif
:endif
:endif
:endif
:endif
:select:<storage.get(int,message)>
:when:0
@Text.Show(Hello, <player.name>.*I have been having~alot of luck with~my trusty rod~recently.*Maybe we should~battle soon.*But not yet.*I still need a~little more training.)
:when:1
@Text.Show(Hello, <player.name>.*I have caught some~new Pokémon and I~want to test them out.*Will you come~battle me?*I will be waiting~on Route 44.)
:when:2
@text.show(Ah, it's Wilton...~Have you got a moment?*I snagged an item while~fishing.*Come pick it up on Route 44.)
:endwhen
:end