Skip to content

Auxiliary.AddXyzProcedure ​

Signature ​

lua
Auxiliary.AddXyzProcedure(Card c, function|nil f, int lv, int ct, [function|nil alterf], [int alterdesc], [int maxct], [function|nil alterop]) -> void

Description ​

Registers the standard Xyz Summon procedure for c. f filters materials, lv is the required material Xyz Level, ct is the minimum material count, and maxct optionally caps the maximum. The helper creates an Extra Deck EFFECT_SPSUMMON_PROC with SUMMON_TYPE_XYZ, checks and selects materials with the core Xyz helpers, records them with Card.SetMaterial, and overlays them with Duel.Overlay. alterf, alterdesc, and alterop define an optional one-card alternate Xyz Summon route.

Parameters ​

  • c Card - Xyz Monster receiving the procedure.
  • f function|nil - Optional per-material filter. nil means no extra material restriction beyond the normal Xyz checks.
  • lv int - Required material Xyz Level.
  • ct int - Minimum material count.
  • alterf function|nil optional - Optional filter for a one-card alternate Xyz Summon route.
  • alterdesc int optional - Prompt text id used when the alternate route can be chosen.
  • maxct int optional - Maximum material count. Defaults to ct when omitted.
  • alterop function|nil optional - Optional check/apply callback for the alternate route. The local helper calls it with chk==0 for legality and chk==1 after selection.

Source ​

  • Utilities/procedure.lua:485

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 587 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.AddXyzProcedure.
CardIDScriptDetected Calls
Cyberse Reminder56337500Scripts/c56337500.lua1
Number 101: Silent Honor ARK - Soul Asylum2419596Scripts/c2419596.lua1
Number 99: Utopia Dragonar95134948Scripts/c95134948.lua1
D/D/D Deviser King Deus Machinex46593546Scripts/c46593546.lua1
Performage Trapeze Magician17016362Scripts/c17016362.lua1
Number 38: Hope Harbinger Dragon Titanic Galaxy63767246Scripts/c63767246.lua1
Toadally Awesome90809975Scripts/c90809975.lua1
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Darktellarknight Batlamyus64414267Scripts/c64414267.lua1
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Heroic Champion - Magnum Excalibur14301396Scripts/c14301396.lua1
Galaxy-Eyes Cipher X Dragon28346136Scripts/c28346136.lua1
Raider's Knight28781003Scripts/c28781003.lua1
Number 78: Number Archive29085954Scripts/c29085954.lua1
Borreload eXcharge Dragon6247535Scripts/c6247535.lua1
Salamangreat Blaze Dragon9608555Scripts/c9608555.lua1
Squeeze, the Full Moon of Raise Moon - JACKPOT!9484285Scripts/c9484285.lua1
CXyz N.As.Ch. Knight61374414Scripts/c61374414.lua1
Fairy Tail - Wiccat27632520Scripts/c27632520.lua1
Raidraptor - Rising Rebellion Falcon71222868Scripts/c71222868.lua1
Time Thief Redoer55285840Scripts/c55285840.lua1
Joyous Melffys53054164Scripts/c53054164.lua1
Majespecter Draco - Ryu3594985Scripts/c3594985.lua1
Mimighoul Throne42940335Scripts/c42940335.lua1
...and 563 more

Script Examples ​

Cyberse Reminder (56337500) ​

Source: Scripts/c56337500.lua

lua
function c56337500.initial_effect(c)
	--xyz summon
	aux.AddXyzProcedure(c,nil,3,2)
	c:EnableReviveLimit()
	--to hand

Number 101: Silent Honor ARK - Soul Asylum (2419596) ​

Source: Scripts/c2419596.lua

lua
function s.initial_effect(c)
	--xyz summon
	aux.AddXyzProcedure(c,nil,4,2)
	c:EnableReviveLimit()
	--search & material

Number 99: Utopia Dragonar (95134948) ​

Source: Scripts/c95134948.lua

lua
function c95134948.initial_effect(c)
	--xyz summon
	aux.AddXyzProcedure(c,nil,12,3,nil,nil,99)
	c:EnableReviveLimit()
	--special summon