summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-03-17 14:27:47 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2021-03-17 14:27:47 -0400
commita8983e9302ac5aae00c653afae034d6d003805bc (patch)
treeb95b35b871bf6758c670bd6b0b38bb87360b51c6 /res
parentaf8495717abc98593b21a6c11c0aa17f59ceabec (diff)
downloadtanetane-a8983e9302ac5aae00c653afae034d6d003805bc.tar.gz
tanetane-a8983e9302ac5aae00c653afae034d6d003805bc.tar.bz2
tanetane-a8983e9302ac5aae00c653afae034d6d003805bc.zip
[switch route] Started working on switching scene
#10
Diffstat (limited to 'res')
-rw-r--r--res/maps/switched_interior.tmx230
-rw-r--r--res/scripts/hallucination_interior.lua84
-rw-r--r--res/scripts/switched_interior.lua1
3 files changed, 311 insertions, 4 deletions
diff --git a/res/maps/switched_interior.tmx b/res/maps/switched_interior.tmx new file mode 100644 index 0000000..6b38959 --- /dev/null +++ b/res/maps/switched_interior.tmx
@@ -0,0 +1,230 @@
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="24">
3 <properties>
4 <property name="music" value="red_green_yellow_yellow"/>
5 </properties>
6 <tileset firstgid="1" source="hallucination.tsx"/>
7 <layer id="1" name="Lower" width="64" height="64">
8 <data encoding="csv">
91,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,7,2147483655,2147483654,8,9,2,2,2,2,2,2,2,2,2,
101,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,10,11,2147483659,2147483658,4,5,12,2,2,2,2,2,2,2,2,
111,1,1,1,1,1,1,2,2,2,2,2,2,2,13,14,15,16,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,17,18,19,9,9,2,2,2,2,2,2,2,2,2,2,
121,1,1,1,1,1,1,2,2,2,2,2,2,2,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,20,21,22,3,4,5,12,2,2,2,2,2,2,2,2,
1313,14,15,16,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,1,1,14,15,23,24,14,15,16,1,1,1,1,1,1,1,9,9,9,2,2,3,4,5,12,3,4,5,25,26,27,9,9,2,4,5,12,3,4,5,12,2,2,
1413,14,15,16,1,1,1,2147483676,2147483677,30,31,1,1,1,2,2,2,2,1,1,1,14,15,23,24,14,15,23,24,14,15,16,13,14,15,16,3,4,5,12,9,9,9,9,9,9,2,2,9,9,9,9,3,4,5,12,9,9,9,9,9,9,2,2,
151,1,1,1,1,1,32,30,31,33,32,30,31,33,2,2,2,2,2,14,15,16,29,28,34,28,28,34,2147483677,1,13,14,15,35,24,14,15,12,3,4,5,12,2,2,2,2,3,4,5,12,9,9,9,9,3,4,5,12,2,2,2,2,2,2,
161,1,1,1,32,30,31,33,32,30,31,33,2147483684,2,2,2,2,2,2,1,29,28,36,7,32,30,31,33,2147483684,2147483677,37,38,39,40,9,9,9,9,9,41,42,4,5,2,2,2,2,2147483657,2147483690,2147483689,2147483657,9,9,9,9,9,3,4,5,12,2,2,2,2,
171,1,1,1,2,1,1073741852,1073741852,1073741860,43,7,2,2,2,2,2,2,2,28,34,36,7,7,44,45,46,47,7,3221225508,3221225501,48,1073741873,1073741874,51,8,4,5,12,9,52,53,54,2,2,2,2,2,2147483702,2147483701,2147483700,2147483703,9,9,9,9,51,8,9,9,2,2,2,2,2,
181,1,1,2,2,14,15,16,1073741853,1073741852,1073741860,7,2,2,2,2,2,2,2,7,44,45,7,7,7,43,7,3221225508,3221225501,48,1073741873,1073741874,56,57,9,9,9,9,9,9,3,4,5,12,2,2,2,9,9,9,9,9,9,9,9,9,35,4,5,12,2,2,2,2,
191,1,1,2,2,1,1,37,38,1,1073741853,2,2,2,2,2,2,2,7,58,46,47,7,7,7,7,3221225508,2,2,1,49,2,2,9,9,9,9,9,9,9,9,9,9,2,2,2,2,2,2,9,9,9,9,9,9,9,40,9,9,2,2,2,2,2,
201,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,7,7,7,7,7,2,3221225508,3221225501,2,2,2,2,2,2,2,2,9,9,9,9,9,9,51,8,9,2,2,2,2,2,2,2147483707,2147483708,2147483707,50,9,9,61,59,59,2,2,2,2,2,
211,1,1,1,1,2,2,2,2,1,1,14,15,1,2,2,2,2,7,46,47,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,2147483710,59,63,50,9,2,2,2,2,2,2,2,2147483712,1,2147483713,49,2147483708,2,2,2,2,2,2,2,2,2,
221,1,1,1,1,2,2,2,2,1,1,1,13,14,15,16,32,30,31,33,7,7,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,63,2147483697,66,67,49,63,63,2,2,2,2,2,14,15,16,37,38,64,14,2,2,2,2,2,2,2,2,
231,1,13,14,15,16,2,2,1,1,13,14,15,23,24,14,15,7,7,7,46,47,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,37,38,1,13,14,15,16,2,2,2,1,1,66,67,1,13,14,15,2,2,2,2,2,2,2,
241,1,1,1,1,1,2,2,2,2,38,1073741873,3221225521,37,38,1,1,1073741852,1073741860,68,7,7,7,30,32,30,31,33,7,2,2,2,13,14,15,16,2,2,2,1,1,1,1,1,2,2,2,2,2,14,15,16,2147483715,2147483714,1,1,2,2,2,2,2,2,2,2,
251,1,1,1,1,2,2,2,2,2,1073741873,1073741874,3221225522,3221225521,13,14,15,16,1073741853,1073741860,7,7,32,30,31,33,32,30,31,33,2,2,1,1,1,1,2,2,1,1,1,37,38,1,2,2,2,2,2,2,1,1,1,1,13,14,15,2,2,2,2,2,2,2,
261,1,1,1,1,2,2,2,3,4,5,12,9,3221225522,1073741884,3221225521,65,37,38,1073741853,7,69,70,7,7,68,2147483654,2147483659,2147483659,30,31,33,7,7,2,2,13,14,15,16,1,1,1,14,13,14,15,16,2,14,15,16,2147483682,28,2147483682,2147483676,2147483677,2,2,2,2,2,2,2,
271,1,3,4,5,12,3,4,5,12,9,9,9,9,9,3221225522,1073741884,1073741884,1073741884,2,2,7,7,2147483655,2147483654,2147483659,2147483658,2147483657,9,30,9,30,31,33,2,2,2,1,1,37,38,1,13,14,15,1,1,1,2,2,7,7,7,7,7,7,2147483684,2,13,14,15,16,2,2,
283,4,5,12,3,4,5,12,9,9,9,9,9,2,2,9,9,2,2,2,2,2147483659,11,2147483659,2147483658,9,9,2,2,4,5,12,2,2,2,2,2,2,2,1,1,1,1,1,2,2,2,2,32,30,31,33,43,7,58,7,2,2,1,1,1,1,2,2,
295,12,9,51,8,9,2147483698,2147483708,2147483708,50,56,57,9,4,5,2,2,2,2,2,2,9,9,2,2,9,3,4,5,12,9,2,2,2,2,2,2,2,5,1073741884,3221225521,65,13,14,15,16,2,2,2,2,7,7,46,47,32,30,31,33,2,2,2,2,2,2,
303,4,5,12,2147483698,2147483708,2147483697,37,38,49,50,1073741833,9,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,2,2,2,2,2,2,3,4,5,12,3221225522,3221225535,3221225521,48,1,2,2,2,32,30,31,33,68,7,7,7,32,30,31,33,2,2,2,2,
3163,63,50,2147483698,2147483697,1,1073741873,3221225532,3221225521,1,49,2,2,9,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,40,9,56,57,3221225522,1073741884,3221225531,3221225535,2,2,2,2,7,7,7,7,7,69,70,7,32,30,31,33,2,2,
321,1,49,2147483697,1,1073741873,1073741874,2147483657,3221225522,66,67,14,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,51,8,9,9,9,9,40,9,2,2,2,2,14,15,7,1073741852,1073741852,1073741860,7,7,58,7,3221225508,2,2,2,2,
331,1,1,1,1,9,9,2,2,1,13,14,15,16,2,2,2,2,13,14,15,16,2,2,2,2,2,2,2,2,2,4,5,12,3,4,5,12,9,9,9,9,9,61,51,8,9,2,2,2,2,14,15,16,1073741853,3221225500,3221225506,3221225500,3221225500,14,2,2,2,2,
342,2,2,2,2,2,2,2,2,1,1,1,13,14,15,16,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,9,35,4,5,12,17,18,19,9,9,9,9,9,9,2,2,2,2,2,2,2,2,1,66,67,1,64,48,1,13,14,15,16,
352,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,61,40,9,9,9,20,21,22,9,9,9,9,2,2,2,2,2,2,2,2,2,2,2,1,1,48,1,13,14,15,16,13,14,
362,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,50,61,9,9,9,25,26,27,40,9,4,5,2,2,2,2,2,2,2,2,1,13,14,15,16,66,67,1,1,1,1,1,1,
372,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,12,3,4,5,12,13,14,15,16,1,49,50,56,57,9,9,9,9,41,42,9,9,2,2,2,13,14,15,16,13,14,15,16,1,64,1,1,1,64,1,1,1,1,
382,2,13,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,12,35,4,5,12,2147483657,14,15,16,13,14,15,16,49,59,50,9,9,9,55,52,53,2,2,2,2,2,1,1,1,1,2,1,1,66,67,1,1073741895,1073741884,2,2,1073741826,2,2,1,
392,2,13,14,15,16,2,2,2,2,2,2,2,2,2,2,2,9,3221225481,3221225481,40,3221225481,3221225481,2147483698,2147483707,2147483697,1,37,38,1,1,1,64,1,49,50,9,9,9,9,9,9,2,2,2,2,2,2,2,2,2,2,1,1,1073741895,1073741884,1073741886,1073741833,2,2,2,2,2,2,
402,2,1,1,1,1,2,2,2,2,2,2,2,4,5,12,3221225481,3221225481,3221225481,51,8,3221225481,2147483698,2147483697,13,14,15,16,1,1,37,38,1,37,38,38,2,2,2,59,2147483697,2,2,2,2,2,2,2,2,2,2,2,1073741884,1073741887,1073741886,1073741833,3,4,5,12,2,2,2,2,
412,2,2,2,2,2,2,2,2,2,2,2,3221225481,3221225481,3,4,5,12,56,57,3221225481,9,3221225522,3221225521,66,67,1,37,38,1,1,67,1,66,67,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,12,2147483705,2147483704,9,9,9,2,2,2,2,2,
4272,72,72,72,2,2,2,2,32,30,31,33,1073741835,3221225483,3221225482,3221225481,3221225481,3221225481,3221225481,3221225481,3221225481,3221225481,3221225481,3221225522,3221225521,2147483715,2147483714,66,67,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,9,3,4,5,12,2,2,2,2,
4372,72,72,72,2,7,32,35,31,33,32,30,31,33,3221225478,3221225482,3221225481,3221225481,1073741833,1073741833,1073741833,1073741833,1073741833,1073741833,3221225522,66,67,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,14,5,12,9,9,9,9,2,2,2,2,2,2,
4472,72,72,72,32,30,31,465,43,44,45,7,7,7,7,3221225478,3221225482,9,1073741833,1073741833,1073741833,1073741833,1073741833,1073741833,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,5,9,9,9,3,4,5,12,2,2,2,2,
4572,72,72,72,2,7,7,46,47,7,7,7,2,2,2,2,2,3221225482,1073741833,1073741833,1073741833,1073741833,3,4,5,12,2,2,2,2,13,14,15,16,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,3,4,5,12,9,9,9,9,2,2,2,2,2,2,
4672,72,72,72,2,2,2,7,7,3221225508,1073741852,1073741852,2,2,2,2,2,2,2,2147483690,2147483689,2147483657,1073741833,1073741833,1073741834,30,31,33,2,2,1,1,1,1,2,2,13,14,15,16,13,14,15,16,1,14,15,1,3,4,5,12,9,9,9,41,42,2,2,2,2,2,2,2,
4772,72,72,72,2,2,2,1073741852,1073741852,3221225501,64,2,2,2,2,2,2,2,2,2147483701,2147483700,2147483703,1073741833,1073741834,1073741830,7,2,2,2,2,2,2,2,2,2,2,1,1,1,14,15,16,13,14,15,23,24,14,15,71,60,62,9,9,55,52,53,2,2,2,2,2,2,2,
4872,72,72,72,2,2,2,64,1073741873,2,2,2,2,2,2,2,2,2,2,2147483657,2147483657,2147483657,1073741834,1073741830,32,30,31,33,7,2,2,2,2,2,2,2,2,2,2,14,1,37,38,1,1,29,34,28,28,28,2147483677,71,60,62,9,9,9,2,2,2,2,2,2,2,
4972,72,72,72,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1073741835,1073741835,1073741835,1073741830,68,7,47,32,30,31,33,7,7,7,7,13,14,15,16,13,14,15,16,1,29,28,36,32,30,31,33,2147483684,28,2147483677,71,2147483719,2,2,2,13,14,15,16,2,2,
5072,72,72,72,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1073741860,68,3221225508,1073741852,14,13,14,15,16,13,14,15,16,13,14,15,16,66,67,29,36,44,45,7,7,7,44,45,7,2147483684,28,28,28,2,2,1,1,1,1,2,2,
5172,72,13,14,15,16,2,2,2,9,9,9,9,9,2,2,2,2,2,2,2,2,15,1073741853,1073741852,3221225501,13,14,15,16,13,14,15,16,1,1073741873,1073741884,3221225531,3221225521,1,37,38,1073741853,1073741860,7,7,7,7,7,7,7,7,7,7,7,2,2,2,1,1,2,2,2,2,
5272,72,72,72,2,2,2,2,9,9,9,9,9,2,2,2,2,2,2,2,13,14,15,16,1,2147483715,2147483714,1073741873,3221225531,1073741884,3221225531,3221225521,37,38,1073741873,1073741874,9,9,3221225522,1073741884,3221225543,1,1,1073741853,1073741860,7,7,7,7,7,7,7,7,7,2,2,2,14,15,16,2,2,2,2,
532,2,2,2,72,72,2,2,2,9,9,2,2,2,2,2,2,2,2,2,2,37,38,2147483715,2147483714,1,1073741873,1073741874,9,9,9,3221225522,1073741884,3221225531,1073741874,9,9,9,9,2147483698,2147483719,1,1,2,2,7,32,30,31,33,7,7,7,7,13,14,15,16,1,2,2,2,2,2,
542,2,2,2,2,2,2,2,9,9,2147483656,2147483699,9,2,2,2,3,4,5,12,3221225531,3221225531,3221225521,37,38,1,49,50,9,40,9,9,9,41,42,9,9,2,2,2147483697,1,2,2,2,2,2,2,2,2,2,2,7,32,30,31,33,1,2,2,2,2,2,2,2,
552,2,2,2,2,2,3,4,5,12,9,2,2,2,3,4,5,12,3,4,5,12,3221225522,3221225521,66,67,1,2,2,61,56,57,55,52,53,54,2,2,2,2,2,2,2,2,2,2,13,14,15,2,2,1073741852,3221225500,3221225501,15,14,15,14,2,2,2,2,2,2,
562,2,2,2,2,2,2,9,3,4,5,12,9,2,2,9,9,61,9,9,9,9,2147483698,2147483719,1,1,1,14,2,2,2,9,9,56,57,9,2,2,2,2,2,2,2,2,2,2,2,2,2,14,15,23,24,14,15,16,1,1,2,2,2,2,2,2,
572,2,2,2,2,9,9,9,9,9,9,2,2,2,9,2,2,9,9,9,2147483698,59,2147483697,37,38,1,1,2,2,2,2,2,2,9,9,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1073741884,1073741884,3221225521,37,38,1073741873,1073741884,1073741883,2,2,2,2,2,2,
5813,14,15,16,2,2,2,9,9,9,9,9,9,2,2,2,2,2,2,59,2147483697,1,66,67,37,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5,12,3,4,5,12,3221225522,1073741884,1073741884,1073741874,3,4,5,12,2,2,2,2,
591,1,1,1,2,2,3,4,5,12,3,4,5,12,2,2,2,2,1,2,2,1,37,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,13,14,15,16,1,14,15,9,3,4,5,61,61,61,2,9,9,2147483698,2,2,2,2,2,2,2,2,
602,2,2,2,3,4,5,12,9,9,56,57,9,2,2,2,2,14,15,16,1,2,2,1,13,14,15,16,2,2,2,2,3,4,5,12,13,14,15,16,13,14,15,16,59,59,59,50,56,57,61,2,2,2,2,2,2,2,2,2,2,2,2,2,
612,2,2,2,2,9,9,9,9,9,9,9,9,9,2,2,2,23,24,1,13,14,15,16,37,38,13,14,15,16,3,4,5,12,2147483698,14,15,1,1,1,1,1,13,14,15,16,65,49,50,56,57,2,2,2,2,2,2,2,2,2,2,2,2,2,
622,2,2,2,1,9,73,74,9,56,57,9,9,2,2,2,1073741883,1073741873,1073741883,1073741883,1073741883,1073741883,1073741883,1073741883,1073741873,1073741883,1073741883,3221225521,3,4,5,12,61,2147483698,2147483697,1,13,14,15,16,13,14,15,16,1,37,38,1,49,50,9,2,2,2,2,2,2,2,2,9,9,9,9,9,
632,2,2,2,2,75,76,77,78,9,3,4,5,12,2,2,2,9,3,4,79,80,81,82,5,12,3,4,5,12,9,9,2147483698,2147483697,13,14,15,16,13,14,15,16,1,1,66,67,1,1073741873,1073741883,1073741883,59,1,1,2,2,2,9,9,9,9,9,9,9,9,
642,2,2,2,1,1,49,60,50,2147483657,9,9,3,4,2,12,9,9,61,9,83,84,85,86,9,9,9,9,2,57,2147483698,59,2147483697,66,67,1073741873,3221225521,1,66,67,1,1,37,67,1,1,1073741873,1073741874,3,4,5,12,1,2,2,2,3,4,5,12,3,4,5,12,
652,2,2,2,2,2,1,1,49,2147483707,60,50,9,9,2,4,5,12,9,9,9,9,9,9,9,9,9,9,2,2147483698,2147483697,37,38,37,38,1073741874,3221225522,1,13,14,15,16,1,2,2,1,9,9,73,74,9,2,2,2,3,4,5,12,3,4,5,12,9,9,
6613,14,15,16,2,2,2,1,1,1,65,49,2147483707,50,2,9,9,9,9,9,9,9,9,9,9,9,2,2,2,2147483697,37,38,13,14,15,9,9,14,15,16,13,14,15,2,2,2,2,9,76,77,9,2,2,2,9,9,61,56,57,9,9,9,9,9,
671,1,1,1,2,2,1,1,1,1,1,1,1,2,2,9,9,9,9,2147483698,59,59,2,2,2,2,2,2,2,1,1,14,15,16,13,14,15,16,1,1,1,1,1,2,2,2,2,9,9,2,2,2,2,9,56,57,9,9,9,9,9,9,3,4,
682,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,60,59,2147483697,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,9,56,57,9,9,9,9,9,9,
692,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,37,38,37,38,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,56,57,9,9,9,9,9,9,9,
702,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,2,2,2,13,14,15,16,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,9,3,4,79,80,81,82,5,12,
712,2,2,2,2,2,13,14,15,16,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,56,57,9,9,83,84,85,86,51,8,
722,2,2,2,2,2,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,9,9,9,9,9,9,9,56,57,9,9,9
73</data>
74 </layer>
75 <objectgroup id="2" name="Objects">
76 <object id="1" name="fromLeft" type="warp" x="16" y="364.667">
77 <point/>
78 </object>
79 <object id="2" name="moveToLeft" type="trigger" x="-20.3333" y="304" width="22.6667" height="91.6667">
80 <properties>
81 <property name="script" value="off_left"/>
82 </properties>
83 </object>
84 <object id="4" name="mailbox1" type="tileSprite" x="535" y="118.667">
85 <properties>
86 <property name="interactionScript" value="mailbox1"/>
87 </properties>
88 <point/>
89 </object>
90 <object id="5" name="mailbox_lightning" type="tileSprite" x="519" y="422.667">
91 <properties>
92 <property name="interactionScript" value="mailbox_lightning"/>
93 </properties>
94 <point/>
95 </object>
96 <object id="6" name="debugWarp_mailboxes" type="warp" x="598.667" y="420.667">
97 <point/>
98 </object>
99 <object id="10" name="ionia" type="sprite" x="821.333" y="135.333">
100 <properties>
101 <property name="animation" value="ionia"/>
102 <property name="enclosureZone" value="ionia_enclosure"/>
103 <property name="interactionScript" value="talk_to_ionia"/>
104 <property name="movementSpeed" type="int" value="1"/>
105 <property name="shadow" type="bool" value="true"/>
106 <property name="wander" type="bool" value="true"/>
107 </properties>
108 <point/>
109 </object>
110 <object id="11" name="debugWarp_rightside" type="warp" x="911.333" y="431.667">
111 <point/>
112 </object>
113 <object id="12" name="ionia_enclosure" type="zone" x="800" y="80" width="96" height="96"/>
114 <object id="1" name="fromTop" type="warp" x="816" y="28">
115 <point/>
116 </object>
117 <object id="2" name="moveUp" type="trigger" x="768" y="-2" width="96.25" height="18">
118 <properties>
119 <property name="script" value="off_top"/>
120 </properties>
121 </object>
122 <object id="3" name="mailbox_time_passage" type="tileSprite" x="119.75" y="566.5">
123 <properties>
124 <property name="interactionScript" value="mailbox_time_passage"/>
125 </properties>
126 <point/>
127 </object>
128 <object id="5" name="moveRight" type="trigger" x="1022.25" y="428.702" width="11.6334" height="52.969">
129 <properties>
130 <property name="script" value="off_right"/>
131 </properties>
132 </object>
133 <object id="6" name="fromRight" type="warp" x="1007.9" y="445.781">
134 <point/>
135 </object>
136 <object id="7" name="switch_claus" type="sprite" x="832" y="672">
137 <properties>
138 <property name="animation" value="claus"/>
139 <property name="shadow" type="bool" value="true"/>
140 </properties>
141 <point/>
142 </object>
143 <object id="19" name="lucas_start" type="warp" x="800" y="672">
144 <point/>
145 </object>
146 <object id="20" name="kuma_start" type="warp" x="832" y="704">
147 <point/>
148 </object>
149 <object id="21" name="duster_start" type="warp" x="816" y="704">
150 <point/>
151 </object>
152 <object id="22" name="boney_start" type="warp" x="800" y="704">
153 <point/>
154 </object>
155 <object id="23" name="out_of_sight" type="warp" x="864.333" y="497">
156 <point/>
157 </object>
158 </objectgroup>
159 <layer id="1" name="Upper" width="64" height="64">
160 <properties>
161 <property name="above" type="bool" value="true"/>
162 </properties>
163 <data encoding="csv">
16487,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,94,95,89,90,87,88,89,90,87,88,89,90,
16589,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,93,93,100,98,87,88,89,90,87,88,89,90,87,88,
16687,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,94,95,89,90,87,88,89,90,87,88,89,90,
16789,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,102,90,87,88,89,90,91,96,97,98,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,99,93,93,103,98,87,88,89,90,91,96,97,98,87,88,
16891,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,104,105,106,95,89,107,108,109,97,98,91,96,97,98,91,96,97,98,87,88,89,99,94,95,89,90,91,92,93,93,108,109,97,98,87,88,89,99,94,95,89,90,
16989,99,94,95,89,90,91,96,97,98,91,96,97,98,87,88,89,90,91,96,104,105,93,93,103,98,91,92,93,93,108,109,104,105,106,95,89,99,108,109,97,98,87,101,102,90,91,96,104,105,93,93,93,93,108,109,97,98,87,101,102,90,87,88,
17087,101,102,90,87,88,89,107,108,109,104,105,106,95,89,90,87,88,89,107,93,93,93,93,108,109,104,105,93,93,93,93,93,93,103,98,91,92,93,93,106,95,89,90,87,88,89,99,93,93,93,93,93,93,93,93,94,95,89,90,87,88,89,90,
17189,90,87,88,89,90,91,92,93,93,110,111,102,90,87,88,89,90,91,92,93,93,93,93,93,93,93,93,93,93,93,93,93,93,108,109,104,105,93,112,103,98,87,88,89,90,91,92,93,2147483760,93,93,93,93,93,93,100,98,87,88,89,90,87,88,
17287,88,89,90,91,96,104,105,93,93,103,98,87,88,89,90,87,88,89,99,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,113,108,109,97,98,87,88,89,99,93,93,93,93,93,93,93,93,108,109,97,98,87,88,89,90,
17389,90,87,88,89,107,93,93,93,93,106,95,89,90,87,88,89,90,91,92,93,93,110,111,114,115,110,111,114,115,110,111,114,115,93,93,93,93,93,93,93,93,106,95,89,90,87,101,114,115,93,93,93,93,93,93,35,93,94,95,89,90,87,88,
17487,88,89,90,87,101,114,115,93,93,103,98,87,88,89,90,87,88,89,99,93,93,103,98,87,101,102,90,87,101,102,90,87,101,114,115,93,93,93,93,93,93,103,98,87,88,89,98,87,101,114,115,93,93,93,93,110,111,102,90,87,88,89,90,
17589,90,87,88,89,90,87,101,114,115,106,95,89,90,87,88,89,90,91,92,93,93,94,95,89,90,87,88,89,90,87,88,89,90,87,101,114,115,93,93,93,93,106,95,89,90,87,88,89,90,91,92,93,93,93,116,102,90,87,88,89,90,87,88,
17687,88,89,90,87,88,89,90,91,117,100,98,91,96,97,98,91,96,104,105,93,93,103,98,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,93,93,103,98,87,88,89,90,91,96,104,105,93,93,118,119,87,88,89,90,87,88,89,90,
17789,90,87,96,97,98,87,88,89,120,108,109,104,105,106,95,89,99,93,93,93,93,106,95,89,90,87,88,89,90,87,88,89,90,87,88,89,99,93,93,93,93,108,109,97,98,87,88,89,99,93,93,93,93,94,95,89,90,87,88,89,90,87,88,
17887,88,89,99,94,95,89,90,87,101,114,115,93,93,103,98,91,92,93,93,93,93,103,98,91,96,97,98,87,88,89,90,91,96,97,98,87,101,114,115,93,93,93,93,108,95,89,90,87,101,114,115,93,93,103,98,87,88,89,90,87,88,89,90,
17989,90,87,101,102,90,87,88,89,90,91,92,93,93,108,109,104,105,93,93,93,93,108,109,104,105,121,109,97,98,87,88,89,99,94,95,89,90,91,92,93,93,110,111,89,90,87,88,89,90,87,92,93,93,108,109,97,98,87,88,89,90,87,88,
18087,88,89,90,87,88,89,90,91,96,104,105,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,106,95,89,90,87,101,102,90,91,96,104,99,93,93,103,98,91,96,97,98,87,88,89,99,93,93,93,93,106,95,89,90,87,88,89,90,
18189,90,91,96,97,98,91,96,104,105,93,93,93,93,93,93,93,93,110,111,114,115,93,93,93,93,110,111,89,90,87,88,89,90,87,88,89,99,93,93,93,93,106,95,89,99,94,95,89,90,91,92,93,93,110,111,102,90,91,96,97,98,87,88,
18287,88,89,99,108,109,104,105,93,93,93,93,110,111,114,115,110,111,102,90,91,92,93,93,93,93,103,98,91,96,97,98,87,88,89,90,87,101,114,115,93,93,103,98,87,101,102,90,87,88,89,99,93,93,103,98,87,88,89,99,94,95,89,90,
18397,98,91,92,93,93,93,93,93,93,93,93,103,98,87,101,102,90,87,88,89,99,110,111,114,115,94,95,89,99,94,95,89,90,87,88,89,90,91,92,93,93,108,109,97,119,87,88,89,90,91,92,93,93,108,109,97,98,87,101,102,90,87,88,
184108,109,104,105,93,93,93,93,93,93,93,93,94,95,89,90,87,88,89,90,87,101,102,90,87,101,102,90,87,101,102,90,87,88,89,90,91,96,104,105,93,93,93,93,106,95,89,90,87,88,89,99,93,93,93,93,108,109,97,98,87,88,89,90,
18593,93,93,93,93,93,93,93,93,93,110,111,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,35,93,93,93,93,93,103,119,87,88,89,90,87,101,114,115,93,93,93,93,106,95,89,90,87,88,
18693,93,93,93,93,93,93,93,93,93,103,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,93,93,93,35,94,95,89,90,87,88,89,90,91,92,93,93,93,93,103,98,87,88,89,90,
187114,115,110,111,114,115,110,111,114,115,108,109,97,98,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,91,96,97,98,91,96,104,105,93,93,93,93,93,93,103,119,87,88,89,90,87,88,89,99,93,93,93,93,94,95,89,90,87,88,
18887,101,102,90,87,101,102,90,91,92,93,93,108,109,97,98,87,88,89,99,94,95,89,90,87,88,89,90,87,88,89,99,108,109,104,105,93,93,93,93,110,111,114,115,94,95,89,90,87,88,89,90,87,101,114,115,93,93,103,98,91,96,97,98,
18989,90,87,88,89,90,87,88,89,99,110,111,114,115,106,95,89,90,87,101,102,90,87,88,89,90,87,88,89,90,91,92,35,93,93,93,93,93,93,93,103,98,87,101,102,90,87,88,89,90,87,88,89,90,91,92,93,93,108,109,104,105,108,109,
19087,88,89,90,87,88,89,90,87,101,102,90,87,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,93,93,93,93,93,93,93,35,108,109,97,98,87,88,89,90,87,88,89,90,91,96,104,105,93,93,93,93,93,93,93,93,
19189,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,91,96,97,98,91,96,97,98,91,92,93,93,93,93,93,93,93,93,93,93,94,95,89,90,91,96,97,98,91,96,104,105,93,93,93,93,110,111,114,115,93,93,
19287,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,104,105,108,109,104,105,108,95,89,99,108,109,104,105,93,93,93,93,93,93,93,112,110,111,89,90,87,88,89,99,94,95,89,99,93,93,93,93,110,111,102,90,87,101,114,115,
19389,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,99,93,93,35,93,93,93,118,98,91,92,93,93,93,93,93,93,93,116,114,115,93,113,103,119,87,88,89,90,87,101,102,90,87,101,114,115,93,93,100,98,87,88,89,90,87,101,
19487,88,89,99,94,95,89,90,87,88,89,90,91,96,97,98,91,92,93,93,93,93,93,93,108,109,104,105,93,93,93,93,93,93,118,119,87,101,114,115,94,95,89,90,87,88,89,90,87,88,89,90,91,92,93,93,108,109,97,90,87,88,89,90,
19589,90,87,101,102,90,87,88,89,90,87,88,89,99,108,109,104,105,93,93,93,93,93,93,93,93,93,93,93,93,93,116,114,115,94,95,89,90,87,101,102,90,87,88,89,90,87,88,89,90,87,96,104,105,93,93,93,93,106,88,89,90,87,88,
19687,88,89,90,87,88,89,90,91,96,97,98,91,92,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,118,119,87,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,93,93,93,93,110,111,102,90,87,88,89,90,
19789,90,87,88,89,90,91,96,104,105,108,109,104,105,93,93,93,93,93,93,93,93,93,116,114,115,110,116,114,115,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,114,115,93,93,103,98,87,88,89,90,87,88,
19887,88,89,90,91,96,104,105,93,93,93,93,110,116,114,115,93,93,93,93,93,93,118,119,87,101,102,90,87,101,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,108,109,97,98,87,88,89,90,
19989,90,87,88,89,99,93,93,93,93,110,111,102,90,87,101,114,115,93,93,93,93,121,109,97,98,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,104,105,93,93,93,93,106,95,89,90,87,88,
20087,88,89,90,87,101,114,115,93,93,103,98,87,88,89,90,87,101,114,115,93,93,93,93,106,95,89,90,87,88,89,99,94,95,89,90,91,96,97,98,87,96,97,98,91,96,97,98,91,96,104,105,93,93,93,93,110,111,102,90,87,88,89,90,
20189,90,87,88,89,90,91,92,93,93,94,95,89,98,87,88,89,90,91,92,2147483760,93,93,93,103,98,87,88,89,90,87,101,102,90,87,88,89,99,94,95,89,99,121,109,104,105,94,95,89,99,93,93,93,93,93,112,103,98,87,88,89,90,87,88,
20287,88,89,90,87,88,89,99,110,111,102,98,87,88,89,90,87,88,89,99,2147483761,93,93,93,108,109,97,98,87,88,89,90,87,88,89,90,87,101,102,90,91,92,93,93,93,93,103,98,91,92,93,93,93,93,93,113,108,95,89,90,87,88,89,90,
20389,90,87,88,89,90,87,101,102,90,87,88,89,98,87,88,89,90,87,101,114,115,93,93,93,93,106,95,89,90,87,88,89,90,91,96,97,98,91,96,104,105,93,93,93,93,108,109,104,105,93,93,93,93,110,111,102,90,91,96,97,98,87,88,
20487,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,114,115,93,93,103,98,91,96,97,98,91,96,104,105,121,109,104,105,93,93,93,93,93,93,93,93,93,93,93,93,93,93,103,98,87,88,89,99,94,95,89,90,
20589,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,121,109,104,105,121,109,104,105,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,94,95,89,90,87,101,102,90,87,88,
20687,88,89,99,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,104,105,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,110,111,102,90,91,88,89,98,87,88,89,90,
20789,90,87,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,110,111,114,115,110,111,114,115,93,93,103,98,91,88,89,90,87,88,89,90,87,88,
20887,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,91,92,93,93,93,93,93,93,93,35,93,93,93,93,93,93,110,111,114,115,110,111,102,90,87,101,102,90,87,101,114,115,106,95,89,90,87,88,89,90,87,88,89,90,
20989,90,87,88,89,90,91,96,97,98,87,88,89,90,91,96,104,105,108,109,104,105,93,93,93,93,110,111,114,115,93,93,93,112,110,111,102,90,87,101,102,90,87,88,89,90,87,88,89,90,91,92,103,98,91,96,97,98,87,88,89,90,87,88,
21087,88,89,90,87,88,89,99,108,109,97,98,91,88,89,99,93,93,93,93,93,93,93,93,93,93,100,98,87,101,114,115,93,113,103,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,122,123,109,104,105,94,95,89,90,87,88,89,90,
21189,90,87,88,89,90,87,101,114,115,94,95,89,90,87,101,114,115,93,93,93,93,93,93,93,93,106,95,89,90,87,101,114,115,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,93,93,93,93,103,119,87,88,89,90,87,88,
21291,96,97,98,87,88,89,90,91,92,100,98,87,88,89,90,87,101,114,115,93,93,93,93,110,111,102,90,87,88,89,90,87,101,102,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,105,93,93,93,93,94,95,89,90,87,88,89,90,
21389,99,94,95,89,90,91,96,104,124,123,109,97,119,87,88,89,90,87,101,114,115,110,111,102,98,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,99,121,109,97,98,87,101,114,115,110,116,102,90,87,88,89,90,87,88,
21487,101,102,90,91,96,104,105,93,93,93,93,106,95,89,90,87,88,89,90,87,101,102,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,99,106,95,89,90,91,92,93,93,106,95,89,90,87,101,102,90,87,88,89,90,87,88,89,90,
21589,90,87,88,89,107,110,116,114,115,110,116,102,90,87,88,89,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,105,106,95,89,90,87,101,102,90,91,96,104,105,93,93,103,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,
21687,88,89,90,87,101,125,90,87,101,125,90,87,88,89,90,87,88,89,98,87,88,89,90,87,88,89,90,87,88,89,90,87,101,102,90,91,96,97,98,91,96,104,105,93,93,93,93,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,
21789,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,104,105,106,95,89,99,110,111,114,115,93,93,103,119,87,88,89,90,87,88,89,90,87,88,89,90,87,88,
21887,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,110,111,102,90,87,101,102,90,87,101,114,115,121,109,97,98,87,88,89,90,91,96,97,98,91,96,97,98,
21989,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,98,91,92,103,98,87,88,89,90,87,88,89,90,91,92,126,127,106,95,89,90,91,96,104,105,108,109,104,105,106,95,
22091,96,97,98,87,88,89,90,87,88,89,90,87,88,89,99,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,94,95,89,90,91,96,97,98,87,88,89,99,110,116,102,119,87,88,89,99,93,93,93,116,114,115,100,98,
22189,99,94,95,89,90,87,88,89,90,87,88,89,90,91,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,102,90,87,88,89,99,106,95,89,90,87,101,89,90,87,88,89,90,91,92,93,93,118,119,91,92,108,109,
22287,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,91,88,89,90,87,88,89,90,87,88,89,90,87,88,102,90,87,88,89,90,87,88,89,90,87,101,102,90,91,88,89,98,87,88,89,90,87,88,89,99,110,111,125,128,129,130,114,115,
22389,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,92,100,119,97,98,91,96,91,92,
22487,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,122,123,109,131,109,104,132,104,124,
22589,90,87,88,89,90,91,96,97,98,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,99,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,114,115,93,93,93,93,110,116,
22687,88,89,90,87,88,89,99,94,95,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,101,102,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,90,87,88,89,98,87,101,114,115,93,116,102,90,
22797,98,91,96,97,98,91,101,102,90,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,96,97,98,91,92,118,119,91,96
228</data>
229 </layer>
230</map>
diff --git a/res/scripts/hallucination_interior.lua b/res/scripts/hallucination_interior.lua index dafe1fc..6679bab 100644 --- a/res/scripts/hallucination_interior.lua +++ b/res/scripts/hallucination_interior.lua
@@ -25,7 +25,7 @@ function hallucination_interior.talk_to_magic()
25 SetMovementSpeed("magic_dcmc", 1) 25 SetMovementSpeed("magic_dcmc", 1)
26 DirectSpriteToLocation("magic_dcmc", "magic_walkaway", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) 26 DirectSpriteToLocation("magic_dcmc", "magic_walkaway", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
27 WaitForSpritePath("magic_dcmc") 27 WaitForSpritePath("magic_dcmc")
28 28
29 DisableSprite() 29 DisableSprite()
30 30
31 HideCutsceneBars() 31 HideCutsceneBars()
@@ -263,6 +263,10 @@ function hallucination_interior.switch_claus_attention()
263 263
264 RemoveExpression("switch_claus") 264 RemoveExpression("switch_claus")
265 265
266 if gamestate.switch_claus_map_change then
267 return
268 end
269
266 if gamestate.switch_claus_lost_interest then 270 if gamestate.switch_claus_lost_interest then
267 SetMovementSpeed("switch_claus", 1) 271 SetMovementSpeed("switch_claus", 1)
268 StartWandering("switch_claus") 272 StartWandering("switch_claus")
@@ -276,6 +280,10 @@ function hallucination_interior.switch_claus_attention()
276 WaitForSpritePath("switch_claus") 280 WaitForSpritePath("switch_claus")
277 end 281 end
278 282
283 if gamestate.switch_claus_map_change then
284 return
285 end
286
279 if gamestate.switch_claus_lost_interest then 287 if gamestate.switch_claus_lost_interest then
280 SetMovementSpeed("switch_claus", 1) 288 SetMovementSpeed("switch_claus", 1)
281 StartWandering("switch_claus") 289 StartWandering("switch_claus")
@@ -314,6 +322,9 @@ function hallucination_interior.lets_switch_places()
314 HideCutsceneBars() 322 HideCutsceneBars()
315 323
316 SetAnimation("switch_claus", "still") 324 SetAnimation("switch_claus", "still")
325
326 -- Just so we can get away, for now.
327 hallucination_interior.switch_claus_lose_interest()
317 else 328 else
318 DisplayMessage("* Huh? Why not?\n\f* You say I'm not real? I'm not Claus?\n\f* Oh, Lucas...", "Claus", SpeakerType.MAN) 329 DisplayMessage("* Huh? Why not?\n\f* You say I'm not real? I'm not Claus?\n\f* Oh, Lucas...", "Claus", SpeakerType.MAN)
319 WaitForEndOfMessage() 330 WaitForEndOfMessage()
@@ -330,8 +341,73 @@ function hallucination_interior.lets_switch_places()
330 WaitForEndOfMessage() 341 WaitForEndOfMessage()
331 342
332 -- TODO: let's switch places 343 -- TODO: let's switch places
333 end 344 ShakeCamera(100)
345 Delay(50)
346
347 gamestate.switch_claus_map_change = true
348
349 FadeToBlack(1)
350 ReturnCamera(1)
351 ChangeMap("switched_interior", "lucas_start", ChangeMapOptions.DO_NOT_FADE | ChangeMapOptions.DO_NOT_CHANGE_MUSIC)
352 DisablePlayerControl()
353 BreakUpParty("lucas")
354 MoveSpriteToWarp("kuma", "kuma_start")
355 MoveSpriteToWarp("duster", "duster_start")
356 MoveSpriteToWarp("boney", "boney_start")
357 SetDirection("lucas", Direction.RIGHT)
358 SetDirection("switch_claus", Direction.LEFT)
359 SetDirection("kuma", Direction.UP)
360 SetDirection("duster", Direction.UP)
361 SetDirection("boney", Direction.UP)
362 SetAnimation("lucas", "frozen")
363 SetAnimation("switch_claus", "frozen")
364 SetAnimation("kuma", "frozen")
365 SetAnimation("duster", "frozen")
366 SetAnimation("boney", "frozen")
367 FadeMap(1, 0.0)
368 StopShakingCamera()
369 RemoveFadeout(1)
370 Delay(1000)
371
372 SetAnimation("switch_claus", "talk")
373 DisplayMessage("* Look how much this is getting to you!\n\f* That's the thing about you.\nYou feel too much!\n\f* You think you're so strong but you're nothing like me.", "Claus", SpeakerType.MAN)
374 WaitForEndOfMessage()
375
376 SetAnimation("switch_claus", "frozen")
377 ShowExpression("kuma", "surprise")
378 Delay(500)
379
380 SetAnimation("kuma", "talk")
381 DisplayMessage("* What are we doing just standing around listening to smack talk from a nightmare?", "Kumatora", SpeakerType.WOMAN)
382 Delay(250)
334 383
335 -- Just so we can get away, for now. 384 RemoveExpression("kuma")
336 hallucination_interior.switch_claus_lose_interest() 385 WaitForEndOfMessage()
386
387 SetAnimation("kuma", "frozen")
388 SetAnimation("duster", "talk")
389 DisplayMessage("* It's not fair that the forest is doing this to you.\n\f* We'll get through this together, I promise.", "Duster", SpeakerType.MAN)
390 WaitForEndOfMessage()
391
392 SetAnimation("duster", "frozen")
393 Delay(2000)
394
395 SetAnimation("switch_claus", "talk")
396 DisplayMessage("* I'm going away now.\n\f* I hope you're happy.", "Claus", SpeakerType.MAN)
397 WaitForEndOfMessage()
398
399 SetAnimation("switch_claus", "frozen")
400 Delay(1000)
401
402 SetMovementSpeed("switch_claus", 1)
403
404 local switchClausId = getSpriteByAlias("switch_claus")
405 character():addSpriteToParty(switchClausId, getSpriteByAlias("kuma"))
406 character():addSpriteToParty(switchClausId, getSpriteByAlias("duster"))
407 character():addSpriteToParty(switchClausId, getSpriteByAlias("boney"))
408
409 UnpauseSprite("switch_claus")
410 DirectSpriteToLocation("switch_claus", "out_of_sight", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
411 WaitForSpritePath("switch_claus")
412 end
337end 413end
diff --git a/res/scripts/switched_interior.lua b/res/scripts/switched_interior.lua new file mode 100644 index 0000000..3967515 --- /dev/null +++ b/res/scripts/switched_interior.lua
@@ -0,0 +1 @@
switched_interior = {}