ygo_create_custom_card
Create unreleased or fan-made Yu-Gi-Oh! cards: assign a temporary ID, compile PSCT text into a Lua script, render an SVG mockup, and return compile and design-review feedback.
Instructions
Register a newly revealed or fan-made card: assign a temporary ID (990000000+), compile its effect text (PSCT: condition: cost; resolution, once-per-turn clauses, material line) into a ProjectIgnis Lua script, and render an SVG mockup. Returns compileReport: which effects were understood, clauses left as TODO (not simulated), confidence, and a card-designer review (missing once-per-turn, generic tutors, out-of-range numbers). Write the text in official PSCT wording for best results; pass effectsLua to supply a hand-written script instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atk | No | ATK (integer 0-1000000; '?' is not supported) | |
| def | No | DEF (integer 0-1000000) | |
| desc | Yes | Card effect text (PSCT). Extra Deck monsters: material line first, e.g. '1 Tuner + 1+ non-Tuner monsters'. Only the first 4000 characters are compiled (reported). | |
| name | Yes | Card name | |
| race | No | Race (Spellcaster, Dragon, ...) | |
| type | Yes | Card type (e.g. Effect Monster, Synchro Effect Monster, Quick-Play Spell Card, Counter Trap Card, Link Monster) | |
| level | No | Level / Rank (0-13) or Link Rating (1-8) for Link Monsters | |
| scale | No | Pendulum Scale (0-13) | |
| origin | No | Card source | unreleased_official |
| archetype | No | Archetype name (e.g. Fiendsmith). Official archetypes reuse their real setcode. | |
| attribute | No | Attribute (LIGHT, DARK, FIRE, ...) | |
| sourceUrl | No | Link to the reveal article (YGOrganization...) | |
| effectsLua | No | Raw Lua script that overrides the generated one (max 200 KB; must use `local s,id=GetID()`). Stored as user-supplied, not generated. | |
| linkMarkers | No | Link Arrows, e.g. ["Bottom-Left", "Bottom-Right"] |