scn zzzKap01ZwischenweltPlayerStuhlScript
short doOnce
float posX01
float posX02
float posX02a
float posX03
float posX04
short frame
float timer
float timerTalk
begin OnActivate
if (doOnce == 0)
DisablePlayerControls
set timer to 5
Activate
set doOnce to 1
endif
end
begin GameMode
if (doOnce == 1 && timer > 0)
set timer to timer - getSecondsPassed
endif
if (zzzKap01D.fmTalk < 13 && doOnce == 1)
if (timerTalk > 0)
set timerTalk to timerTalk - getSecondsPassed
else
if (zzzKap01D.fmTalk == 2)
set timerTalk to 7
elseif (zzzKap01D.fmTalk == 3)
set timerTalk to 15
elseif (zzzKap01D.fmTalk == 4)
set timerTalk to 15
elseif (zzzKap01D.fmTalk == 5)
set timerTalk to 10
elseif (zzzKap01D.fmTalk == 6)
set timerTalk to 12
elseif (zzzKap01D.fmTalk == 7)
set timerTalk to 14
elseif (zzzKap01D.fmTalk == 8)
set timerTalk to 16
elseif (zzzKap01D.fmTalk == 9)
set timerTalk to 13
elseif (zzzKap01D.fmTalk == 10)
set timerTalk to 7
elseif (zzzKap01D.fmTalk == 11)
set timerTalk to 14
elseif (zzzKap01D.fmTalk == 12)
set timerTalk to 17
endif
zzzKap01FaehrmannRef.sayto player "zzzKap01FaehrmannTalk" 1
endif
endif
if (doOnce == 1 && timer <= 0)
if (zzzKap01DBoat01Ref.getPos x > -18000)
if (frame == 6)
zzzKap01DBoat01Ref.enable
set frame to 0
endif
set posX01 to zzzKap01DBoat01Ref.getPos x
set posX01 to posX01 - 3
zzzKap01DBoat01Ref.setPos x, posX01
zzzKap01DBoat01RealRef.setPos x, posX01
set frame to frame + 1
set posX02 to zzzKap01DPlayerStuhl0Ref.getPos x
set posX02 to posX02 - 3
zzzKap01DPlayerStuhl0Ref.setPos x, posX02
set posX02a to zzzKap01FaehrmannRef.getPos x
set posX02a to posX02a - 3
zzzKap01FaehrmannRef.setPos x, posX02a
set posX03 to zzzKap01DPlayerStuhlRef.getPos x
set posX03 to posX03 - 3
zzzKap01DPlayerStuhlRef.setPos x, posX03
set posX04 to player.getPos x
set posX04 to posX04 - 3
player.setPos x, posX04
if (frame == 5)
zzzKap01DBoat01Ref.disable
set frame to 6
endif
else
activate player
set doOnce to 2
zzzKap01DBoat01Ref.enable
endif
endif
end