diff options
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 | ||
