Skip to content

Duel.Overlay ​

Signature ​

lua
Duel.Overlay(Card c, Card|Group ocard, [bool adjust]) -> void

Description ​

Overlays ocard under c as Xyz Material. This moves a Card or Group under c; it does not by itself perform a proper Xyz Summon or mark the monster's procedure complete. By default the field is adjusted after the overlay. Pass adjust=false only when a larger procedure will adjust afterward.

How To Use It ​

Use this when a procedure or effect turns cards into Xyz Materials under an Xyz Monster.

The first argument is the Xyz Monster that will receive the materials. The second argument can be one Card or a Group:

lua
Duel.Overlay(xyzc,mg)

Leave adjust omitted for normal scripts. Pass false only inside a larger procedure that will adjust the field afterward.

Parameters ​

  • c Card - Card that will receive the Xyz Materials.
  • ocard Card|Group - Card or Group to overlay under c.
  • adjust bool optional - Whether to adjust the field after overlaying. Defaults to true.

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:5014

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 260 indexed script(s).
  • Search this function in the Script Explorer with Duel.Overlay.
CardIDScriptDetected Calls
Performage Cup Tricker6812770Scripts/c6812770.lua2
Ghostrick Renovation61818176Scripts/c61818176.lua2
Resurgam Xyz49082032Scripts/c49082032.lua2
Shining Draw35906693Scripts/c35906693.lua2
Jupredo the Shademachine Power Patron43871165Scripts/c43871165.lua1
K9-EW Special Release Experiment26585784Scripts/c26585784.lua2
Power Patron DoomZ81650695Scripts/c81650695.lua2
Rank-Up-Magic Astral Force45950291Scripts/c45950291.lua2
Number 101: Silent Honor ARK - Soul Asylum2419596Scripts/c2419596.lua1
The Phantom Knights' Rank-Up-Magic Requiem62104532Scripts/c62104532.lua2
K9-X Forced Release53792930Scripts/c53792930.lua2
Phantom Knights' Rank-Up-Magic Force88504133Scripts/c88504133.lua2
Super Quantal Mech Ship Magnacarrier10424147Scripts/c10424147.lua4
DoomZ XII Zero - Drastea92472273Scripts/c92472273.lua1
D/D/D Deviser King Deus Machinex46593546Scripts/c46593546.lua1
Exosisters Magnifica59242457Scripts/c59242457.lua2
Number 38: Hope Harbinger Dragon Titanic Galaxy63767246Scripts/c63767246.lua1
Purrely25550531Scripts/c25550531.lua2
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua2
Darktellarknight Batlamyus64414267Scripts/c64414267.lua2
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Purrely Sharely!?10780049Scripts/c10780049.lua2
Purrelyeap!?82983267Scripts/c82983267.lua2
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
...and 236 more

Script Examples ​

Performage Cup Tricker (6812770) ​

Source: Scripts/c6812770.lua

lua
			Duel.SendtoGrave(og,REASON_RULE)
		end
		Duel.Overlay(tc,Group.FromCards(c))
	end
end

Ghostrick Renovation (61818176) ​

Source: Scripts/c61818176.lua

lua
		local mg=tc:GetOverlayGroup()
		if mg:GetCount()~=0 then
			Duel.Overlay(sc,mg)
		end
		sc:SetMaterial(Group.FromCards(tc))

Resurgam Xyz (49082032) ​

Source: Scripts/c49082032.lua

lua
		local mg=tc:GetOverlayGroup()
		if mg:GetCount()~=0 then
			Duel.Overlay(sc,mg)
		end
		sc:SetMaterial(Group.FromCards(tc))