diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-07 10:14:17 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-07 10:14:17 -0500 |
commit | 767ca6ea1dfdaf890c24900515d6d5a5644ba262 (patch) | |
tree | 8738046ebb3d700a86b956c03463a9afc0498477 | |
parent | 6dab458c5fcd97aca871b46a43a2b46c80d1ed3c (diff) | |
download | tanetane-767ca6ea1dfdaf890c24900515d6d5a5644ba262.tar.gz tanetane-767ca6ea1dfdaf890c24900515d6d5a5644ba262.tar.bz2 tanetane-767ca6ea1dfdaf890c24900515d6d5a5644ba262.zip |
Added message when examining the mirror
-rw-r--r-- | res/maps/hallucination_mirror.tmx | 11 | ||||
-rw-r--r-- | res/scripts/hallucination_mirror.lua | 17 |
2 files changed, 27 insertions, 1 deletions
diff --git a/res/maps/hallucination_mirror.tmx b/res/maps/hallucination_mirror.tmx index 1c5eee2..c2c8053 100644 --- a/res/maps/hallucination_mirror.tmx +++ b/res/maps/hallucination_mirror.tmx | |||
@@ -1,5 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="48" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="12"> | 2 | <map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="48" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="13"> |
3 | <properties> | 3 | <properties> |
4 | <property name="maskZone" value="mask"/> | 4 | <property name="maskZone" value="mask"/> |
5 | </properties> | 5 | </properties> |
@@ -114,6 +114,15 @@ | |||
114 | <point/> | 114 | <point/> |
115 | </object> | 115 | </object> |
116 | <object id="11" name="mirror_sight" type="zone" x="176" y="128" width="176" height="48"/> | 116 | <object id="11" name="mirror_sight" type="zone" x="176" y="128" width="176" height="48"/> |
117 | <object id="12" name="mirror_edge" type="sprite" x="176" y="112" width="176" height="16"> | ||
118 | <properties> | ||
119 | <property name="collisionHeight" type="int" value="16"/> | ||
120 | <property name="collisionOffsetX" type="int" value="0"/> | ||
121 | <property name="collisionOffsetY" type="int" value="0"/> | ||
122 | <property name="collisionWidth" type="int" value="176"/> | ||
123 | <property name="interactionScript" value="examine_mirror"/> | ||
124 | </properties> | ||
125 | </object> | ||
117 | </objectgroup> | 126 | </objectgroup> |
118 | <layer id="4" name="Upper" width="48" height="16"> | 127 | <layer id="4" name="Upper" width="48" height="16"> |
119 | <properties> | 128 | <properties> |
diff --git a/res/scripts/hallucination_mirror.lua b/res/scripts/hallucination_mirror.lua index bf1faba..053a710 100644 --- a/res/scripts/hallucination_mirror.lua +++ b/res/scripts/hallucination_mirror.lua | |||
@@ -55,3 +55,20 @@ function hallucination_mirror.mailbox() | |||
55 | WaitForEndOfMessage() | 55 | WaitForEndOfMessage() |
56 | HideCutsceneBars() | 56 | HideCutsceneBars() |
57 | end | 57 | end |
58 | |||
59 | function hallucination_mirror.examine_mirror() | ||
60 | StartCutscene() | ||
61 | Halt("double_lucas") | ||
62 | Halt("double_kuma") | ||
63 | Halt("double_duster") | ||
64 | Halt("double_boney") | ||
65 | |||
66 | if gamestate.read_mirror_message then | ||
67 | DisplayMessage("* Something seems wrong about this.", "", SpeakerType.NONE) | ||
68 | else | ||
69 | DisplayMessage("* Looking handsome.", "", SpeakerType.NONE) | ||
70 | end | ||
71 | |||
72 | WaitForEndOfMessage() | ||
73 | HideCutsceneBars() | ||
74 | end | ||