P3D-Legacy/P3D/Content/Data/Scripts/route43/toll.dat

59 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-09-07 18:50:38 +02:00
<EFBFBD><EFBFBD>version=2
:if:<register.registered(rocket_invasion_defeat)>=false
:then
@npc.Warp(0,0,-1,0)
@npc.Warp(1,1,-1,1)
@player.Move(0)
:select:<player.position>
:when:9,0,4
@npc.Turn(3,3)
@npc.Move(2,3)
@npc.Move(3,3)
:when:0,0,4
@npc.Turn(2,1)
@npc.Move(2,4)
@npc.Move(3,4)
:when:0,0,3
@npc.Turn(2,1)
@npc.Move(2,4)
@npc.Move(3,4)
:endwhen
@Text.show(Hold it there, kiddo!*The toll is $1000~to go through.)
:if:<player.money>>999
:then
@Player.money(-1000)
@sound.play(buy2)
@Text.show(Thank you very~much!)
@npc.Turn(2,0)
@npc.Turn(3,2)
@npc.Move(2,1)
@npc.Move(3,1)
@npc.Turn(3,0)
@npc.Turn(2,2)
:else
@text.show(You don't even have~$1000?*I don't believe you!~Come back if you want~to pay the toll!)
:if:<player.position(x)>=0
:then
@player.turnto(1)
@player.warp(routes\route43.dat,17,0.1,32,3)
@level.update
@player.move(1)
:else
@player.turnto(3)
@player.warp(routes\route43.dat,17,0.1,35,3)
@level.update
@player.move(1)
:endif
:endif
:end
:endif
:end