Water Pouring Puzzle
Overview
Creator:
Alucard648
Updated: 11 Mar 2022
Tags:
FFC
Downloads: 15
|
View Script
Download Package (1.04 MB) |
Information
Script for creating puzzles, like "measure 6 units of liquid with only 5 and 8 unit jars".
https://en.wikipedia..._pouring_puzzle
https://en.wikipedia..._pouring_puzzle
Description Setup Reviews Comments
1. Check out constants at the top of script file. Especially LINK_MISC_JAR_IN_HAND. It should set to avoid conflicts with other scripts.
2. Set up tiles to render jars. Tiles are rendered by script from bottom to top using WATERJAR_SIZE_PER_UNIT constant. Water itself is rendered in increments 1 pixel tall.
3. Set up combo for bottommost part ofd jar that would look like, if jar is empty.
4. Import and compile the script.
5. Place jar FFC`s with combo from step 3 as Data and assigned script. 1 jar = 1 FFC. Put solid combos underneath FFCs.
// D0 - Jar capacity, in units.
// D1 - Initial amount of liquid in jar, in units.
// D2 - Target amount of liquid in jar, in units.
// - If set to 0, the jar must be empty to solve the puzzle.
// - Set to -1 to remove mark at all.
2. Set up tiles to render jars. Tiles are rendered by script from bottom to top using WATERJAR_SIZE_PER_UNIT constant. Water itself is rendered in increments 1 pixel tall.
3. Set up combo for bottommost part ofd jar that would look like, if jar is empty.
4. Import and compile the script.
5. Place jar FFC`s with combo from step 3 as Data and assigned script. 1 jar = 1 FFC. Put solid combos underneath FFCs.
// D0 - Jar capacity, in units.
// D1 - Initial amount of liquid in jar, in units.
// D2 - Target amount of liquid in jar, in units.
// - If set to 0, the jar must be empty to solve the puzzle.
// - Set to -1 to remove mark at all.



