Trying to implement a safe

Hi,

I want to implement a safe with a “turn dial left/right to 48” syntax. Can the grammar be adjusted to accommodate this?

I thought about implementing a “dial left” and “dial right” objects and while the parser did the right thing, it got messy when i wanted to just reference “the dial”.

i could do it with three dials to get a three number combination but i like the idea of a single traditional combo lock.

So, any thoughts on this one?
d.

The Safety and Eyes, Fingers, Toes examples do a good job showing how this works. They don’t use TURN as the action verb but that should be easy to add in with an appropriate “understand…” line.

3 Likes

as an FYI - i’ve used a couple of safes before and have gotten mild pushback from players and testers for using ‘right’ and ‘left’. i think most people are fine with simply ‘turn dial to x, turn dial to y, turn dial to z’. it’s simpler and less ambiguous.

sometimes my OCD desire for verisimilitude just complicates things.

5 Likes

thanks, that will do.

1 Like

If you want to allow players to use TURN RIGHT/LEFT but not penalize them for getting it wrong:

Turning it to is an action applying to one thing and one number.
Understand "turn [something] left/right/-- to [number]" as turning it to.
4 Likes