Lightning Keep Cryptex
Lightning Keep Cryptex
A Digital Cryptex?
Gravity Forms
- Image choice fields for symbols
- Select fields for colour options
- Field level conditional logic to ensure all fields get a selection
- Confirmation level conditional logic to confirm right/wrong
- File upload field merge tag to display the generated legend image in confirmation
Gravity Flow
- A custom step type
- Step settings which store:
- The empty legend graphic
- The correct symbol/colour of each ring
- The file upload field to store generated image
- A step process function which uses:
- Those step settings
- PHP image library functions imagecreatefromjpeg, imagecolorallocate, imagefilledrectangle, and imagejpeg to generate the colour coded legend graphic
- GFAPI::update_entry to store the URL path of generated image on disk
Complex?
There are 4 billion unique combinations in the cryptex. I’m pretty sure you aren’t going to brute force the answer, and even if you do would it bring you as much joy as solving a DND puzzle?