Sampler adds generated picross puzzles to RPG Maker MZ, each one finished as a cross stitch sampler - SamplerCore.js, SamplerDraw.js, Sampler.js
Sampler adds generated picross puzzles to RPG Maker MZ, each one finished as a cross stitch sampler(Author:Core Systems Asset Factory) - SamplerCore.js, SamplerDraw.js, Sampler.js
https://en.plugin-mz.fungamemake.com/archives/12579
Sampler is a picross (nonogram) minigame. The player fills a chart from the number clues along its rows and columns, and each number is a run of stitches in order. When the chart is right, the stitches take their colours from the centre out and the finished piece is set in an embroidery hoop inside a stitched wreath, with a brass plaque. Every puzzle is generated from a seed: the motif, its thread colours and the chart size (5, 10 or 15 stitches). Motifs come in four forms, star, medallion, lattice and diamond, fourfold symmetric like real sampler work, with ...
Plugin desc :
Sampler is a picross (nonogram) minigame. The player fills a chart from the number clues along its rows and columns, and each number is a run of stitches in order. When the chart is right, the stitches take their colours from the centre out and the finished piece is set in an embroidery hoop inside a stitched wreath, with a brass plaque. Every puzzle is generated from a seed: the motif, its thread colours and the chart size (5, 10 or 15 stitches). Motifs come in four forms, star, medallion, lattice and diamond, fourfold symmetric like real sampler work, with ...
License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Prohibited (This does not apply to works made using the material.)
・Details: See Download Page / In-plugin documentation
File name : SamplerCore.js, SamplerDraw.js, Sampler.js
Help of plugin :
Sampler: picross puzzles for RPG Maker MZ, finished as a cross stitch sampler
============================================================================
Sampler
============================================================================
Picross for your game. The player fills a chart from the number clues
along its rows and columns: each number is a run of stitches, in order.
When the chart is right, the stitches take their colours and the finished
piece is set in an embroidery hoop as a cross-stitch sampler.
Every puzzle is GENERATED from a seed: the motif (a star, medallion,
lattice or diamond ornament, four-fold symmetric like real sampler
work), its thread colours and the chart size (5, 10 or 15 stitches). You
can also turn any icon in your own IconSet into a puzzle.
EVERY PUZZLE IS PROVEN FAIR. Before the player sees it, a line-logic solver
works it from the clues. Where the clues alone leave cells undecided, a few
stitches are given (sewn in from the start) until the solver completes the
whole chart. So every puzzle has exactly one answer and never needs a
guess. Generated motifs are redrawn until no more than 8% of the chart
would need to be given.
----------------------------------------------------------------------------
INSTALLING
----------------------------------------------------------------------------
Plugin Manager order, top to bottom:
SamplerCore.js (the generator and the solver)
SamplerDraw.js (the drawing)
Sampler.js (this file: parameters, the command, the scene)
----------------------------------------------------------------------------
USING IT
----------------------------------------------------------------------------
Add the plugin command "Open Sampler" to an event. Choose the chart size,
the motif form, the threads, an optional icon, and a switch and a variable
to set when it is finished. The event waits while the player works.
Leave the seed blank and the puzzle is keyed to its map and event, so it
is the same puzzle every visit, and the stitches the player has already
made are kept when they leave and come back.
----------------------------------------------------------------------------
CONTROLS
----------------------------------------------------------------------------
Arrow keys move the needle. OK stitches (or unpicks) a cell. Shift marks a
cell as empty. Escape leaves (the work is kept).
Mouse and touch: click to stitch, drag to stitch a line; right-click marks
a cell empty (right-click outside the chart leaves).
----------------------------------------------------------------------------
COMPATIBILITY
----------------------------------------------------------------------------
Sampler adds its own scene and replaces nothing. It extends one engine
method (Game_System.initialize) to create its save record, calling the
original first.
============================================================================
TERMS OF USE
============================================================================
Commercial and non-commercial use permitted in RPG Maker projects, credit
appreciated but not required. Do not redistribute the source as an asset
pack. Every line of this plugin was written with AI assistance.
============================================================================
Parameters (Plugin Manager, Sampler.js):
Sound: a stitch (file, default Cursor1)
Sound: a cell marked empty (file, default Cursor2)
Sound: the sampler finished (file, default Item3)
Plugin commands:
Open Sampler
Open a picross chart. The event waits until the player finishes or leaves.
argument: Chart size (select, default 10), options: auto, 5, 10, 15
argument: Motif form (select, default auto), options: auto, star, medallion, lattice, diamond
argument: Threads (select, default auto), options: auto, scarlet, indigo, forest, rose, harvest, midnight
argument: Icon (optional) (icon, default 0)
0 = a generated motif. Otherwise the chart is this icon from your IconSet.
argument: Switch: on when finished (switch, default 0)
argument: Variable: 1 finished, 0 left unfinished (variable, default 0)
argument: Title (string, default blank)
Shown on the pattern card and the plaque. Blank = named after the motif.
argument: Seed (optional) (string, default blank)
Blank = keyed to this map and event.
Sampler is a picross (nonogram) minigame. The player fills a chart from the number clues along its rows and columns, and each number is a run of stitches in order. When the chart is right, the stitches take their colours from the centre out and the finished piece is set in an embroidery hoop inside a stitched wreath, with a brass plaque.
Every puzzle is generated from a seed: the motif, its thread colours and the chart size (5, 10 or 15 stitches). Motifs come in four forms, star, medallion, lattice and diamond, fourfold symmetric like real sampler work, with six thread palettes and four wreaths. Nothing is loaded from an image file. You can also turn any icon in your own IconSet into a chart.
Every puzzle is proven fair. Before the player sees a chart, a line logic solver works it from the clues. Where the clues alone leave cells undecided, a few stitches are given until the solver completes the chart, so every puzzle has exactly one answer and never needs a guess.
One plugin command, Open Sampler, with chart size, form, threads, an optional icon, a switch and a variable for when it is finished. Leave the seed blank and the chart is keyed to its map and event, so it is the same chart every visit, and unfinished work is kept.
Three files, in this order: SamplerCore.js, SamplerDraw.js, Sampler.js. Sampler adds its own scene and replaces nothing. It extends one engine method, Game_System.initialize, calling the original first.
RPG Maker MZ. Raw readable source, and a licence for commercial games.
https://csaf.itch.io/sampler
Disclosure, up front: this plugin was written by AI. Code yes, graphics yes, sounds no.