Skip to content

Instantly share code, notes, and snippets.

@janAkali
Last active June 3, 2022 07:51
Show Gist options
  • Save janAkali/3f128fd354aa9d01004a9d31ec345af6 to your computer and use it in GitHub Desktop.
Save janAkali/3f128fd354aa9d01004a9d31ec345af6 to your computer and use it in GitHub Desktop.
Sketchy Cleanup Detail (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Sketchy Cleanup Detail
author ArcharGelod
homepage archargelod.itch.io
norepeat_action
========
OBJECTS
========
Background
#D4D4D4 #C1C1C1
00100
00100
11111
00100
00100
Stain1
red
.....
...0.
.00..
0000.
.0...
Stain2
darkred
.....
.00..
0000.
.00..
...0.
WallH
lightgray gray
11111
11111
00000
11111
11111
WallV
lightgray gray
11011
11011
11011
11011
11011
WallT
lightgray gray
11111
11011
10001
11011
11111
Player
green orange black
.11..
.12..
0110.
.11..
.22..
Bucket
darkgrey blue gray
.22..
2..2.
0110.
0000.
.00..
HoldBucket3
darkgrey blue
.....
.....
..010
..010
...0.
HoldBucket2
darkgrey blue
.....
.....
..010
..010
...0.
HoldBucket1
darkgrey blue grey
.....
.....
..020
..010
...0.
Mop
brown lightbrown
..0..
..0..
..0..
..0..
11111
HoldMop
brown lightbrown
.0...
.0...
.0...
.0...
111..
Puddle
#66BBFF #77DDFF
.....
.000.
01110
01110
.000.
GateOpen
darkgrey grey green
21212
0...0
0...0
0...0
0...0
GateClosed
darkgrey grey red
21212
0...0
0...0
00000
0...0
Temp
lightblue
.000.
00000
00000
00000
.000.
=======
LEGEND
=======
. = Background
- = WallH
I = WallV
# = WallT
G = GateOpen
P = Player
B = Bucket
T = Mop
* = Stain1
0 = Stain2
O = Puddle
Wall=WallH or WallV or WallT
Stain = Stain1 or Stain2
Gate=GateOpen or GateClosed
solid=Player or Wall or bucket or puddle or GateClosed
HoldBucket=HoldBucket3 or HoldBucket2 or HoldBucket1
Holdables=holdbucket or HoldMop
=======
SOUNDS
=======
Stain destroy 78419705
Puddle destroy 69680107
================
COLLISIONLAYERS
================
Background
Temp
GateOpen, Stain
Player, Wall, Bucket, Mop, Puddle, GateClosed
holdbucket
holdmop
======
RULES
======
(take bucket)
[> Player | Bucket] -> [> Player HoldBucket3 | ]
(take mop)
[> Player | Mop ] -> [> Player HoldMop | ]
(move holdables with player)
[> Player holdables | no solid ] -> [> Player > holdables | ]
(turn stains into puddles)
[Action Player HoldBucket | Stain1] -> [Action Player HoldBucket Temp | Puddle]
(turn stain2 into stain1)
[Action Player HoldBucket | Stain2] -> [Action Player HoldBucket Temp | Stain1]
(use mop to dry 1 puddle)
[> Player HoldMop holdbucket | Puddle] -> [> Player NO HoldMop > holdbucket | no puddle]
[> Player HoldMop | Puddle] -> [> Player NO HoldMop | no puddle]
(reduce bucket capacity)
late [Player HoldBucket1 Temp ] -> [Player ]
late [Player HoldBucket2 Temp ] -> [Player HoldBucket1]
late [Player HoldBucket3 Temp ] -> [Player HoldBucket2]
(toggle gates if player holds a bucket)
late [player holdbucket][GateOpen] -> [Player HoldBucket][GateClosed]
late [player no holdbucket][GateClosed] -> [Player][GateOpen]
==============
WINCONDITIONS
==============
no Stain
=======
LEVELS
=======
message Level 1: Bucket
#----#
I....I
I.b.pI
I....I
I....I
I..*.I
#----#
message Level 2: Three splashes
#----#
I...*I
I.#--#
I...*I
Ipb.*I
I...*I
#----#
message Level 3: Sacrifice
#----#
I.b.*I
I..#-#
I.p*.I
I.*.*I
I..*.I
#----#
message Level 4: Advanced
#--------#
I.....*.*I
I.#----#.I
I.Ibp..*bI
I.#..#*#.I
I.***I-I*I
#----#-#-#
message Level 5: Advanced 2
#------#
I...*.*I
I.#--#.I
I..***.I
I.*p*#*I
I*.bb*.I
#------#
message Level 6: Security Measures
#-------#--#
I..**...Ib*I
I***#...I.bI
I.......I..I
I....b..I..I
#-----#g#g##
I.*........I
I*.p.......I
I.*..b.....I
#----------#
message Level 7: Stuck
#---#---##-#
I...I0.0II.I
I...#.0.##0I
Ip#......0bI
IbI.....##0I
Ig#-----##-#
IbI....0...I
I.#...0.*..I
I......0.*.I
I....#..*..I
#----#-----#
message Level 8: Mop of Hope
#------#-#-#
I...bt.#*#0I
I......*.*.I
Ip..0..#*#.I
I....0.....I
I..........I
#----#.#*#-#
Ib...I.*.*.I
I....#.#*#-#
It...o.I.I-I
#------#-#-#
message Level 9: Bring them in order
#-----#------#-----#
I.*.0.Itto*.bIb*..tI
Ib**.0Iooo*..I..0..I
I0.**.I**0...I.....I
I.0...I.b...0I.....I
#---#*##g----##.#--#
I......p.....gb...tI
##g#--#---#o##--#.##
Ioooo.I0.....I**..bI
Iooo..I......I*0...I
I.oo..I......I0*...I
Ib...*I....bbI*0..tI
#-----#------#-----#
message The End. Thank you for playing!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment