P3D-Legacy/P3D/Content/Data/Scripts/trainer/route35/007.dat

76 lines
4.4 KiB
Plaintext

version=2
:if:<register.registered(Irwin_Winter)>=true
:then
@text.show(Yo, <player.name>~it has been awhile.*Let's battle!)
@battle.trainer(route35\007)
@text.show(That was fun!*Let's do it~again sometime.*I also found~this item.*Here take it~as thanks for the~fun battle.)
@item.messagegive(34,1)
@item.give(34,1)
@Register.registertime(phone_reg_time_016,1,day)
@register.register(Irwin_Winter_battle)
@register.unregister(Irwin_Winter)
:end
:endif
:if:<register.registered(Irwin_Spring)>=true
:then
@Text.show(Hey, <player.name>.*Here's the~item I found.)
:if:<environment.weather>=Clear
:then
@item.messagegive(22,1)
@item.give(22,1)
:else
@item.messagegive(24,1)
@item.give(24,1)
:endif
@Text.show(I hope it~is useful.)
@register.register(Irwin_Spring_Item)
@register.unregister(Irwin_Spring)
@Register.registertime(phone_reg_time_016,1,day)
:end
:endif
:if:<register.registered(Irwin_Summer)>=true
:then
@text.show(Yo, <player.name>~it has been awhile.*Let's battle!)
@Register.registertime(phone_reg_time_016,1,day)
@battle.trainer(route35\007)
@text.show(That was fun!*Let's do it~again sometime.*I also found~this item.*Here take it~as thanks for the~fun battle.)
@item.messagegive(23,1)
@item.give(23,1)
@register.register(Irwin_Summer_battle)
@register.unregister(Irwin_Summer)
:end
:endif
:if:<register.registered(Irwin_Fall)>=true
:then
@Text.show(Hey, <player.name>.*Here's the~item I found.)
:if:<environment.daytime>=Morning <or> <environment.daytime>=Night
:then
@item.messagegive(8,1)
@item.give(8,1)
:else
@item.messagegive(169,1)
@item.give(169,1)
:endif
@Register.registertime(phone_reg_time_016,1,day)
@Text.show(I hope it~is useful.)
@register.register(Irwin_Fall_Item)
@register.unregister(Irwin_Fall)
:end
:endif
@battle.starttrainer(route35\007)
:if:<phone.got>=true
:then
:if:<register.registered(phone_contact_016)>=false
:then
@Text.Show(Hey, can I get your~number?*I sometimes find~interesting items~laying around.*I will call you~if I don't want it.)
@Options.Show(Yes,No)
:when:Yes
@Text.Show(<player.name> registered~Irwin's number.)
@Register.register(phone_contact_016)
@Text.Show(I'll ring you whenever~I find something.)
:when:No
:endwhen
:endif
:endif
:end