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

31 lines
2.0 KiB
Plaintext

version=2
@text.show(<system.scripttrigger>)
:if:<system.scripttrigger>=phonereceiving
@text.notification(Bug Catcher Wade*Receiving call.......,500,5,5,phone,phone\004)
:end
:endif
@storage.set(int,message,0)
:if:<register.registered(phone_reg_004)>=true
@storage.set(int,message,1)
:else
:if:<register.registered(phone_reg_004_time)>=false
:if:<environment.dayinformation>=tuesday,night
@storage.set(int,message,1)
@Register.register(phone_reg_004)
:else
:if:<phone.callflag>=calling <or> <system.random(0,2)>>0
@storage.set(int,message,1)
@Register.register(phone_reg_004)
:endif
:endif
:endif
:endif
:select:<storage.get(int,message)>
:when:0
@Text.Show(Hello? This is~Wade speaking.*Oh. Hi, <player.name>!~How are you?*I am thinking about going to the~bug catching contest.*Are you going?*See you later!)
:when:1
@Text.Show(Hello, <player.name>.~This is Wade.*Do you want to~battle again?*I will be waiting~on Route 31.)
:endwhen
:end