Skip to content

Instantly share code, notes, and snippets.

Created August 21, 2014 19:34
Show Gist options
  • Save anonymous/d64c0b790544aad22f7f to your computer and use it in GitHub Desktop.
Save anonymous/d64c0b790544aad22f7f to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title The Initiate's Spell
author Nut
homepage twitter.com/InfinitNutshell
music http://www.beepbox.co/#5sbk9l00e0ft7a7g0fjbi0r0w3011f0000d1113c2000h0000v2002o3210b4xd5hx8jhkoi4Ql6u7CHH14h4h4h4h4hcPci4x8i4x8p24VFzMC64Cm2IossoY8jClXwsw7ydDrUz9P4ReMusVDx3C49OAQKNusV2U1Vw6s1GSKbSgsPqSBsucuVSKbWh5MbqViSZH0sYiqfUw8ANU1g2w50942os0jfybp1g2w50agn0jbCb91g2w50awsk3yoG0p6i38SgpgdyaA6hAwO4ReEJA6NwgczCWGoJw6NA0Oer1A0S8Ggp6g38Sgl0UCbygshBwOeb1BwSoJw50agk0F1JwS8JA50agk0VGb91g231i2I5eO01j0Y4wC9w939pwh8c-M5CU2P01r0mpwbcDoA6ro2Ps1o2g000
run_rules_on_level_start
zoomscreen 15x10
========
OBJECTS
========
bg .
green
grass1
green darkgreen yellow red
00000
10300
00010
02000
00000
grass2
green darkgreen yellow red
00000
00100
30000
00010
02000
grass3
green
dirt '
#554433 #443322 #111111
11111
21001
10121
02111
11201
hedge
#004400 #005000
.....
000..
0000.
1000.
.111.
rock
#444444 #383838
.....
.00..
0000.
1001.
.11..
wall #
#555555 #444444 #443322
00000
00010
00020
10000
21111
tree ~
#004400 #332211 green
20022
00002
01102
21122
11112
water _
#4444FF #7777FF
00110
11000
00011
01100
10001
wizarde
#773333 brown
.....
.....
.010.
.00..
0000.
wizardw
#773333 brown
.....
.....
010..
.00..
0000.
wizards
#773333 brown
.....
.....
0110.
.00..
0000.
wizardn
#773333
.....
.....
0.00.
.00..
0000.
redhat
#800000
.....
.00..
.00..
.....
.....
bluehat
#000099
.....
.00..
.00..
.....
.....
purplehatdry
#333377
.....
.00..
.00..
.....
.....
purplehatwet
#333377 #4444FF
....1
.00..
.00..
.....
.....
tome
brown white
.....
0000.
0111.
0000.
.....
pedestal
#33FFAA
.....
.....
.....
.....
.00..
(spell stuff)
pullh
#EE00EE
.....
.0...
0.0.0
...0.
.....
pullv
#EE00EE
..0..
.0...
..0..
...0.
..0..
fire1
red orange
.....
..1..
.111.
1001.
.11..
fire2
red orange
.....
.1...
.11..
1001.
.11..
bigfire
red orange
.0...
0100.
01100
11011
.111.
nofire
red
.....
.....
.....
.....
.....
ash
orange grey
.....
.1.1.
1.1..
.1.1.
1.1..
soak
#4444FF #443322
.....
0010.
1..0.
0..1.
0100.
wring
#4444FF #443322
.....
0010.
1..0.
0..1.
0100.
(misc)
critter1
darkred black
.....
.....
..10.
010..
.....
critter2
#CCCCCC black
.....
.....
.....
.0001
.0.0.
=======
LEGEND
=======
@ = wizarde and bg
+ = critter1 and bg
/ = critter2 and bg
% = hedge and bg
& = rock and bg
* = rock and dirt
critter = critter1 or critter2
purplehat = purplehatwet or purplehatdry
hat = redhat or bluehat or purplehat
background = bg or grass1 or grass2 or grass3 or dirt
wizard = wizardw or wizarde or wizards or wizardn
player = wizard
obstacle = hedge or rock or wall or tree or water or critter
nopull = obstacle or pedestal
fireproof = tree or wall or water or rock
notrans = hedge or rock or wall or tree or pedestal
A = tome and pedestal and bg
B = tome and pedestal and dirt
pull = pullh or pullv
fire = fire1 or fire2
onfire = fire1 or fire2 or bigfire
flames = fire or bigfire or nofire
transmute = soak or wring
spell = pull or transmute
=======
SOUNDS
=======
sfx0 83040508 (pull)
sfx1 88243507 (fire)
sfx4 54051704 (extinguish)
sfx2 13175308 (soak)
sfx3 96597308 (wring)
sfx5 84273108 (get tome)
================
COLLISIONLAYERS
================
background
pedestal
hat pull
wizard obstacle tome
flames transmute ash
======
RULES
======
[bg] -> [random grass1 random grass2 random grass3]
(lose conditions)
[bigfire wizard] -> cancel
[bigfire tome] -> cancel
(your hat determines your one spell)
[wizard no hat] -> [wizard random redhat random bluehat random purplehatdry]
(turn)
[left wizard no wizardw] -> [left wizardw]
[right wizard no wizarde] -> [right wizarde]
[down wizard no wizards] -> [down wizards]
[up wizard no wizardn] -> [up wizardn]
(move with hat)
[moving wizard hat] -> [moving wizard moving hat]
[> wizard | obstacle] -> cancel
late [wizard | hat] -> [wizard hat |] (backup)
(get tome)
[> wizard | tome] -> [| wizard] checkpoint sfx5
(critters move except on spell turns)
[stationary critter] -> [randomDir critter]
[moving critter] [spell] -> [stationary critter] [spell]
(spells)
(blue hat pulls rocks)
horizontal [pullh | pullh | rock] -> [| rock |] sfx0
horizontal [pullh | rock] -> [rock |] sfx0
vertical [pullv | pullv | rock] -> [| rock |] sfx0
vertical [pullv | rock] -> [rock |] sfx0
[pull] -> []
right [action wizarde bluehat | no nopull | no nopull] -> [wizarde bluehat | pullh | pullh] again
right [action wizarde bluehat | no nopull] -> [wizarde bluehat | pullh] again
left [action wizardw bluehat | no nopull | no nopull] -> [wizardw bluehat | pullh | pullh] again
left [action wizardw bluehat | no nopull] -> [wizardw bluehat | pullh] again
up [action wizardn bluehat | no nopull | no nopull] -> [wizardn bluehat | pullv | pullv] again
up [action wizardn bluehat | no nopull] -> [wizardn bluehat | pullv] again
down [action wizards bluehat | no nopull | no nopull] -> [wizards bluehat | pullv | pullv] again
down [action wizards bluehat | no nopull] -> [wizards bluehat | pullv] again
(red hat makes fire)
[ash] -> []
(hedges burn up quickly)
[bigfire hedge] -> [fire2]
[fire hedge] -> [bigfire hedge]
[fire2 | hedge no flames] -> [fire2 | hedge random flames]
+[bigfire | hedge no flames] -> [bigfire | hedge random flames]
(each bigfire tries to spread in a random direction,
but not right into the player if possible because that's annoying)
[stationary bigfire] -> [randomDir bigfire]
[> bigfire | wizard] -> randomDir bigfire | wizard]
[> bigfire | | < wizard] -> [randomDir bigfire | | < wizard]
(extinguish fire)
right [action wizarde redhat | onfire] -> [wizarde redhat | stationary ash] sfx4
left [action wizardw redhat | onfire] -> [wizardw redhat | stationary ash] sfx4
up [action wizardn redhat | onfire] -> [wizardn redhat | stationary ash] sfx4
down [action wizards redhat | onfire] -> [wizards redhat | stationary ash] sfx4
[> bigfire | no fireproof no flames] -> [bigfire | fire1]
[moving bigfire] -> [bigfire]
[nofire] -> []
(each fire can either grow or shrink)
[flames] -> [action flames]
[action fire1] -> [random flames] sfx1
[action fire2] -> [random fire1 random fire2 random bigfire]
[action bigfire] -> [random fire2 random bigfire]
(start fire)
right [action wizarde redhat | no fireproof no flames] -> [wizarde redhat | fire1] sfx1
left [action wizardw redhat | no fireproof no flames] -> [wizardw redhat | fire1] sfx1
up [action wizardn redhat | no fireproof no flames] -> [wizardn redhat | fire1] sfx1
down [action wizards redhat | no fireproof no flames] -> [wizards redhat | fire1] sfx1
(nearby water reduces fire)
[water | fire2 no hedge] -> [water | fire1]
[water | bigfire no hedge] -> [water | fire2]
(more flammables)
late [flames tome] -> [bigfire tome] message The knowledge of the ancients has been burned away forever...
late [flames wizard] -> [bigfire wizard] message The flames consume you...
late [flames critter] -> []
(purple hat transmutes dirt into water and vice versa)
[purplehatdry | soak water] -> [purplehatwet | dirt] sfx2
[purplehatwet | wring dirt no water] -> [purplehatdry | water] sfx3
[transmute] -> []
right [action wizarde purplehatdry | no notrans] -> [wizarde purplehatdry | soak] again
left [action wizardw purplehatdry | no notrans] -> [wizardw purplehatdry | soak] again
up [action wizardn purplehatdry | no notrans] -> [wizardn purplehatdry | soak] again
down [action wizards purplehatdry | no notrans] -> [wizards purplehatdry | soak] again
right [action wizarde purplehatwet | no notrans] -> [wizarde purplehatwet | wring] again
left [action wizardw purplehatwet | no notrans] -> [wizardw purplehatwet | wring] again
up [action wizardn purplehatwet | no notrans] -> [wizardn purplehatwet | wring] again
down [action wizards purplehatwet | no notrans] -> [wizards purplehatwet | wring] again
==============
WINCONDITIONS
==============
no tome
=======
LEVELS
=======
message An experienced wizard knows many powerful spells.
message But you are just an initiate, the most lowly of wizards. You only get one spell.
message Read the 7 Tomes of the ancient masters of wizardry, and maybe someday you too will be versatile in your magic.
_____________________________________________________________________________________________________________
_____________________________________________________________________________________________________________
_____________________________________________________________________________________________________________
_______________&&&___________________________________________________________________________________________
_____&&&&&&&&&&&..&&&&&&&&***&_&_________________________________&&&&&&&&&&&&&&____&&&&&&&&&&&&&&&___________
____&.......&&............___.&.&&&&_______&&&&&&&&__________&&&&.............&&&&&...............&&_________
____&....................__.........&&&&&&&........&&&&&&&&&&......................................&&________
___&.....~~~..&....%~....__..~..%....................................%...~...........~....~..%%%~...&________
___&....~...&__....~....__..................%.................~...%...........~.........%...%....%..&________
____&...~.a.____.......__..........~...__..................~...............%.....~...%....%%..%%..%..&_______
____&...~..._____......__....~..~.....____....../..%..%..%..~..~......%.............~.%..%...%.%%.%..&_______
____&....~~%.____......___...........__'__...~..~.%.................~..%%%%%%%%%%%..%..%&%.%%..%...%.&_______
_____&.....%%.__......~.__..........._____...........%......._...~.....%.....%.&.%%%...........%....&&_______
______&................~.__......~....__....~.&..~..........___..%.....%..~..%&..%.%%..%%%%%.**%##...&*______
______&.........'*.&....%__.........................~...%%%~~__.%......%.....%..&%.~.%.%%~%%.*'%'#~&&_*______
_______&........*........%__..~....~.....~..%~.~...~.~~%....%_*....~...%...%%%%%~%...%.%.....*.a.'____*______
_______&.................%.__....................~.&..&...a.._&.%......%%..%..%.~%%%%%.%%..~.#'.''____*______
______&......@..&...+..&.%%__...............~.%~...%..~&.....~....&...%~~%.%.~%.%......%%%.%.###''_&&_*______
______&............&....&..''.........~.........~.%%...%....~....%....%~~%.%.&%.%%..%..%%%.%....%%_.'**______
______&................&...__....~..%.....%..~.....%...%..%%.~..%......%%..%%%..%%%.%%.&...~%%..~...'*_______
_____&...&......&....&..&.__..........&.....%..~....&~.%%.%.%....%....%.........%..~.%.%%%%%..%.....%&_______
_____&..................&__..............~........%~.~...&..~..%.......~..%..%%.%.~..%.%%%%%...%..%%..&______
_____&.......&.....&...&___.........~.........~....~..~___..../.%.%.~...%.%..%..%%%%%%......%...%%....&______
____&......+.....&...&.___......~..........~....~...~............%......%.%%%..........%%%%......./..&_______
____&..................__....%.......................~....~.%..%.......%%....%%%%%%%%....%.%.&.......&_______
___.&&..&......&......__..............~......~.~..~...%%%%~..%......&........%.~..~.%%.%%.%%%..~~.~.&________
_____&............&..._&..%......%.......%....................../.......%.%%%%%%%%%%%.%%.....~~..~.~&________
___&&......&........__......~................%.....~.%...................%...........&..~............&_______
___&...............__&...........~..~.....~.....~...%..%...........&................____.~............&______
____&.............._%......%...%............................~................%...___%%%_..~........+..&______
____&.............._%..&.%...&...~.....~........................../......''......%%%..%_..~..../.....&_______
___*####*####*#*..._~......................%..~.....~....~...............*''..........%_...%#'.......&_______
__*'''*'''''#'''*##_..+...&..&.%....~..____......~........./...%.....~....''.../....%_%_%_.%#'........&______
__*'*''##*'*'##'''#..............~____.._____..........~......_._...................%_%_%_%##''.......&______
_**'*''##*'#''###'#'.....&......%______..__&__~....~........._..._............&..~..%_%_%_%#'''.......&______
__*''#'''''*''''''''........&...._______....&__.............&..a..&..../...........~%_%%%_%#'''.......&______
___*'#***#''''*'###'..&........&__.........&.__.....__...%..._..._...%...~.........%___%____'''...a..&_______
___*'#''''##''#'''#'.....&......_&........&..._~...___.....~.._._..................%_%'%'%.#''.......&&______
___*'#'*#''#'#''*'#'........&..~&&&&&&&&&&&&&__./..__.%........%...............~...%_%___%.#''........&______
___**''***'#''#*''**............~_..........._.%.........~.............&...........%_%%_%~.#'.........&______
__**#'##'''#''''*#''#..+..&.....~'&&&&&&&&&&&&~........%.................%..'......._%%_~..#'.../.....&______
__*'''''*'##'#'''''''#.........~._...........~....__.......~.........~......''......_%%_~..%..........&______
___*#'#'#'''#'#'****''#......&..~...~~~..a...~....__.%............+.........#''....._%%_~~%_%........&&______
___*''*'#'*''''*''''*''#'#.......~.&..%~...%~..........&&.....&...........+..'#....._'%_~~.__........&_______
___*''*''#'**#'###'#'*''#'....&...~.....~~~%..........&&&&&............&......'.......%.~.../....+..&________
___*'*b''#'''#'''''''#*''*&..........................&&_&&&&.......~.........&.....&..%..~..........&________
____**'*****'''''*'*'''''''&&&&...&&&&&......&&&&...&&_____&&..............&&_&..&&'&...&....&&&.&&&_________
______**___******_*_*******_&&_&&&_____&&&&&&____&&&_________&&&&&&&&&&&&&&____&&___&&&&_&&&&&__&_&__________
_____________________________________________________________________________________________________________
_____________________________________________________________________________________________________________
_____________________________________________________________________________________________________________
message Having collected all 7 Tomes, you withdraw to a place of solitude to study them. One day, you will emerge back into the world, master of many spells.
message On that day, will you think back to the journey of your past? Will you remember which spell you used in your days as a lowly initiate?
message Play again to find out if your adventure really happened the way you remember it...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment