diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-12 00:45:43 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-12 00:45:43 -0500 |
commit | 0a3ec1862fd479295639a38ab4799e4d36e12c13 (patch) | |
tree | 8651ccafcae9d53fb63234e089158a7cb29c278c /res/scripts | |
parent | 5ecd0f428dd8292a17c5013c525a4f5d3967acb8 (diff) | |
download | tanetane-0a3ec1862fd479295639a38ab4799e4d36e12c13.tar.gz tanetane-0a3ec1862fd479295639a38ab4799e4d36e12c13.tar.bz2 tanetane-0a3ec1862fd479295639a38ab4799e4d36e12c13.zip |
Added tile-sized invisible sprites
These are used when you want a solid, interactable object that is part of the map instead of sprite animated (e.g. the mailboxes).
Diffstat (limited to 'res/scripts')
-rw-r--r-- | res/scripts/map2.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 1f14b31..1b55072 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua | |||
@@ -3,3 +3,23 @@ map2 = {} | |||
3 | function map2.off_left() | 3 | function map2.off_left() |
4 | ChangeMap("map1", "fromRight") | 4 | ChangeMap("map1", "fromRight") |
5 | end | 5 | end |
6 | |||
7 | function map2.mailbox1() | ||
8 | StartCutscene() | ||
9 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) | ||
10 | ShowChoice("Yes", "No") | ||
11 | WaitForEndOfMessage() | ||
12 | |||
13 | if GetChoiceSelection() == 0 then | ||
14 | DisplayMessage("* There are lots of postcards inside.\n* Read them?", "", SpeakerType.NONE) | ||
15 | ShowChoice("Yes", "No") | ||
16 | WaitForEndOfMessage() | ||
17 | |||
18 | if GetChoiceSelection() == 0 then | ||
19 | DisplayMessage("* The boy named Lucas is crying at a grave.\n\f* The boy named Lucas and his dog are loitering in the forest.\n\f* The boy named Lucas is getting into trouble in the mountains.\n\f* The boy named Lucas stole Beanoff from our garden.\n\f* The boy named Lucas is bullying animals.\n\f* The boy named Lucas learned some bad magic.\n\f* The boy named Lucas ......\n\f* The boy named Lucas ......\n\f* The boy named Lucas ......\n\f* The boy named Lucas .........\n\f* The mailbox let out a tremendous scream.", "", SpeakerType.NONE) | ||
20 | WaitForEndOfMessage() | ||
21 | end | ||
22 | end | ||
23 | |||
24 | HideCutsceneBars() | ||
25 | end | ||