summary refs log tree commit diff stats
path: root/res/scripts/global.lua
blob: 8eddf5505392920aa508fcb666f3c34e5bd824e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
global = {}

function global.no_problem_here()
  StartCutscene()
  DisplayMessage("* No problem here.", "", SpeakerType.NONE)
  HideCutsceneBars()
end

-- for testing the claus joined route
function global.test_join_claus()
  CreateAnimatedSpriteAtPosition("join_claus", "claus", 0, 0, "still", Direction.DOWN, SpriteLayer.NORMAL)

  local clausId = getSpriteByAlias("join_claus")
  character():addSpriteToParty(getPlayerSprite(), clausId)

  local clausSprite = getSprite(clausId)
  clausSprite.persistent = true

  gamestate.claus_joined = true
  gamestate.still_has_claus = true
end