P3D-Legacy/P3D/Content/Data/Scripts/frontier/fromfrontier.dat

59 lines
3.0 KiB
Plaintext

version=2
@text.show(This is the express travel~Sea Plane direct to Route 50.*Will you be traveling~with us today?)
@options.show(Yes,No)
:when:No
:end
:endwhen
:if:<inventory.countitem(655)>=0
@text.show(I am sorry only those~with a ticket may board.)
:end
:endif
@screen.fadeout(10)
@level.update
@storage.set(boolean,third,<camera.thirdperson>)
@camera.activatethirdperson
@camera.setyaw(3.5)
@camera.setpitch(-0.307)
@camera.setposition(-3.4,2.62,3.7)
@camera.update
@camera.fix
@screen.fadein(10)
@npc.turn(0,3)
@npc.moveasync(0,4)
@player.move(4)
@player.turnto(2)
@npc.turn(0,1)
@player.move(2)
@npc.move(0,1)
@npc.turn(0,2)
@npc.move(0,1)
@player.warp(~,-1,~)
@npc.move(0,1)
@npc.remove(0)
:while:<entity.additionalvalue(2)><40
@level.wait(2)
@entity.setadditionalvalue(2,<math.int(<entity.additionalvalue(2)>+1)>)
@level.update
:endwhile
:while:<entity.positionx(1)>>32
@entity.addtoposition(2,(<entity.positionx(1)>-50)/25,0,0)
@entity.addtoposition(1,(<entity.positionx(1)>-50)/25,0,0)
@level.update
:endwhile
:while:<entity.positionx(1)>>15
@entity.addtoposition(2,(<entity.positionx(1)>-50)/25,(50-<entity.positionx(1)>)/100,0)
@entity.addtoposition(1,(<entity.positionx(1)>-50)/25,(50-<entity.positionx(1)>)/100,0)
@level.update
:endwhile
@screen.fadeout
@camera.defix
@camera.reset
@player.warp(frontier\port.dat,2,0.1,3)
@player.turnto(1)
@level.update
@camera.setthirdperson(<storage.get(boolean,third)>)
@screen.fadein
:end