Skip to content

Instantly share code, notes, and snippets.

@jtpercon
Forked from anonymous/readme.txt
Last active April 23, 2018 21:03
Show Gist options
  • Save jtpercon/2553c0f7ecb09942ba0f to your computer and use it in GitHub Desktop.
Save jtpercon/2553c0f7ecb09942ba0f to your computer and use it in GitHub Desktop.
Proof of Concept for a Puzzle Script Inventory System
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Proof of Concept: Inventory
author Nut
homepage www.twitter.com/InfinitNutshell
flickscreen 10x10
========
OBJECTS
========
player
white
.....
.....
.....
.....
.....
quest
white
.....
.....
.....
.....
.....
avatar
brown black blue
.....
.000.
.222.
.222.
.1.1.
npc
brown black green
.....
.000.
.222.
.222.
.1.1.
wall #
grey
background1 .
#8888ff
background2 ,
#77aadd #8888ff
11111
00000
11111
00000
11111
(inventory screen)
larrowtop q
purple #882288
.....
...00
..010
.0110
01110
larrowbottom a
purple #882288
01110
.0110
..010
...00
.....
rarrowtop w
purple #882288
.....
00...
010..
0110.
01110
rarrowbottom s
purple #882288
01110
0110.
010..
00...
.....
looksign1 e
purple #882288 black
..0..
.010.
.010.
01110
00000
looksign2 r
purple #882288 black
.2...
.2...
.2...
.2...
.222.
looksign3 t
purple #882288 black
222.2
2.2.2
2.2.2
2.2.2
222.2
looksign4 y
purple #882288 black
22.2.
.2.22
.2.22
.2.22
22.2.
looksign5 u
purple #882288 black
2....
.....
.....
.....
2....
usesign1 d
purple #882288 black
..2.2
..2.2
..2.2
..2.2
..222
usesign2 f
purple #882288 black
.222.
.2...
.222.
...2.
.222.
usesign3 g
purple #882288 black
222.0
2...0
222..
2....
222..
usesign4 h
purple #882288 black
0000.
1110.
010..
010..
.0...
switchsign1 z
purple black
0...0
.0.0.
..0..
.0.0.
0...0
switchsign2 x
purple black
.111.
.1...
.111.
.1...
.111.
switchsign3 c
purple black
1.1.1
1.1.1
.1..1
1.1.1
1.1.1
switchsign4 b
purple black
.111.
..1..
..1..
..1..
..1..
(items)
item1p1
#dddddd
.....
.....
...00
..000
..000
item1p2
#dddddd
.....
.....
00000
00000
00000
item1p3
#dddddd pink
.....
.....
000.1
00001
00001
item1p4
pink
.....
.....
0....
00...
000..
item1p5
#dddddd
..000
..000
...00
.....
.....
item1p6
#dddddd
00000
00000
00000
.....
.....
item1p7
#dddddd pink
00001
00001
000.1
.....
.....
item1p8
pink
000..
00...
0....
.....
.....
item2p1
#777733
.....
.....
.....
.....
.....
item2p2
#777733
.....
.....
.....
..000
00000
item2p3
#777733 #227733
.....
.....
.....
00...
00011
item2p4
#777733 #227733
.....
.....
.....
111..
0....
item2p5
#777733
....0
...00
.0000
.....
.....
item2p6
#777733
000..
0....
.....
.....
.....
item2p7
#777733 #227733
00000
...00
.....
.....
.....
item2p8
#777733 #227733
1111.
00...
11...
.11..
.....
item3p1
grey
.....
.....
.....
.....
.....
item3p2
#888888 #880000 #555555
.....
.....
....2
...10
..201
item3p3
#888888 #880000 #555555
.....
.....
22...
002..
002..
item3p4
grey
.....
.....
.....
.....
.....
item3p5
grey
.....
.....
.....
.....
.....
item3p6
#888888 #880000 #555555
..200
..200
...22
.....
.....
item3p7
#888888 #880000 #555555
102..
01...
2....
.....
.....
item3p8
grey
.....
.....
.....
.....
.....
item4p1
red white black grey brown
.....
.....
....1
....1
....1
item4p2
red white black grey brown
.....
.....
01012
40404
44222
item4p3
red white black grey brown
.....
.....
1....
2....
11...
item4p4
red white black grey brown
.....
.....
.....
.....
.....
item4p5
red white black grey brown
....1
.....
.....
.....
.....
item4p6
red white black grey brown
42332
13133
11111
.....
.....
item4p7
red white black grey brown
2222.
3322.
322.2
.....
.....
item4p8
red white black grey brown
.....
2....
2....
.....
.....
item5p1
#dddd22 #111111 #eeee33
.....
.....
.....
.....
.....
item5p2
#dddd22 #111111 #eeee33
.....
.....
..11.
.1111
.1010
item5p3
#dddd22 #111111 #eeee33
.....
.....
.....
.2...
2....
item5p4
#dddd22 #111111 #eeee33
.....
.....
.....
.....
.....
item5p5
#dddd22 #111111 #eeee33
.....
.....
.....
.....
.....
item5p6
#dddd22 #111111 #eeee33
.0110
.1010
10110
11111
.....
item5p7
#dddd22 #111111 #eeee33
22...
2....
12...
1....
.....
item5p8
#dddd22 #111111 #eeee33
.....
.....
.....
.....
.....
item6p1
#553300 #664411
.....
.....
...00
..010
..010
item6p2
#553300 #664411
.....
.....
00...
00000
00110
item6p3
#553300 #664411
.....
.....
.....
.....
000..
item6p4
#553300 #664411
.....
.....
.....
.....
.....
item6p5
#553300 #664411
..000
...00
....0
.....
.....
item6p6
#553300 #664411
00000
01000
0....
.....
.....
item6p7
#553300 #664411
00010
00100
...01
.....
.....
item6p8
#553300 #664411
00...
00...
0....
.....
.....
item7p1
red white
.....
.....
..000
..010
..011
item7p2
red white yellow
.....
.....
00000
00000
00022
item7p3
red white yellow blue
.....
.....
23000
23300
22220
item7p4
red white
.....
.....
.....
0....
00...
item7p5
red white
...01
....0
.....
.....
.....
item7p6
red white yellow
10002
11111
00000
.....
.....
item7p7
red white yellow
22200
11111
00000
.....
.....
item7p8
red white
000..
11...
000..
.....
.....
=======
LEGEND
=======
background = background1 or background2
@ = player and avatar
* = npc and quest
arrow = larrowtop or larrowbottom or rarrowtop or rarrowbottom
looksign = looksign1 or looksign2 or looksign3 or looksign4 or looksign5
usesign = usesign1 or usesign2 or usesign3 or usesign4
switchsign = switchsign1 or switchsign2 or switchsign3 or switchsign4
item1 = item1p1 or item1p2 or item1p3 or item1p4 or item1p5 or item1p6 or item1p7 or item1p8
item2 = item2p1 or item2p2 or item2p3 or item2p4 or item2p5 or item2p6 or item2p7 or item2p8
item3 = item3p1 or item3p2 or item3p3 or item3p4 or item3p5 or item3p6 or item3p7 or item3p8
item4 = item4p1 or item4p2 or item4p3 or item4p4 or item4p5 or item4p6 or item4p7 or item4p8
item5 = item5p1 or item5p2 or item5p3 or item5p4 or item5p5 or item5p6 or item5p7 or item5p8
item6 = item6p1 or item6p2 or item6p3 or item6p4 or item6p5 or item6p6 or item6p7 or item6p8
item7 = item7p1 or item7p2 or item7p3 or item7p4 or item7p5 or item7p6 or item7p7 or item7p8
item = item1 or item2 or item3 or item4 or item5 or item6 or item7
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
background
player quest
arrow looksign usesign switchsign
item
avatar wall npc
======
RULES
======
[> player | npc] -> [player | npc] message "I need a lantern. Have one?"
[up player arrow] [item1] -> [player arrow] [item1] message a bottle
[up player arrow] [item2] -> [player arrow] [item2] message a dry weed
[up player arrow] [item3] -> [player arrow] [item3] message a catalyst capsule
[up player arrow] [item4] -> [player arrow] [item4] message a burned matchbook
[up player arrow] [item5] -> [player arrow] [item5] message a lantern
[up player arrow] [item6] -> [player arrow] [item6] message a wooden club
[up player arrow] [item7] -> [player arrow] [item7] message a Mariner's Trust passbook
[down player arrow] [item5] [avatar | npc quest] -> [arrow] [item5] [player avatar | npc] message "That's what I need! Thank you!"
[down player arrow] [avatar | npc quest] -> [arrow] [player avatar | npc quest] message "Thanks but I don't want that."
[down player arrow] -> [player arrow] message You don't see a way to use this.
right [larrowtop | no item] -> [larrowtop | item1p1]
[right player arrow] [item1p1] -> [player arrow] [item2p1]
[right player arrow] [item2p1] -> [player arrow] [item3p1]
[right player arrow] [item3p1] -> [player arrow] [item4p1]
[right player arrow] [item4p1] -> [player arrow] [item5p1]
[right player arrow] [item5p1] -> [player arrow] [item6p1]
[right player arrow] [item6p1] -> [player arrow] [item7p1]
[right player arrow] [item7p1] -> [player arrow] [item1p1]
[left player arrow] [item1p1] -> [player arrow] [item7p1]
[left player arrow] [item2p1] -> [player arrow] [item1p1]
[left player arrow] [item3p1] -> [player arrow] [item2p1]
[left player arrow] [item4p1] -> [player arrow] [item3p1]
[left player arrow] [item5p1] -> [player arrow] [item4p1]
[left player arrow] [item6p1] -> [player arrow] [item5p1]
[left player arrow] [item7p1] -> [player arrow] [item6p1]
right [item1p1 |||] -> [item1p1 | item1p2 | item1p3 | item1p4]
down [item1p1 |] -> [item1p1 | item1p5]
right [item1p5 |||] -> [item1p5 | item1p6 | item1p7 | item1p8]
right [item2p1 |||] -> [item2p1 | item2p2 | item2p3 | item2p4]
down [item2p1 |] -> [item2p1 | item2p5]
right [item2p5 |||] -> [item2p5 | item2p6 | item2p7 | item2p8]
right [item3p1 |||] -> [item3p1 | item3p2 | item3p3 | item3p4]
down [item3p1 |] -> [item3p1 | item3p5]
right [item3p5 |||] -> [item3p5 | item3p6 | item3p7 | item3p8]
right [item4p1 |||] -> [item4p1 | item4p2 | item4p3 | item4p4]
down [item4p1 |] -> [item4p1 | item4p5]
right [item4p5 |||] -> [item4p5 | item4p6 | item4p7 | item4p8]
right [item5p1 |||] -> [item5p1 | item5p2 | item5p3 | item5p4]
down [item5p1 |] -> [item5p1 | item5p5]
right [item5p5 |||] -> [item5p5 | item5p6 | item5p7 | item5p8]
right [item6p1 |||] -> [item6p1 | item6p2 | item6p3 | item6p4]
down [item6p1 |] -> [item6p1 | item6p5]
right [item6p5 |||] -> [item6p5 | item6p6 | item6p7 | item6p8]
right [item7p1 |||] -> [item7p1 | item7p2 | item7p3 | item7p4]
down [item7p1 |] -> [item7p1 | item7p5]
right [item7p5 |||] -> [item7p5 | item7p6 | item7p7 | item7p8]
[action player avatar] [larrowtop] -> [avatar] [player larrowtop]
[action player arrow] [avatar] -> [arrow] [player avatar]
[moving player avatar] -> [moving player moving avatar]
late [player no avatar no arrow] -> cancel
==============
WINCONDITIONS
==============
no quest
=======
LEVELS
=======
####################
#..#.....##........#
#*.......##..ertyu.#
#..#.....##.q,,,,w.#
####.....##.a,,,,s.#
#....@...##..dfgh..#
#........##........#
#........##.zxcb...#
#........##........#
####################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment