Skip to content

Instantly share code, notes, and snippets.

@ThatScar
Created June 29, 2023 16:33
Show Gist options
  • Save ThatScar/0cfc66587ba8f49ce21b07e76d892161 to your computer and use it in GitHub Desktop.
Save ThatScar/0cfc66587ba8f49ce21b07e76d892161 to your computer and use it in GitHub Desktop.
NecroChemistry (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title NecroChemistry
author ThatScar
homepage thatscar.itch.io
noaction
background_color brown
text_color lightgray
========
OBJECTS
========
Background .
brown darkbrown
11111
10111
11101
11111
10111
White W
white
Red R
red
Yellow Y
yellow
DarkYellow 9
#999900
Black B
black
LightGray L
lightgray
Water ~
lightblue blue
11111
10111
11101
11111
10111
Glass #
lightgray transparent
00000
0...0
0...0
0...0
00000
Player P
black orange white blue
.000.
.111.
22222
.333.
.3.3.
NecroHat H
Purple yellow pink
.....
.20..
..20.
.200.
20000
Necromancer N
black brown grey darkblue
.000.
.111.
22222
.333.
.3.3.
Sparkle
yellow
.....
..0..
.0.0.
..0..
.....
Skeleton S
white
..0..
00000
..0..
.0.0.
.0.0.
ActiveSkeleton
white
=======
LEGEND
=======
Colour = White or Yellow or DarkYellow or Black or LightGray (but not Red)
AnySkeleton = ActiveSkeleton or Skeleton
Solid = Colour or Skeleton
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Glass
Red
Colour
Player, Water
Skeleton
Necromancer
NecroHat
Sparkle
(tmp)
ActiveSkeleton
======
RULES
======
[ Sparkle ] -> [ ]
down [ NecroHat | Necromancer ] -> [ | Necromancer ]
[ Necromancer ] -> [ Sparkle ]
[ > Player | Skeleton ] -> [ Player | Sparkle ]
[ > Player | Colour ] -> [ Player | Sparkle ]
late [ Skeleton ] -> [ ActiveSkeleton ]
late left [ ActiveSkeleton | Player ] -> [ | Skeleton Red ]
late [ ActiveSkeleton | Player ] -> [ | Skeleton Red ]
late [ ActiveSkeleton | no Colour no AnySkeleton | ... | Player ] -> [ | Skeleton | ... | Player ]
late [ ActiveSkeleton ] -> [ Skeleton ]
late [ White ] -> [ Skeleton Sparkle ]
late [ Sparkle ][ Player ] -> [ Sparkle ][ Sparkle Player ]
late [ Skeleton ][ Sparkle Player ] -> [ Skeleton ][ Player ]
late [ Sparkle Player ] -> again
==============
WINCONDITIONS
==============
no Skeleton
no Sparkle
no Necrohat
=======
LEVELS
=======
message "The necromancer is amassing an army of skeletons!"
message "Please help us defeat them"
.......H
.P....SN
........
message Pure Calcium
........
PP..WW.H
PP..WW.N
PP..WW..
........
message Hydroxyapatite
PP.WW...WW..
PP.WW...WW..
PP..WWWWW..H
PP..WWWWW..N
PP.WW...WW..
PP.WW...WW..
message Calcium phosphate
....#...#....
....#...#....
.P..#...#...H
.P..#WWW#...N
....#WWW#....
.....###.....
message Calcium lactate
..........999...
........99YYY9..
......99YYYYY9..
....9999999999.H
....9YWYYYYWY9.N
P...9YYYWWYYY9..
....9999999999..
................
message Calcium carbonate
...........
PP......W..
PP.....WWW.
PP....WWW.H
PP...WWW..N
PP..WWW....
PP..WW.....
...........
message Calcium sulfate
...........
PP......Y..
PP.....YYY.
PP....WWY.H
PP...WWW..N
PP..WWW....
PP..YW.....
...........
message Sanguine
...........
PP......R..
PP.....RRR.
PP....WWR.H
PP...WWW..N
PP..WWW....
PP..RW.....
...........
message Conté
...........
PP......B..
PP.....BBB.
PP....BBB.H
PP...BBB..N
PP..BBB....
PP..BB.....
...........
message "I am a necromancer but I also paint sometimes, you know?"
...........
.pp.....b..
.pp....bbb.
.pp...bbb..
.pp..bbb...
.pp.bbb....
.pp.bb.....
...........
message Calcium magnesium carbonate
.........
....ll...
....ll...
...wll...
...lllw..
...lllw..
..wlllw.H
P.wllll.N
..lllll..
..lllll..
..llllw..
...lll...
.........
message more Calcium carbonate
..........
P...WW....
.P.WWWW...
.P.WWWW..H
P.WWWWWW.N
P.WWWWWW..
P.WWWWWW..
.P.WWWW...
..........
message even more Calcium carbonate
...........
P.WWWW.....
P.LLLWWWW.H
P.WWLLLLL.N
P.LWWWWWW..
P.LLLLLLL..
...........
message you guessed it, Calcium carbonate
........
P..WW...
P.WW#W.H
P.WWWW.N
P..WW...
........
message "Was that calcite, aragonite or vaterite?"
message "Great, like one chemist wasn't enough - what's next, a geologist?"
message "Uh, where did our stores of limestone, dolomite, marble and chalk go?"
message "Oh no..."
message The End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment