diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-03-14 15:38:02 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-03-14 15:38:02 -0400 |
commit | 68c2e17714e7c1cd7b47f65a08933ddff9e5fa2a (patch) | |
tree | 2853d53be1e07111b00e29d4c397b490b37572e3 /res | |
parent | 4c8e15722822d0e5e872f872838a8d71af84e1d4 (diff) | |
download | tanetane-68c2e17714e7c1cd7b47f65a08933ddff9e5fa2a.tar.gz tanetane-68c2e17714e7c1cd7b47f65a08933ddff9e5fa2a.tar.bz2 tanetane-68c2e17714e7c1cd7b47f65a08933ddff9e5fa2a.zip |
Added Magic (DCMC) to hallucination_interior
Diffstat (limited to 'res')
-rw-r--r-- | res/maps/hallucination_interior.tmx | 13 | ||||
-rw-r--r-- | res/scripts/hallucination_interior.lua | 19 |
2 files changed, 31 insertions, 1 deletions
diff --git a/res/maps/hallucination_interior.tmx b/res/maps/hallucination_interior.tmx index ba43c66..a741b6c 100644 --- a/res/maps/hallucination_interior.tmx +++ b/res/maps/hallucination_interior.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="64" height="64" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="17"> | 2 | <map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="64" height="64" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="19"> |
3 | <properties> | 3 | <properties> |
4 | <property name="music" value="red_green_yellow_yellow"/> | 4 | <property name="music" value="red_green_yellow_yellow"/> |
5 | </properties> | 5 | </properties> |
@@ -196,6 +196,17 @@ | |||
196 | </properties> | 196 | </properties> |
197 | <point/> | 197 | <point/> |
198 | </object> | 198 | </object> |
199 | <object id="17" name="magic_dcmc" type="sprite" x="304" y="240"> | ||
200 | <properties> | ||
201 | <property name="animation" value="magic"/> | ||
202 | <property name="interactionScript" value="talk_to_magic"/> | ||
203 | <property name="shadow" type="bool" value="true"/> | ||
204 | </properties> | ||
205 | <point/> | ||
206 | </object> | ||
207 | <object id="18" name="magic_walkaway" type="warp" x="348.667" y="111"> | ||
208 | <point/> | ||
209 | </object> | ||
199 | </objectgroup> | 210 | </objectgroup> |
200 | <layer id="1" name="Upper" width="64" height="64"> | 211 | <layer id="1" name="Upper" width="64" height="64"> |
201 | <properties> | 212 | <properties> |
diff --git a/res/scripts/hallucination_interior.lua b/res/scripts/hallucination_interior.lua index 9754de3..8851d2d 100644 --- a/res/scripts/hallucination_interior.lua +++ b/res/scripts/hallucination_interior.lua | |||
@@ -12,6 +12,25 @@ function hallucination_interior.off_right() | |||
12 | ChangeMap("hallucination_mirror", "fromLeft") | 12 | ChangeMap("hallucination_mirror", "fromLeft") |
13 | end | 13 | end |
14 | 14 | ||
15 | function hallucination_interior.talk_to_magic() | ||
16 | StartCutscene() | ||
17 | SetAnimation("magic_dcmc", "talk") | ||
18 | DisplayMessage("* Blah blah blah you should come to the show!", "Magic", SpeakerType.MAN) | ||
19 | WaitForEndOfMessage() | ||
20 | |||
21 | SetAnimation("magic_dcmc", "still") | ||
22 | Delay(1000) | ||
23 | |||
24 | UnpauseSprite("magic_dcmc") | ||
25 | SetMovementSpeed("magic_dcmc", 1) | ||
26 | DirectSpriteToLocation("magic_dcmc", "magic_walkaway", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) | ||
27 | WaitForSpritePath("magic_dcmc") | ||
28 | |||
29 | DisableSprite() | ||
30 | |||
31 | HideCutsceneBars() | ||
32 | end | ||
33 | |||
15 | function hallucination_interior.mailbox1() | 34 | function hallucination_interior.mailbox1() |
16 | StartCutscene() | 35 | StartCutscene() |
17 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) | 36 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) |