summary refs log tree commit diff stats
path: root/res/scripts/underwater_start.lua
blob: 7f8ab62c3d3ee664c6bb25043d1e0455ae7cb12d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
underwater_start = {}

function underwater_start.init()
  loadMapScripts("underwater")
  underwater.make_lucas_underwater()
end

function underwater_start.exit_area()
  loadMapScripts("underwater")
  underwater.exit_area()
end

function underwater_start.talk_to_fish1()
  StartCutscene()
  DisplayMessage("* You deserved what she did to you.", "Fish", SpeakerType.BOY)
  WaitForEndOfMessage()

  Delay(500)

  PanToSprite("fish1", 1000)
  WaitForPan()

  Delay(500)

  UnpauseSprite("fish1")
  RemoveEnclosureZone("fish1")
  DirectSpriteToLocation("fish1", "fish_destination", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
  CameraFollowSprite("fish1")
  WaitForSpritePath("fish1")

  Delay(1000)
  DestroyNamedSprite("fish1")

  Delay(500)

  ReturnCamera(1000)

  HideCutsceneBars()
end