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

56 lines
2.9 KiB
Plaintext

version=2
@text.show(This is the express travel~Sea Plane direct to~the Battle Frontier.*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
@npc.turn(0,3)
@npc.moveasync(0,2)
@player.move(2)
@screen.fadeout(10)
@player.warp(routes\route50.dat,79,0.1,14)
@level.update
@npc.warp(6,86,0,15)
@storage.set(boolean,third,<camera.thirdperson>)
@camera.activatethirdperson
@camera.setyaw(4.65)
@camera.setpitch(-0.307)
@camera.setposition(-1.4,2.62,-1.81)
@camera.update
@camera.fix
@screen.fadein(10)
@player.move(7)
@player.warp(~,-1,~)
@npc.move(6,1)
@npc.remove(6)
:while:<entity.additionalvalue(15)><40
@level.wait(2)
@entity.setadditionalvalue(15,<math.int(<entity.additionalvalue(15)>+1)>)
@level.update
:endwhile
:while:<entity.positionz(14)><20
@entity.addtoposition(15,0,0,<entity.positionz(14)>/35)
@entity.addtoposition(14,0,0,<entity.positionz(14)>/35)
@level.update
:endwhile
:while:<entity.positionz(14)><45
@entity.addtoposition(15,0,<entity.positionz(14)>/100,<entity.positionz(14)>/25)
@entity.addtoposition(14,0,<entity.positionz(14)>/100,<entity.positionz(14)>/25)
@level.update
:endwhile
@screen.fadeout
@camera.defix
@camera.reset
@player.warp(frontier\main.dat,35,0.1,71)
@player.turnto(1)
@level.update
@camera.setthirdperson(<storage.get(boolean,third)>)
@screen.fadein
:end