Working on puzzle mechanics and I ended up wanting a puzzle where the player uses a map an coordinates to find something that is buried outside, and ended with this, i kinda get the feeling that there might be a better way though.
[code]“Testing labs” by Ryan Porter
A tool is a kind of thing. Tools can be shoveling.
Rooms can be indoor or outdoor.
Digging is an action applying to nothing. Understand “dig” as digging.
h is a number that varies.
When Play Begins: Now h is 0.
Starter is a number that varies.
When Play Begins: Now Starter is 0
Select is a recurring scene.
Select begins when starter is 1.
Select ends when starter is 2.
When Select begins:
Say “You open up your map”;
Say “.[description of map]”;
Now the command prompt is “Where would you like to dig>”.
When Select Ends:
Now the command prompt is “>”.
Check digging:
If the player does not enclose a shoveling tool, say “you don’t think you could make much headway with your fingernails.” instead;
If the player is in an indoor room, say “you shouldn’t dig up the floor.” instead;
If the player does not enclose the map:
if h is less than 3:
say “you dig around a bit”;
increase h by 1;
otherwise:
say “maybe you should get some direction as to where to dig.”;
If the player encloses the map:
Now starter is 1
Instead of doing something other than A1, A2, B1 or B2 during Select:
say “that isnt a location on the map”;
now starter is 2.
A1 is an action applying to nothing. Understand “A1” as A1.
A2 is an action applying to nothing. Understand “A2” as A2.
B1 is an action applying to nothing. Understand “B1” as B1.
B2 is an action applying to nothing. Understand “B2” as B2.
Check A1:
if Select is happening:
say “you dig for a while but find nothing”;
Now starter is 2;
otherwise:
say “That’s not a verb I recognise.”.
Check A2:
if Select is happening:
say “you dig for a while but find nothing”;
Now starter is 2;
otherwise:
say “That’s not a verb I recognise.”.
Check B1:
if Select is happening:
say “you dig for a while and find a dingy hat”;
Now the hat is in the laboratory grounds;
Now starter is 2;
otherwise:
say “That’s not a verb I recognise.”.
Check B2:
if Select is happening:
say “you dig for a while but find nothing”;
Now starter is 2;
otherwise:
say “That’s not a verb I recognise.”.
The dirty hat is a thing. “this old hat has seen better days”.
The laboratory grounds is an outdoor room. In the laboratory grounds are a map and a spade. The spade is a shoveling tool.
The laboratory lobby is an indoor room. The lobby is north of the grounds.
The description of the laboratory grounds is “A large open space in front of the lab (to the north).”.
The description of the laboratory lobby is “A small lobby that leads to the experimentation lab, its after hours so everything is locked down tight, the door (to the south) leads out to the grounds”.
The spade is a shoveling tool. The description of the spade is “A small shovel.”. Understand “shovel” as spade.
The description of the map is “A map of the grounds printed out on white paper, a corner of the property is devided up into four quadrents labeled A1, A2, B1 and B2. B1 is circled.”.
test me with “get all / dig / A1 / dig / A2 / dig / B1 / dig /B2 / get hat.”[/code]