You have a number of jars. Some of them have colored gems stacked one on top of another.
You can grab top grm from jap and drop it into another jar, adding it on top of the stack.
If all jars are either empty, or full of same-colored gems, puzzle is solved.
Some jars have colored base and can be completed oly if filled with gems of specific color.
Stand in front of the jar and press Ex1 to lift/drop top ball from jar.
Update 20.11.2023 - Added optional restraint rendered by colored jar base. This jar must be filled with balls/gems of specific color to solve. Also added variant that filling jar with targer color awards item, tracked in screen D register.
1. Set up tiles to render jars, balls and goal marks. Tiles must be as tall as COLORSORT_SIZE_PER_UNIT constant, rest should be transparent.Balls tiles must be consecutive.
2. Also for color targeted jars set up a sequence of tiles with the same color order as balls needed to render color clues on jar bases and one tile for clue that jar must be empty.
3. Set up constants inside script file. For instance, TILE_COLORSORT_BALL to ID of leftmost ball tile.
4. Set up combo for bottom part of the jar what looks like, if jar was empty.
5. Place jar FFC`s with combo from step 4 as Data and assigned script. Make sure there is a solid combo underneath FFC and free spot 1 space south.
D0 to D2. IDs of ball colors (0-6), starting from bottom. Color are read in pairs.
#####.____ - lower ball
_____.#### - higher ball
D3 - #####.____ - jar capacity, in units.
_____.#### - add together: 1 - It`s prohibited to place a ball onto different-colored one, unless placed back where it was taken from. 2 - ban placing colored balls into jar that had special trigger already activated (D5 != 0).
D4 - Target color. The jar must be filled with gems of this color ID to count as complete. -1 - jar must be empty for puzzle to be solved. 0 - any color.
D5 - Special trigger option in completing jar. >0 - ID of Item awarded, <0 - Instant secret trigger. Balls will disappear on special trigger.
D6 - Screen D bit ID to track special triggers. Musi be unique for each jar in the screen.