summary refs log tree commit diff stats
path: root/res/scripts/global.lua
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-04 22:11:34 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-04 22:11:34 -0500
commitdbc28c87fefbceb4eaec522b535f9034b05fe3f2 (patch)
tree80592868e36e76ddf37eb7827eb9b0d1093693fe /res/scripts/global.lua
parent60f55603a8a880712a99ace377c09aed4f83c8f6 (diff)
downloadtanetane-dbc28c87fefbceb4eaec522b535f9034b05fe3f2.tar.gz
tanetane-dbc28c87fefbceb4eaec522b535f9034b05fe3f2.tar.bz2
tanetane-dbc28c87fefbceb4eaec522b535f9034b05fe3f2.zip
Started "Claus falls off ladder" scene
Diffstat (limited to 'res/scripts/global.lua')
-rw-r--r--res/scripts/global.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/res/scripts/global.lua b/res/scripts/global.lua index 48084c8..8eddf55 100644 --- a/res/scripts/global.lua +++ b/res/scripts/global.lua
@@ -5,3 +5,17 @@ function global.no_problem_here()
5 DisplayMessage("* No problem here.", "", SpeakerType.NONE) 5 DisplayMessage("* No problem here.", "", SpeakerType.NONE)
6 HideCutsceneBars() 6 HideCutsceneBars()
7end 7end
8
9-- for testing the claus joined route
10function global.test_join_claus()
11 CreateAnimatedSpriteAtPosition("join_claus", "claus", 0, 0, "still", Direction.DOWN, SpriteLayer.NORMAL)
12
13 local clausId = getSpriteByAlias("join_claus")
14 character():addSpriteToParty(getPlayerSprite(), clausId)
15
16 local clausSprite = getSprite(clausId)
17 clausSprite.persistent = true
18
19 gamestate.claus_joined = true
20 gamestate.still_has_claus = true
21end