summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/maps/hallucination_interior.tmx13
-rw-r--r--res/scripts/hallucination_interior.lua19
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")
13end 13end
14 14
15function 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()
32end
33
15function hallucination_interior.mailbox1() 34function 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)