diff options
Diffstat (limited to 'res/scripts')
| -rw-r--r-- | res/scripts/map2.lua | 26 | 
1 files changed, 26 insertions, 0 deletions
| diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 295a0c1..3c3a5d9 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua | |||
| @@ -24,6 +24,32 @@ function map2.mailbox1() | |||
| 24 | HideCutsceneBars() | 24 | HideCutsceneBars() | 
| 25 | end | 25 | end | 
| 26 | 26 | ||
| 27 | function map2.join_claus() | ||
| 28 | StartCutscene() | ||
| 29 | SetAnimation("join_claus", "talk") | ||
| 30 | DisplayMessage("* Say, Lucas. Whatcha up to?\n\f* It looks so fun! Let me join you!", "Claus", SpeakerType.MAN) | ||
| 31 | ShowChoice("Yes", "No") | ||
| 32 | WaitForEndOfMessage() | ||
| 33 | |||
| 34 | if GetChoiceSelection() == 0 then | ||
| 35 | DisplayMessage("* Yes!\n\f* Okay, then I'll be at the very end!\n* Thanks!", "Claus", SpeakerType.MAN) | ||
| 36 | WaitForEndOfMessage() | ||
| 37 | |||
| 38 | local clausId = getSpriteByAlias("join_claus") | ||
| 39 | character():addSpriteToParty(getPlayerSprite(), clausId) | ||
| 40 | transform():undoCollision(clausId) | ||
| 41 | |||
| 42 | local clausSprite = getSprite(clausId) | ||
| 43 | clausSprite.persistent = true | ||
| 44 | else | ||
| 45 | DisplayMessage("* You won't let me join in?\nWhy not? Why not?\n\f* Why won't you let me join in?", "Claus", SpeakerType.MAN) | ||
| 46 | WaitForEndOfMessage() | ||
| 47 | end | ||
| 48 | |||
| 49 | SetAnimation("join_claus", "still") | ||
| 50 | HideCutsceneBars() | ||
| 51 | end | ||
| 52 | |||
| 27 | function map2.mailbox_lightning() | 53 | function map2.mailbox_lightning() | 
| 28 | StartCutscene() | 54 | StartCutscene() | 
| 29 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) | 55 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) | 
