[MZ] Spellwright lets players combine the spells they know into new ones, each with a magic circle drawn in code

Spellwright is an RPG Maker MZ plugin for spell making inside the game. At a spellwright’s circle the player takes the effects of spells their hero already knows, places up to four of them in the circle, turns a magnitude dial that drives the cost, names the result and watches its seal inscribe itself.

Spellwright making a spell

The new spell is a real skill. It shows in the skill list, casts in battle and saves like any other. Its damage is the source spell’s own formula times the magnitude, so Fire III at Greater becomes (500 + a.mat * 2 - b.mdf * 2) * 1.25.

Three rules keep a circle sane. Every aspect aims at foes, or every aspect aims at allies. A spell has one form, except that two harms of different elements fuse into one spell that meets the mean of the target’s two element rates. And there is a cap, 4 by default, settable per actor.

Cost counts each source spell once and is never less than the dearest source at that magnitude. We checked that over 100,000 random circles from the stock Sorcerer, Priest and Magic Swordsman, and none undercut its dearest source. Fire III plus Sleep, widened to all foes, at True costs 113 MP. You can swap in your own cost formula and the floor still applies.

Names are proposed from the spell (Fire III plus Sleep at True offers Drowsing Ember Tempest) or typed by the player. Every seal is drawn in code from what went into the spell, so there is no seal art to make.

Install is two files in js/plugins and one event that runs Open Spellwright’s Circle.

The code was written with AI tools and tested in the engine. It costs $12.99, and $9.09 in the itch Halloween sale until 4 November 18:00 UTC.

In-game spell crafting is a great fit for MZ — making the new spell a real, saveable skill avoids a lot of the usual workarounds. The rule that all aspects must target the same side also sounds like a sensible balance guard. Can players unlearn or replace a crafted spell later, or does the slot stay filled once it is created?

Yes, a crafted spell can be removed, and removing it frees its place in the actor’s ledger. In the Spell Ledger screen (the Open Spell Ledger command) the player picks a spell and presses Shift twice to unmake it. From an event, the Unmake Spell plugin command removes an actor’s most recent crafted spell or all of them, so you can set up a respec at a shrine or a trainer. A ledger holds 6 spells per actor by default, set by the Crafted spells per actor parameter. Sorry for the slow answer.