summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--res/maps/hallucination_cliff.tmx80
-rw-r--r--res/scripts/hallucination_cliff.lua107
2 files changed, 182 insertions, 5 deletions
diff --git a/res/maps/hallucination_cliff.tmx b/res/maps/hallucination_cliff.tmx index 0e09ecd..e7ed864 100644 --- a/res/maps/hallucination_cliff.tmx +++ b/res/maps/hallucination_cliff.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="48" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="18"> 2<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="48" height="48" tilewidth="16" tileheight="16" infinite="0" nextlayerid="4" nextobjectid="24">
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>
@@ -108,6 +108,58 @@
1081,1,1,1,1,1,1,1,14,15,1073742201,1073742194,7,7,3221225842,1073742201,14,15,14,1,1,14,15,1,1,1,1,1,1,1,1,1,1,14,15,1,1,14,15,1,1,14,15,1,1,1,1,1 1081,1,1,1,1,1,1,1,14,15,1073742201,1073742194,7,7,3221225842,1073742201,14,15,14,1,1,14,15,1,1,1,1,1,1,1,1,1,1,14,15,1,1,14,15,1,1,14,15,1,1,1,1,1
109</data> 109</data>
110 </layer> 110 </layer>
111 <layer id="3" name="Lower (ornamentation)" width="48" height="48">
112 <data encoding="csv">
11393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
11993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
12993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,224,225,226,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,410,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
13993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
14993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
15993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
16093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93
161</data>
162 </layer>
111 <objectgroup id="2" name="Objects"> 163 <objectgroup id="2" name="Objects">
112 <object id="1" name="fromBottom" type="warp" x="208.333" y="752.667"> 164 <object id="1" name="fromBottom" type="warp" x="208.333" y="752.667">
113 <point/> 165 <point/>
@@ -176,12 +228,32 @@
176 </properties> 228 </properties>
177 <point/> 229 <point/>
178 </object> 230 </object>
179 <object id="16" name="hinawa_second_position" type="warp" x="456" y="288"> 231 <object id="16" name="hinawa_second_position" type="warp" x="456" y="296">
180 <point/> 232 <point/>
181 </object> 233 </object>
182 <object id="17" name="hinawa_offscreen_first" type="warp" x="432" y="456"> 234 <object id="17" name="hinawa_offscreen_first" type="warp" x="432" y="456">
183 <point/> 235 <point/>
184 </object> 236 </object>
237 <object id="18" name="hinawa_mid_checkpoint" type="warp" x="384" y="296">
238 <point/>
239 </object>
240 <object id="19" name="hinawa_off_cliff" type="warp" x="296" y="296">
241 <point/>
242 </object>
243 <object id="20" name="kuma_watch_point" type="warp" x="456" y="282">
244 <point/>
245 </object>
246 <object id="21" name="boney_watch_point" type="warp" x="456" y="312">
247 <point/>
248 </object>
249 <object id="22" name="see_hinawa_second_event" type="trigger" x="448" y="336" width="16" height="16">
250 <properties>
251 <property name="script" value="see_hinawa_second_event"/>
252 </properties>
253 </object>
254 <object id="23" name="second_hinawa_vantage" type="warp" x="456" y="330">
255 <point/>
256 </object>
185 </objectgroup> 257 </objectgroup>
186 <layer id="1" name="Upper" width="48" height="48"> 258 <layer id="1" name="Upper" width="48" height="48">
187 <properties> 259 <properties>
@@ -205,8 +277,8 @@
20593,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,276,230,232,229, 27793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,276,230,232,229,
20693,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,403,404,405,406,407,2147484051,93,234,241,229,232, 27893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,403,404,405,406,407,2147484051,93,234,241,229,232,
20793,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,408,409,229, 27993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,408,409,229,
20893,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,224,225,226,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, 28093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
20993,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,231,228,93,93,410,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, 28193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,231,228,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
21093,93,93,93,93,93,93,93,93,93,93,93,93,93,93,231,228,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, 28293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,231,228,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
21193,93,93,93,93,93,93,93,93,93,93,93,93,93,93,233,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, 28393,93,93,93,93,93,93,93,93,93,93,93,93,93,93,233,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
21293,93,93,93,93,93,93,93,93,93,93,93,93,93,93,234,93,93,93,93,93,93,411,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93, 28493,93,93,93,93,93,93,93,93,93,93,93,93,93,93,234,93,93,93,93,93,93,411,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,
diff --git a/res/scripts/hallucination_cliff.lua b/res/scripts/hallucination_cliff.lua index d539e62..51fa433 100644 --- a/res/scripts/hallucination_cliff.lua +++ b/res/scripts/hallucination_cliff.lua
@@ -203,7 +203,6 @@ function hallucination_cliff.see_hinawa_first_event()
203 WaitForPan() 203 WaitForPan()
204 Delay(2000) 204 Delay(2000)
205 205
206 MakeSpriteNotSolid("hinawa")
207 UnpauseSprite("hinawa") 206 UnpauseSprite("hinawa")
208 DirectSpriteToLocation("hinawa", "hinawa_offscreen_first", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) 207 DirectSpriteToLocation("hinawa", "hinawa_offscreen_first", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
209 WaitForSpritePath("hinawa") 208 WaitForSpritePath("hinawa")
@@ -220,3 +219,109 @@ function hallucination_cliff.see_hinawa_first_event()
220 219
221 HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) 220 HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION)
222end 221end
222
223function hallucination_cliff.see_hinawa_second_event()
224 -- only trigger this scene if the first half of the scene has occured and the
225 -- event hasn't been disabled.
226 if not (gamestate.hinawa_can_appear and gamestate.saw_hinawa_first_scene) then
227 return
228 end
229
230 -- do not trigger a second time.
231 if gamestate.saw_hinawa_second_scene then
232 return
233 end
234
235 gamestate.saw_hinawa_second_scene = true
236
237 -- automatically move lucas forward enough that he is no longer on the ladder.
238 DisablePlayerControl()
239 Halt("lucas")
240 DirectSpriteToLocation("lucas", "second_hinawa_vantage", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
241 WaitForSpritePath("lucas")
242 DisableBehaviour("lucas")
243
244 StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION)
245 Delay(1000)
246
247 -- we need to do this because a lot of pathfinding is going to fire off almost
248 -- at the same time, and while the paths the characters take should not
249 -- actually intersect, the pathfinding is done with only their starting
250 -- positions in mind.
251 MakeSpriteNotSolid("hinawa")
252 MakeSpriteNotSolid("lucas")
253 MakeSpriteNotSolid("kuma")
254 MakeSpriteNotSolid("duster")
255 MakeSpriteNotSolid("boney")
256
257 -- hinawa walks to the left, then turns to look at lucas.
258 UnpauseSprite("hinawa")
259 DirectSpriteToLocation("hinawa", "hinawa_mid_checkpoint", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
260 WaitForSpritePath("hinawa")
261 DisableBehaviour("hinawa")
262 Delay(1500)
263
264 SetDirection("hinawa", Direction.DOWN_LEFT)
265 Delay(100)
266 SetDirection("hinawa", Direction.DOWN)
267 Delay(100)
268 SetDirection("hinawa", Direction.DOWN_RIGHT)
269 Delay(2000)
270 SetDirection("hinawa", Direction.RIGHT)
271 Delay(250)
272
273 -- hinawa then walks off the cliff.
274 DirectSpriteToLocation("hinawa", "hinawa_off_cliff", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY | PathfindingOptions.MOONWALKING)
275 Delay(1000)
276
277 -- lucas walks after her, while the rest of the party gather a little behind
278 -- him. because of this, we need to break apart the party, since they are all
279 -- going to have independent walking patterns.
280 BreakUpParty("lucas")
281 UnpauseSprite("lucas")
282 SetMovementSpeed("lucas", 1)
283 DirectSpriteToLocation("lucas", "hinawa_mid_checkpoint")
284 Delay(1000)
285
286 UnpauseSprite("kuma")
287 UnpauseSprite("duster")
288 UnpauseSprite("boney")
289 SetMovementSpeed("kuma", 1)
290 SetMovementSpeed("duster", 1)
291 SetMovementSpeed("boney", 1)
292 DirectSpriteToLocation("kuma", "kuma_watch_point")
293 DirectSpriteToLocation("duster", "hinawa_second_position")
294 DirectSpriteToLocation("boney", "boney_watch_point")
295
296 WaitForSpritePath("hinawa")
297 DisableBehaviour("hinawa")
298 SetDirection("hinawa", Direction.RIGHT)
299
300 WaitForSpritePath("lucas")
301 DisableBehaviour("lucas")
302 SetDirection("lucas", Direction.LEFT)
303 SetAnimation("lucas", "frozen")
304
305 WaitForSpritePath("kuma")
306 DisableBehaviour("kuma")
307 SetDirection("kuma", Direction.LEFT)
308 SetAnimation("kuma", "frozen")
309
310 WaitForSpritePath("duster")
311 DisableBehaviour("duster")
312 SetDirection("duster", Direction.LEFT)
313 SetAnimation("duster", "frozen")
314
315 WaitForSpritePath("boney")
316 DisableBehaviour("boney")
317 SetDirection("boney", Direction.LEFT)
318 SetAnimation("boney", "frozen")
319
320 MakeSpriteSolid("hinawa")
321 MakeSpriteSolid("lucas")
322 MakeSpriteSolid("kuma")
323 MakeSpriteSolid("duster")
324 MakeSpriteSolid("boney")
325
326 -- TODO: rest of scene
327end