47 lines
3.6 KiB
Plaintext
47 lines
3.6 KiB
Plaintext
version=2
|
|
:if:<register.registered(bargainshop)>=false
|
|
@npc.unregister(goldenrod.dat|20|position|23,6,24)
|
|
:endif
|
|
:if:<system.scripttrigger>=phonereceiving
|
|
@text.notification(Camper Todd*Receiving call.......,500,5,5,,phone\010)
|
|
:end
|
|
:endif
|
|
|
|
@storage.set(int,message,0)
|
|
:if:<register.registered(phone_reg_010)>=true
|
|
@storage.set(int,message,1)
|
|
:if:<register.registered(bargainshop)>=true
|
|
@storage.set(int,message,2)
|
|
:endif
|
|
:else
|
|
:if:<register.registered(phone_reg_010_time)>=false
|
|
:if:<system.random(0,4)>=0 <and> <register.registered(rocket_invasion_radio)>=false
|
|
@Register.registertime(phone_reg_010,3,hour)
|
|
@register.registertime(bargainshop,3,hour)
|
|
@npc.register(goldenrod.dat|20|position|23,6,24)
|
|
@Register.registertime(phone_reg_time_010,1,day)
|
|
@storage.set(int,message,2)
|
|
:else
|
|
:if:<environment.dayinformation>=saturday,morning
|
|
@storage.set(int,message,1)
|
|
@Register.register(phone_reg_010)
|
|
:else
|
|
:if:<phone.callflag>=calling <or> <system.random(0,2)>>0
|
|
@storage.set(int,message,1)
|
|
@Register.register(phone_reg_010)
|
|
:endif
|
|
:endif
|
|
:endif
|
|
:endif
|
|
:endif
|
|
|
|
:select:<storage.get(int,message)>
|
|
:when:0
|
|
@Text.Show(Hello, <player.name>.*I have heard that~sometimes there are~sales at the~Dept. Store.*I will let~you know if~I hear of one.*Bye.)
|
|
:when:1
|
|
@Text.Show(Yo, <player.name>~this is Todd here.*How are you?*I have been training~very hard.*Want to battle?*I will be waiting~on Route 34.)
|
|
:when:2
|
|
@text.show(<player.name>, right?~This is it,~the one we've all been~waiting for!*Goldenrod Department Store's~bargain sale is on now!*Want it cheap?~Want it lots?*Don't miss this Goldenrod~chance!*Huh?~I sound like a huckster?*Well, yeah.~I was mimicking them...*Anyway, you've got to get~there as soon as you can!*See you later!)
|
|
:endwhen
|
|
:end
|