diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-04 22:11:34 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-04 22:11:34 -0500 |
commit | dbc28c87fefbceb4eaec522b535f9034b05fe3f2 (patch) | |
tree | 80592868e36e76ddf37eb7827eb9b0d1093693fe /res/scripts/global.lua | |
parent | 60f55603a8a880712a99ace377c09aed4f83c8f6 (diff) | |
download | tanetane-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.lua | 14 |
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() |
7 | end | 7 | end |
8 | |||
9 | -- for testing the claus joined route | ||
10 | function 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 | ||
21 | end | ||