P3D-Legacy/P3D/Content/Data/Scripts/olivine/dockhand.dat

50 lines
3.1 KiB
Plaintext

version=2
:if:<register.registered(ssaquaolivinelevels)>=False
@register.register(ssaquaolivinelevels,int,0)
:endif
:if:<register.registered(oneboatperday)>=False
:if:<environment.day>=Monday <or> <environment.day>=Friday <or> <register.registered(firsttimessaqua)>=True
@text.show(Welcome to the~Fast Ship S.S. Aqua.*Will you be boarding today?)
@options.show(Yes,No)
:when:Yes
:if:<inventory.countitem(41)>>0
@text.show(<player.name> flashed~the S.S. Ticket.)
@text.show(That's it.~Thank you!)
:if:<player.position>=-1,0,8
@player.turnto(3)
@player.move(1)
@player.turnto(2)
@player.move(1)
:endif
@player.turnto(2)
@player.move(2)
@screen.fadeout
:if:<register.registered(firsttimessaqua)>=True
@player.warp(SSAqua\firsttrip\main.dat,15,0.1,-1,0)
@npc.turn(0,3)
@level.update
@screen.fadein
:end
:endif
@register.registertime(oneboatperday,1,day)
@player.warp(SSAqua\olivine\main.dat,15,0.1,-1,0)
@npc.turn(0,3)
@level.update
@screen.fadein
:end
:endif
@text.show(I am sorry only those~with a ticket may board.)
:endwhen
:else
@text.show(I am sorry the S.S. Aqua~is not boarding passengers~at the moment.*Please come again later.)
:endif
:else
@text.show(I am sorry the S.S. Aqua~is not boarding passengers~at the moment.*Please come again later.)
:endif
:if:<player.position>=0,0,9
@player.setmovement(1,0,0)
@player.move(1)
:endif
@npc.turn(0,3)
:end