version=2
:if:<system.scripttrigger>=phonereceiving
	@text.notification(Lass Krise*Receiving call.......,500,5,5,phone,phone\017)
	:end
:endif

@storage.set(int,message,0)
:if:<register.registered(phone_reg_017)>=true
	@storage.set(int,message,1)
:else
	:if:<register.registered(phone_reg_017_time)>=false
		:if:<environment.dayinformation>=sunday,morning
			@storage.set(int,message,1)
			@Register.register(phone_reg_017)
		:else
			:if:<phone.callflag>=calling <or> <system.random(0,2)>>0
				@storage.set(int,message,1)
				@Register.register(phone_reg_017)
			:endif
		:endif
	:endif
:endif

:select:<storage.get(int,message)>
	:when:0
		@Text.Show(Hello, <player.name>.*How are you?*It is nice~here in the park.*You should come~visit some time.)
	:when:1
		@Text.Show(Hello, <player.name>.*I really want to~battle you again.*I will be waiting~at the National Park.)
:endwhen
:end